fix: fullscreen video doesn't use landscape

This commit is contained in:
Bnyro 2023-10-30 12:17:05 +01:00
parent 197247fedd
commit 228be1a075

View File

@ -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