Skip to content

Commit

Permalink
Update dependency com.github.anilbeesetti:nextlib to v0.4.0 (#558)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
renovate[bot] and anilbeesetti authored Sep 3, 2023
1 parent 31e4ed3 commit 6e3df3d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
}
)

Expand Down
2 changes: 1 addition & 1 deletion gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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"))
// }
// }
//}
Expand Down

0 comments on commit 6e3df3d

Please sign in to comment.