1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

4:3 aspect fix

Forgot to commit this. That is what I get for working in 2 environments
:)
This commit is contained in:
Tim Hobbs 2014-03-14 21:11:58 +00:00
parent 2a8d8037f4
commit 43dd77b685
2 changed files with 71 additions and 0 deletions

View file

@ -274,6 +274,8 @@
videoPlayer.fadeIn();
checkAspectRatio();
});
$(".mediaFlyoutContainer").on("click", "a", function (e) {
@ -318,6 +320,21 @@
fullscreenExited = false;
};
function checkAspectRatio() {
// Resize player window if 4:3 aspect ratio
var footer = $("#footer");
var videoElement = $("video", footer);
var w = $(videoElement).width();
var h = $(videoElement).height();
if (w / h < 1.7) {
$("#videoPlayer", footer).addClass("aspect43");
}
}
function changeHandler(event) {
document.addEventListener(event, function () {