mirror of
https://github.com/antebudimir/tempus.git
synced 2025-12-31 09:33:33 +00:00
Let exoplayer wake mode to WAKE_MODE_NETWORK
This commit is contained in:
parent
dda7953ffe
commit
1c6b8024b9
2 changed files with 2 additions and 1 deletions
|
|
@ -1,10 +1,10 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
|
||||
xmlns:tools="http://schemas.android.com/tools"
|
||||
package="com.cappielloantonio.play">
|
||||
|
||||
<uses-permission android:name="android.permission.INTERNET"/>
|
||||
<uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
|
||||
<uses-permission android:name="android.permission.WAKE_LOCK"/>
|
||||
|
||||
<application
|
||||
android:name="App"
|
||||
|
|
|
|||
|
|
@ -110,6 +110,7 @@ public class MultiPlayer implements Playback {
|
|||
.setMediaSourceFactory(new DefaultMediaSourceFactory(cacheDataSourceFactory))
|
||||
.setAudioAttributes(audioAttributes, true)
|
||||
.setHandleAudioBecomingNoisy(true)
|
||||
.setWakeMode(C.WAKE_MODE_NETWORK)
|
||||
.build();
|
||||
|
||||
exoPlayer.addListener(eventListener);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue