jcesar Active Member Licensed User Longtime User Nov 13, 2018 #1 Hi I don´t know why, but Exoplayer stop streaming audio some minutes after the device turn off the screen. If i turn on the device, the streaming is restored. The device its a Xiaomi Mi A2. In older android this does not happen.
Hi I don´t know why, but Exoplayer stop streaming audio some minutes after the device turn off the screen. If i turn on the device, the streaming is restored. The device its a Xiaomi Mi A2. In older android this does not happen.
Erel B4X founder Staff member Licensed User Longtime User Nov 14, 2018 #2 1. You need to have a foreground service. 2. You need to acquire a partial wake lock with PhoneWakeState. Upvote 0
1. You need to have a foreground service. 2. You need to acquire a partial wake lock with PhoneWakeState.
Erel B4X founder Staff member Licensed User Longtime User Nov 15, 2018 #3 You should never post a new question in an existing thread. Always start a new one. Upvote 0
jcesar Active Member Licensed User Longtime User Nov 20, 2018 #4 Erel, What is the correct way to use exoplayer as a service? Upvote 0
Erel B4X founder Staff member Licensed User Longtime User Nov 20, 2018 #5 Nothing special. Create a service, make it foreground and play the video with SimpleExoPlayer. Upvote 0