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

Playback with silenced ringtone on iOS #13

Open
simonschwaer opened this issue Aug 2, 2024 · 1 comment
Open

Playback with silenced ringtone on iOS #13

simonschwaer opened this issue Aug 2, 2024 · 1 comment

Comments

@simonschwaer
Copy link

Hi,

on iOS, audio played via WebAudio is categorized as "Ambient Sound". This means that it will only play when the ringtone is explicitly unmuted (or over headphones). HTML5 audio or video elements are instead categorized as "Media Playback", so they will play even with silenced ringtone.

For trackswitch.js, this means that many iPhone users will experience the unintuitive situation that they don't hear the played audio, even though the media playback volume on the device is turned up. There seem to be some workarounds for this (e.g. unmute-ios-audio), but I'm not sure what the best solution for this is...

Any ideas/thoughts? I'd be willing to implement a solution (and update the Grunt dev dependencies while I'm at it).

Best,
Simon

@stefan-balke
Copy link
Collaborator

Actually I never used it on the iPhone but if this is nowadays a common use case it might be worth a look.
Guess it is all iOS products so also all iPads? That would be useful then to fix.

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

2 participants