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

[BUG] iOS silence mode doesn't play on .playUrl #159

Open
Stephane-Parent opened this issue Jun 1, 2023 · 1 comment
Open

[BUG] iOS silence mode doesn't play on .playUrl #159

Stephane-Parent opened this issue Jun 1, 2023 · 1 comment

Comments

@Stephane-Parent
Copy link

Stephane-Parent commented Jun 1, 2023

Describe the bug
When playing a sound from SoundPlayer.playUrl, no sound comes out if the Silence mode is ON (little switch on iPhone side).

To Reproduce
Steps to reproduce the behavior:

  1. Boot your app
  2. Play a sound with SoundPlayer.playUrl()
  3. Hear the sound
  4. Switch to silence mode
  5. No more sound

Expected behavior
Expose a function to enable sound on silence mode. It would be more convenient to manage when to respect silence mode.

Platform (please complete the following information):

  • OS: iOS
  • lib version 0.13.2

Additional context
I bypass it by calling SoundPlayer.setSpeaker(false) before seeking. Seems like [session setActive:true error:nil]; is needed to bypass the Silence Mode. Once this function is called, Silence mode won't be respected anymore.

@Shenith
Copy link

Shenith commented Aug 16, 2023

Check this. #128

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