1
0
Fork 0
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:
Luke Pulverenti 2014-03-17 10:48:16 -04:00
parent 1e76f3cfe4
commit 7dcf71e256
30 changed files with 344 additions and 394 deletions

View file

@ -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");