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

fixed video player buttons for remote streaming

This commit is contained in:
Luke Pulverenti 2013-05-26 21:25:09 -04:00
parent 29eb390f1f
commit ec9a1501c5

View file

@ -298,7 +298,11 @@
percent *= 100; percent *= 100;
positionSlider.val(percent); positionSlider.val(percent);
positionSlider.removeAttr('disabled');
} }
} else {
positionSlider.attr('disabled', 'disabled');
} }
currentTimeElement.html(timeText); currentTimeElement.html(timeText);
@ -529,7 +533,13 @@
$('#qualityButton', nowPlayingBar).show(); $('#qualityButton', nowPlayingBar).show();
$('#audioTracksButton', nowPlayingBar).show(); if (item.MediaStreams.filter(function(i) {
return i.Type == "Audio";
}).length) {
$('#audioTracksButton', nowPlayingBar).show();
} else {
$('#audioTracksButton', nowPlayingBar).hide();
}
if (item.MediaStreams.filter(function (i) { if (item.MediaStreams.filter(function (i) {
return i.Type == "Subtitle"; return i.Type == "Subtitle";