mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Video player updates
* Removed js to add class name for 4:3 aspect ratio * Added min/max width for video to try and eliminate layout issues
This commit is contained in:
parent
16cf53b2cf
commit
d388e3ae4b
2 changed files with 25 additions and 85 deletions
|
@ -276,7 +276,6 @@
|
|||
footer.css("top", "101%");
|
||||
|
||||
var videoPlayer = $("#videoPlayer", footer)
|
||||
//.hide()
|
||||
.append(nowPlayingBar);
|
||||
|
||||
// Stop playback on browser back button nav
|
||||
|
@ -328,10 +327,6 @@
|
|||
|
||||
$("html").css("cursor", "default");
|
||||
|
||||
//videoPlayer.fadeIn();
|
||||
|
||||
checkAspectRatio();
|
||||
|
||||
});
|
||||
|
||||
$(".mediaFlyoutContainer").on("click", "a", function (e) {
|
||||
|
@ -374,21 +369,6 @@
|
|||
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 () {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue