question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Handling sound interruptions

See original GitHub issue

Thanks for the library!

Does anyone know if this module handles sound interruptions such as incoming calls etc?

I have a simple app that plays audio in the background, however when there is a call or the alarm runs, the playback of the sound file stops.

I have enabled background mode and my sound category settings are as follows: Sound.setCategory('Playback', false)

  • iOS 10.3

Issue Analytics

  • State:open
  • Created 6 years ago
  • Reactions:3
  • Comments:8 (1 by maintainers)

github_iconTop GitHub Comments

7reactions
deyanskiqcommented, Mar 18, 2020

Are there any event handlers that can be used to handle interruptions?

2reactions
simonjkingcommented, Sep 15, 2017

Wondering the same thing. When I activate Siri or get a phone call the audio stops, but I would love to have a handler where I could appropriately respond to that stop.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to _properly_ handle audio interruptions | by Joanna Smith
So, pause audio playback when you lose audio focus. Audio focus refers to the assumption that only one thing should be playing at...
Read more >
Responding to Interruptions - Apple Developer
Observing Audio Interruptions​​ To handle audio interruptions, begin by registering to observe notifications of type ...
Read more >
How to Fix Live Stream Audio Problems and Sound Better
Standing too close or too far from the mic can also make your speech unintelligible, and the same goes for speaking too quietly...
Read more >
10.4. Handling Interruptions while Recording Audio - O'Reilly
The two methods mentioned in this recipe's Solution are the best places to handle such interruptions. In the case of an interruption to...
Read more >
Why is the audio breaking up or choppy sometimes?
Network or audio problems on the speaker's end will be experienced simultaneously by all listeners, while problems on the receiver's end will be...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found