1
0
Fork 0

Fix player ratio on audio only

This commit is contained in:
Chocobozzz 2024-01-03 15:23:20 +01:00
parent cfcbfb668e
commit 5cf5465d20
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 1 deletions

View File

@ -229,7 +229,7 @@ class PeerTubePlugin extends Plugin {
// In portrait screen mode, we allow player with bigger height size than width
const portraitMode = getComputedStyle(el).getPropertyValue(this.options.autoPlayerRatio.cssPlayerPortraitModeVariable) === '1'
const currentRatio = !portraitMode && data.ratio < 1
const currentRatio = isNaN(data.ratio) || (!portraitMode && data.ratio < 1)
? defaultRatio
: data.ratio