Closed gianpietro-magiqapps closed 2 years ago
literally "stops" the playback after playing for a while what exactly do you mean after a while? Can you give a ball park figure?
Also, did the app get terminated by Android entirely (which might happen if Android thinks the app is using too much cpu/mem), or did it only stop the audio?
Hi @IjzerenHein, this happens after 10-15min of the phone being locked and not charging.
The app is not terminated, it's just the audio that stops. When we visit back the app, audio restarts normally. We have also noticed that the app appears as "stopped" in the "battery usage" view (attaching examples)
App running:
After 10-15 minutes of phone not charging:
I can confirm that a similar thing is happening when recording. I've opened a separate issue here: #10501
Hi, I had to eject and use react-native-track-player, which Android and iOS do recognize as an audio player, so it got rid of the issue and also shows player information in the native widgets.
Can confirm this is stil happening on Expo v43 and v44 expo-av: ~10.2.0
This issue is stale because it has been open for 60 days with no activity. If there is no activity in the next 7 days, the issue will be closed.
This issue was closed because it has been inactive for 7 days since being marked as stale. Please open a new issue if you believe you are encountering a related problem.
I'm currently experiencing this on iOS as well, even with different setAudioModeAsync
settings like staysActiveInBackground. Would love some input from the Expo team on this.
I am experiencing this issue as well (on Android). Expo 44, expo-av 10.2.0.
I'm also experiencing this issue. The audio stops after a minute or so. I'll be switching to react-native-track-player
.
🐛 Bug Report
Summary of Issue
In Android devices with latest expo-av (Exoplayer), if the device is locked and not charging, it seems that some power management feature literally "stops" the playback after playing for a while, until the app is opened again. This does not happen with iOS, nor in Android with other music playing apps subject to the same power management features (Spotify, TuneIn, etc)
Environment - output of
expo diagnostics
& the platform(s) you're targetingUsing expo-av 8.6.0 under the following environment:
Reproducible Demo
Here's some sample code I'm using for my tests:
Steps to Reproduce
Expected Behavior vs Actual Behavior
Just like in iOS or in other Android media playing apps, Android devices should let the expo-av playback continue in background even without needing to plug the charger.