Fix video ratio not working properly

This commit is contained in:
redphx 2024-06-03 15:52:52 +07:00
parent bb20f408a3
commit 44cf4f1d19

View File

@ -492,7 +492,7 @@ function resizeVideoPlayer() {
// Update size
$video.style.width = `${width}px`;
$video.style.height = `${height}px`;
$video.style.objectFit = 'contain';
$video.style.objectFit = PREF_RATIO === '16:9' ? 'contain' : 'fill';
} else {
$video.style.width = '100%';
$video.style.height = '100%';