You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello there !
First of all thank you very much for this very cool component.
I just got a problem : when the phone turns into sleep mode, the app stops playing.
I put the right permission with wake_lock in app.json
and find it well in AndroidManifest.xml <uses-permission android:name="android.permission.WAKE_LOCK"/>
I found out you're using ExoPlayer.setWakeMode nicely and found out the following here : Enabling this feature requires the WAKE_LOCK permission. It should be used together with a foreground android.app.Service for use cases where playback occurs and the screen is off (e.g. background audio playback).
But as I'm checking for the services I feel like I'm heading towards a complex "solution" and may be missing something very simple. Especially as in here they say :
If you're playing audio, the audio system sets and manages a wake lock for you; you don't need to do it yourself.
If you're using Media3 ExoPlayer, you can use ExoPlayer.setWakeMode() to have the player set a wake lock for you.
It's my first mobile app so thanks a lot for your help :)
The text was updated successfully, but these errors were encountered:
arakneaweb
added a commit
to arakneaweb/react-native-radio-player-akw
that referenced
this issue
Nov 10, 2024
Hello there !
First of all thank you very much for this very cool component.
I just got a problem : when the phone turns into sleep mode, the app stops playing.
I put the right permission with wake_lock in app.json
and find it well in AndroidManifest.xml
<uses-permission android:name="android.permission.WAKE_LOCK"/>
I found out you're using ExoPlayer.setWakeMode nicely and found out the following here :
Enabling this feature requires the WAKE_LOCK permission. It should be used together with a foreground android.app.Service for use cases where playback occurs and the screen is off (e.g. background audio playback).
But as I'm checking for the services I feel like I'm heading towards a complex "solution" and may be missing something very simple. Especially as in here they say :
If you're playing audio, the audio system sets and manages a wake lock for you; you don't need to do it yourself.
If you're using Media3 ExoPlayer, you can use ExoPlayer.setWakeMode() to have the player set a wake lock for you.
It's my first mobile app so thanks a lot for your help :)
The text was updated successfully, but these errors were encountered: