diff --git a/app/build.gradle b/app/build.gradle index 02045668f..b4a071e38 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -134,11 +134,16 @@ dependencies { implementation 'androidx.constraintlayout:constraintlayout:2.0.4' implementation 'androidx.swiperefreshlayout:swiperefreshlayout:1.1.0' implementation 'androidx.viewpager2:viewpager2:1.0.0' - implementation 'androidx.media:media:1.2.1' implementation 'com.google.android.material:material:1.2.1' implementation 'com.google.android:flexbox:1.1.0' implementation 'com.google.code.gson:gson:2.8.6' + //media + def media2_version = "1.1.2" + implementation "androidx.media2:media2-session:$media2_version" + //implementation "androidx.media2:media2-player:$media2_version" + //implementation 'com.google.android.exoplayer:exoplayer:2.13.0' + //Splitties def splitties_version = '2.1.1' implementation("com.louiscad.splitties:splitties-appctx:$splitties_version") @@ -203,9 +208,6 @@ dependencies { implementation 'io.noties.markwon:ext-tables:4.6.0' implementation 'io.noties.markwon:html:4.6.0' - //ExoPlayer - implementation 'com.google.android.exoplayer:exoplayer:2.13.0' - //转换繁体 implementation 'com.hankcs:hanlp:portable-1.7.8' diff --git a/app/src/main/java/io/legado/app/service/HttpReadAloudService.kt b/app/src/main/java/io/legado/app/service/HttpReadAloudService.kt index c3f1691ef..bccf89319 100644 --- a/app/src/main/java/io/legado/app/service/HttpReadAloudService.kt +++ b/app/src/main/java/io/legado/app/service/HttpReadAloudService.kt @@ -3,6 +3,7 @@ package io.legado.app.service import android.app.PendingIntent import android.content.Intent import android.media.MediaPlayer + import io.legado.app.constant.EventBus import io.legado.app.help.AppConfig import io.legado.app.help.IntentHelp