mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
expand device identification
This commit is contained in:
parent
1e76f3cfe4
commit
7dcf71e256
30 changed files with 344 additions and 394 deletions
|
@ -24,7 +24,7 @@
|
|||
self.initVideoPlayer = function () {
|
||||
video = playVideo(item, startPosition, user);
|
||||
enhancePlayer();
|
||||
return video
|
||||
return video;
|
||||
};
|
||||
|
||||
self.toggleFullscreen = function () {
|
||||
|
@ -50,7 +50,7 @@
|
|||
videoBackdrop.remove();
|
||||
};
|
||||
|
||||
self.exitFullScreen = function () {
|
||||
self.exitFullScreen = function() {
|
||||
if (document.exitFullscreen) {
|
||||
document.exitFullscreen();
|
||||
} else if (document.mozExitFullScreen) {
|
||||
|
@ -62,11 +62,11 @@
|
|||
$('#videoPlayer').removeClass('fullscreenVideo');
|
||||
|
||||
fullscreenExited = true;
|
||||
}
|
||||
};
|
||||
|
||||
self.isFullScreen = function () {
|
||||
self.isFullScreen = function() {
|
||||
return document.fullscreen || document.mozFullScreen || document.webkitIsFullScreen || document.msFullscreenElement ? true : false;
|
||||
}
|
||||
};
|
||||
|
||||
self.showSubtitleMenu = function () {
|
||||
|
||||
|
@ -349,7 +349,7 @@
|
|||
|
||||
function enterFullScreen() {
|
||||
|
||||
var player = $("#videoPlayer")
|
||||
var player = $("#videoPlayer");
|
||||
|
||||
player.addClass("fullscreenVideo");
|
||||
|
||||
|
@ -357,7 +357,7 @@
|
|||
|
||||
function exitFullScreenToWindow() {
|
||||
|
||||
var player = $("#videoPlayer")
|
||||
var player = $("#videoPlayer");
|
||||
|
||||
player.removeClass("fullscreenVideo");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue