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

improve poster sizing

This commit is contained in:
Luke Pulverenti 2014-08-01 22:34:45 -04:00
parent 48ea645cf9
commit cd1e583fa7
58 changed files with 931 additions and 549 deletions

View file

@ -972,6 +972,15 @@
$('.itemVideo').off('mousemove.videoplayer keydown.videoplayer scroll.videoplayer');
}
self.canAutoPlayVideo = function () {
if ($.browser.msie || $.browser.mobile) {
return false;
}
return true;
};
self.playVideo = function (item, mediaSource, startPosition) {
var mediaStreams = mediaSource.MediaStreams || [];
@ -1062,7 +1071,7 @@
// Create video player
var html = '';
var requiresNativeControls = $.browser.msie || $.browser.mobile;
var requiresNativeControls = !self.canAutoPlayVideo();
// Can't autoplay in these browsers so we need to use the full controls
if (requiresNativeControls) {