mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fullscreen video fixes
This commit is contained in:
parent
c5372ae917
commit
1fd0bb11af
1 changed files with 10 additions and 12 deletions
|
@ -29,11 +29,8 @@
|
||||||
|
|
||||||
if (requestMethod) { // Native full screen.
|
if (requestMethod) { // Native full screen.
|
||||||
requestMethod.call(element);
|
requestMethod.call(element);
|
||||||
} else if (typeof window.ActiveXObject !== "undefined") { // Older IE.
|
} else{
|
||||||
var wscript = new ActiveXObject("WScript.Shell");
|
$('.itemVideo').addClass('fullscreenVideo');
|
||||||
if (wscript !== null) {
|
|
||||||
wscript.SendKeys("{F11}");
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -573,11 +570,7 @@
|
||||||
$('#chaptersButton', nowPlayingBar).hide();
|
$('#chaptersButton', nowPlayingBar).hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($.browser.msie) {
|
$('#fullscreenButton', nowPlayingBar).show();
|
||||||
$('#fullscreenButton', nowPlayingBar).hide();
|
|
||||||
} else {
|
|
||||||
$('#fullscreenButton', nowPlayingBar).show();
|
|
||||||
}
|
|
||||||
|
|
||||||
var videoElement = $("video", nowPlayingBar);
|
var videoElement = $("video", nowPlayingBar);
|
||||||
|
|
||||||
|
@ -603,7 +596,7 @@
|
||||||
var duration = this.duration;
|
var duration = this.duration;
|
||||||
isStaticStream = duration && !isNaN(duration) && duration != Number.POSITIVE_INFINITY && duration != Number.NEGATIVE_INFINITY;
|
isStaticStream = duration && !isNaN(duration) && duration != Number.POSITIVE_INFINITY && duration != Number.NEGATIVE_INFINITY;
|
||||||
|
|
||||||
videoElement.off("play.once");
|
videoElement.off("play.once").removeAttr('controls');
|
||||||
|
|
||||||
ApiClient.reportPlaybackStart(Dashboard.getCurrentUserId(), item.Id);
|
ApiClient.reportPlaybackStart(Dashboard.getCurrentUserId(), item.Id);
|
||||||
|
|
||||||
|
@ -933,7 +926,12 @@
|
||||||
if (isFullScreen()) {
|
if (isFullScreen()) {
|
||||||
if (document.cancelFullScreen) { document.cancelFullScreen(); }
|
if (document.cancelFullScreen) { document.cancelFullScreen(); }
|
||||||
else if (document.mozCancelFullScreen) { document.mozCancelFullScreen(); }
|
else if (document.mozCancelFullScreen) { document.mozCancelFullScreen(); }
|
||||||
else if (document.webkitCancelFullScreen) { document.webkitCancelFullScreen(); }
|
else if (document.webkitCancelFullScreen) {
|
||||||
|
document.webkitCancelFullScreen();
|
||||||
|
} else {
|
||||||
|
$('.itemVideo').removeClass('fullscreenVideo');
|
||||||
|
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
requestFullScreen(document.body);
|
requestFullScreen(document.body);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue