Merge pull request #5068 from Bnyro/master

fix: fullscreen video doesn't use landscape
This commit is contained in:
Bnyro 2023-10-30 12:17:27 +01:00 committed by GitHub
commit ff1f64ac71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -521,7 +521,7 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
}
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 width = streams.videoStreams.firstOrNull()?.width ?: exoPlayer.videoSize.width