expo / expo/playlist-example

Background staysActiveInBackground argument for Audio.setAudioModeAsync(mode)

Open
#62 4 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
180
Forks
116
PR merge metrics
No merged PRs in 30d

Description

The playlist does not keep playing in the background even after changing the Audio Mode.

```
Audio.setAudioModeAsync({
allowsRecordingIOS: false,
staysActiveInBackground: true, <--- Changed this
playsInSilentModeIOS: true,
shouldDuckAndroid: true,
interruptionModeAndroid: InterruptionModeAndroid.DoNotMix,
playThroughEarpieceAndroid: false
});
```

I cloned the project, changed that value and that's all I did.

Is there anything extra that needs to be done in this example to have it work in the background?

Thank you!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.