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

fixed fullscreen button visibility

This commit is contained in:
Luke Pulverenti 2013-05-24 16:22:19 -04:00
parent 030b99bfe1
commit 39ac592292
3 changed files with 11 additions and 174 deletions

View file

@ -285,8 +285,10 @@
var html = '';
var requiresControls = $.browser.msie || $.browser.android || $.browser.iphone || $.browser.ipad;
// Can't autoplay in these browsers so we need to use the full controls
if ($.browser.msie || $.browser.android || $.browser.iphone || $.browser.ipad) {
if (requiresControls) {
html += '<audio preload="auto" autoplay controls>';
} else {
html += '<audio preload="auto" style="display:none;" autoplay>';
@ -328,6 +330,10 @@
}).on("play.once", function () {
if (!requiresControls) {
audioElement.hide();
}
var duration = this.duration;
isStaticStream = duration && !isNaN(duration) && duration != Number.POSITIVE_INFINITY && duration != Number.NEGATIVE_INFINITY;