Improvements in sound player #1720
Labels
Bug
Something that doesn't work as it should
Improvement
A functional improvement to an existing feature, that isn't urgently a bug
New feature
Something that doesn't yet exist in Freesound
Projects
Some ideas for improvements/fixes for the sound player:
This seems to happen on "oldish" desktop MacOS systems only. It can be fixed by calling
audioElement.load()
before callingaudioElement.play()
again once the sound has already been played, but this triggers a reload of the data (which I'm not sure if it uses cache or not). In any case, this is the best solution so far and the one we implemented. We only use it when we detect a desktop macOS system (there also seems to be no way to distinguish old macs from newer macs).I tried quite hard to fix that but I don't seem to find a way to do it. The
audioElement.currentTime
value returned by Safari makes sudden jumps (it goes back unexpectedly) and therefore it is impossible to know where the playhead should be positioned. We'd probably need a completely different player implementation using web audio API...The text was updated successfully, but these errors were encountered: