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

Playlist stops when put into the background #11

Closed
hounsellal opened this issue Oct 18, 2017 · 2 comments
Closed

Playlist stops when put into the background #11

hounsellal opened this issue Oct 18, 2017 · 2 comments

Comments

@hounsellal
Copy link

Great example. Only problem is that the playlist stops when you put the app into the background. Any idea on how to get it to keep playing the current item, AND advance to the next item all while in the background?

@chrisheninger
Copy link

According to https://docs.expo.io/versions/latest/sdk/audio.html:

Note that Expo does not yet support backgrounding, so audio is not available to play in the background of your experience. Audio also automatically stops if headphones / bluetooth audio devices are disconnected.

@cruzach
Copy link
Contributor

cruzach commented Aug 1, 2019

You can use the staysActiveInBackground argument for Audio.setAudioModeAsync(mode)

@cruzach cruzach closed this as completed Aug 1, 2019
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

3 participants