Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alternative target: Audio ponyfill #68

Open
dy opened this issue Feb 17, 2023 · 1 comment
Open

Alternative target: Audio ponyfill #68

dy opened this issue Feb 17, 2023 · 1 comment

Comments

@dy
Copy link
Member

dy commented Feb 17, 2023

Justification

For HTML there's no cross-browser Audio implementation, that could fix a bunch of gotchas.

  • Smooth audio.currentTime
  • Regular 'timeupdate' events
  • Normalized loading by changing audio.src, instead of calling .load in iOS
  • Missing codecs polyfill
  • Other gotchas from web-audio-player
  • Possibly loopStart, loopEnd properties

For node it could just provide a standard primitive ponyfill, like https://www.jsdelivr.com/package/npm/react-native-audio-polyfill.

@dy
Copy link
Member Author

dy commented Mar 2, 2023

Something like that existed back days by @TooTallNate https://github.com/TooTallNate/HtmlMedia/blob/master/HtmlMedia.js

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant