Open dy opened 1 year ago
For HTML there's no cross-browser Audio implementation, that could fix a bunch of gotchas.
audio.currentTime
'timeupdate'
audio.src
.load
loopStart
loopEnd
For node it could just provide a standard primitive ponyfill, like https://www.jsdelivr.com/package/npm/react-native-audio-polyfill.
Something like that existed back days by @TooTallNate https://github.com/TooTallNate/HtmlMedia/blob/master/HtmlMedia.js
Justification
For HTML there's no cross-browser Audio implementation, that could fix a bunch of gotchas.
audio.currentTime
'timeupdate'
eventsaudio.src
, instead of calling.load
in iOSloopStart
,loopEnd
propertiesFor node it could just provide a standard primitive ponyfill, like https://www.jsdelivr.com/package/npm/react-native-audio-polyfill.