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:
parent
29eb390f1f
commit
ec9a1501c5
1 changed files with 11 additions and 1 deletions
|
@ -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();
|
||||||
|
|
||||||
|
if (item.MediaStreams.filter(function(i) {
|
||||||
|
return i.Type == "Audio";
|
||||||
|
}).length) {
|
||||||
$('#audioTracksButton', nowPlayingBar).show();
|
$('#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";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue