mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update hls playback
This commit is contained in:
parent
7919706532
commit
396b125d66
27 changed files with 438 additions and 728 deletions
|
@ -93,7 +93,7 @@ header {
|
|||
|
||||
<video id="video" controls autoplay class="videoCentered"></video><br>
|
||||
<canvas id="buffered_c" height="15" class="videoCentered" onclick="buffered_seek(event);"></canvas><br><br>
|
||||
<pre id="HlsStatus" class="center" style="white-space: pre-wrap;"></pre>
|
||||
<pre id="HlsStatus" class="center"></pre>
|
||||
|
||||
<div class="center" id="toggleButtons">
|
||||
<button type="button" class="btn btn-sm" onclick="$('#PlaybackControl').toggle();">toggle playback controls</button>
|
||||
|
@ -477,9 +477,6 @@ $(document).ready(function() {
|
|||
case Hls.ErrorDetails.BUFFER_APPEND_ERROR:
|
||||
$("#HlsStatus").text("Buffer Append Error");
|
||||
break;
|
||||
case Hls.ErrorDetails.BUFFER_ADD_CODEC_ERROR:
|
||||
$("#HlsStatus").text("Buffer Add Codec Error for " + data.mimeType + ":" + data.err.message);
|
||||
break;
|
||||
case Hls.ErrorDetails.BUFFER_APPENDING_ERROR:
|
||||
$("#HlsStatus").text("Buffer Appending Error");
|
||||
break;
|
||||
|
@ -910,10 +907,21 @@ function timeRangesToString(r) {
|
|||
if(v.videoWidth) {
|
||||
$("#currentResolution").html("video resolution:" + v.videoWidth + 'x' + v.videoHeight);
|
||||
}
|
||||
$("#currentLevelControl").html(html1);
|
||||
$("#loadLevelControl").html(html2);
|
||||
$("#levelCappingControl").html(html3);
|
||||
$("#nextLevelControl").html(html4);
|
||||
if($("#currentLevelControl").html() != html1) {
|
||||
$("#currentLevelControl").html(html1);
|
||||
}
|
||||
|
||||
if($("#loadLevelControl").html() != html2) {
|
||||
$("#loadLevelControl").html(html2);
|
||||
}
|
||||
|
||||
if($("#levelCappingControl").html() != html3) {
|
||||
$("#levelCappingControl").html(html3);
|
||||
}
|
||||
|
||||
if($("#nextLevelControl").html() != html4) {
|
||||
$("#nextLevelControl").html(html4);
|
||||
}
|
||||
}
|
||||
|
||||
function level2label(index) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue