Update exoplayer to v2.18.2 (#202)
* Update exoplayer to v2.18.2 * Implement getSurfaceSize in mpv Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jarne Demeulemeester <jarnedemeulemeester@gmail.com>
This commit is contained in:
parent
d3991a3be7
commit
530cb009e9
2 changed files with 11 additions and 1 deletions
|
@ -33,6 +33,7 @@ import com.google.android.exoplayer2.util.Clock
|
|||
import com.google.android.exoplayer2.util.FlagSet
|
||||
import com.google.android.exoplayer2.util.ListenerSet
|
||||
import com.google.android.exoplayer2.util.MimeTypes
|
||||
import com.google.android.exoplayer2.util.Size
|
||||
import com.google.android.exoplayer2.util.Util
|
||||
import com.google.android.exoplayer2.video.VideoSize
|
||||
import dev.jdtech.jellyfin.utils.AppPreferences
|
||||
|
@ -1167,6 +1168,15 @@ class MPVPlayer(
|
|||
return VideoSize.UNKNOWN
|
||||
}
|
||||
|
||||
override fun getSurfaceSize(): Size {
|
||||
val mpvSize = MPVLib.getPropertyString("android-surface-size").split("x")
|
||||
return try {
|
||||
Size(mpvSize[0].toInt(), mpvSize[1].toInt())
|
||||
} catch (_: IndexOutOfBoundsException) {
|
||||
Size.UNKNOWN
|
||||
}
|
||||
}
|
||||
|
||||
/** Returns the current [Cues][Cue]. This list may be empty. */
|
||||
override fun getCurrentCues(): CueGroup {
|
||||
TODO("Not yet implemented")
|
||||
|
|
|
@ -14,7 +14,7 @@ androidx-recyclerview = "1.2.1"
|
|||
androidx-recyclerview-selection = "1.1.0"
|
||||
androidx-room = "2.4.3"
|
||||
androidx-swiperefreshlayout = "1.1.0"
|
||||
exoplayer = "2.18.1"
|
||||
exoplayer = "2.18.2"
|
||||
glide = "4.14.2"
|
||||
hilt = "2.44.2"
|
||||
jellyfin = "1.3.7"
|
||||
|
|
Loading…
Reference in a new issue