mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-15 06:40:30 +05:30
fix: fullscreen video doesn't use landscape
This commit is contained in:
parent
197247fedd
commit
228be1a075
@ -520,7 +520,7 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun updateFullscreenOrientation() {
|
private fun updateFullscreenOrientation() {
|
||||||
if (PlayerHelper.autoFullscreenEnabled || this::streams.isInitialized) return
|
if (PlayerHelper.autoFullscreenEnabled || !this::streams.isInitialized) return
|
||||||
|
|
||||||
val height = streams.videoStreams.firstOrNull()?.height ?: exoPlayer.videoSize.height
|
val height = streams.videoStreams.firstOrNull()?.height ?: exoPlayer.videoSize.height
|
||||||
val width = streams.videoStreams.firstOrNull()?.width ?: exoPlayer.videoSize.width
|
val width = streams.videoStreams.firstOrNull()?.width ?: exoPlayer.videoSize.width
|
||||||
|
Loading…
Reference in New Issue
Block a user