From 6e3df3d2b9205f42e1f53d489be280f99a93081b Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 3 Sep 2023 19:45:38 +0530 Subject: [PATCH] Update dependency com.github.anilbeesetti:nextlib to v0.4.0 (#558) * Update dependency com.github.anilbeesetti:nextlib to v0.4.0 * fix: errors --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Anil Kumar Beesetti --- .../nextplayer/feature/player/PlayerActivity.kt | 9 +++++---- gradle/libs.versions.toml | 2 +- settings.gradle.kts | 2 +- 3 files changed, 7 insertions(+), 6 deletions(-) diff --git a/feature/player/src/main/java/dev/anilbeesetti/nextplayer/feature/player/PlayerActivity.kt b/feature/player/src/main/java/dev/anilbeesetti/nextplayer/feature/player/PlayerActivity.kt index 2a42875ec..1253a9dfa 100644 --- a/feature/player/src/main/java/dev/anilbeesetti/nextplayer/feature/player/PlayerActivity.kt +++ b/feature/player/src/main/java/dev/anilbeesetti/nextplayer/feature/player/PlayerActivity.kt @@ -38,6 +38,7 @@ import androidx.media3.common.PlaybackException import androidx.media3.common.Player import androidx.media3.common.Tracks import androidx.media3.common.VideoSize +import androidx.media3.exoplayer.DefaultRenderersFactory import androidx.media3.exoplayer.ExoPlayer import androidx.media3.exoplayer.trackselection.DefaultTrackSelector import androidx.media3.session.MediaSession @@ -87,7 +88,7 @@ import dev.anilbeesetti.nextplayer.feature.player.utils.PlayerGestureHelper import dev.anilbeesetti.nextplayer.feature.player.utils.PlaylistManager import dev.anilbeesetti.nextplayer.feature.player.utils.VolumeManager import dev.anilbeesetti.nextplayer.feature.player.utils.toMillis -import io.github.anilbeesetti.nextlib.ffcodecs.NextRenderersFactory +import io.github.anilbeesetti.nextlib.media3ext.ffdecoder.NextRenderersFactory import java.nio.charset.Charset import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.Job @@ -283,9 +284,9 @@ class PlayerActivity : AppCompatActivity() { .setEnableDecoderFallback(true) .setExtensionRendererMode( when (playerPreferences.decoderPriority) { - DecoderPriority.DEVICE_ONLY -> NextRenderersFactory.EXTENSION_RENDERER_MODE_OFF - DecoderPriority.PREFER_DEVICE -> NextRenderersFactory.EXTENSION_RENDERER_MODE_ON - DecoderPriority.PREFER_APP -> NextRenderersFactory.EXTENSION_RENDERER_MODE_PREFER + DecoderPriority.DEVICE_ONLY -> DefaultRenderersFactory.EXTENSION_RENDERER_MODE_OFF + DecoderPriority.PREFER_DEVICE -> DefaultRenderersFactory.EXTENSION_RENDERER_MODE_ON + DecoderPriority.PREFER_APP -> DefaultRenderersFactory.EXTENSION_RENDERER_MODE_PREFER } ) diff --git a/gradle/libs.versions.toml b/gradle/libs.versions.toml index 937dd04e9..5f31c2995 100644 --- a/gradle/libs.versions.toml +++ b/gradle/libs.versions.toml @@ -25,7 +25,7 @@ kotlinxSerializationJson = "1.6.0" ksp = "1.9.10-1.0.13" ktlint = "11.5.1" landscapist = "2.2.8" -nextlib = "0.3.0" +nextlib = "0.4.0" room = "2.5.2" timber = "5.0.1" diff --git a/settings.gradle.kts b/settings.gradle.kts index e1086632d..dc1fce73c 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -26,7 +26,7 @@ dependencyResolutionManagement { //if (File(nextLibDirPath).exists()) { // includeBuild(nextLibDirPath) { // dependencySubstitution { -// substitute(module("com.github.anilbeesetti:nextlib")).using(project(":ffcodecs")) +// substitute(module("com.github.anilbeesetti:nextlib")).using(project(":media3ext")) // } // } //}