mardi 27 mars 2018

exomedia stop audio device standby

I made an app for Web Radio using Exomedia 4.1.0, with Exoplayer 2.7.1. Everything works perfectly, but the only problem for people who like to listen to the radio while doing something else, like tidying up the house etc, is that after the screen dims, considering a 5 minutes, the audio simply stops ... someone please Would you help me? Check Power Saving Mode, it's off on the devices. I tried to implement WakeLock and WakeUp, but it did not solve:

PowerManager pm = (PowerManager) getSystemService     (Context.POWER_SERVICE);
assert pm! = null;
PowerManager.WakeLock wl = pm.newWakeLock (PowerManager.PARTIAL_WAKE_LOCK | PowerManager.ACQUIRE_CAUSES_WAKEUP, "WakeLock");
wl.acquire ();

I know this is a matter of saving battery, but does it have the user turn on or off some setting to keep the audio in play if you want?




Aucun commentaire:

Enregistrer un commentaire