Skip to content

Commit

Permalink
live playback use buffer size when its bigger than current time
Browse files Browse the repository at this point in the history
  • Loading branch information
fgl27 committed Aug 1, 2024
1 parent 5b71c3f commit 57b74ab
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion app/specific/Play.js
Original file line number Diff line number Diff line change
Expand Up @@ -1673,7 +1673,14 @@ function Play_ShowVideoStatus(showLatency, Who_Called, valueString) {
Play_UpdateDurationDiv(value[8]);
}

PlayVod_ProgresBarrUpdate(timeMs / 1000, Play_DurationSeconds, !PlayVod_IsJumping || PlayVod_PanelY);
var current_time_seconds = timeMs / 1000;

if (Play_BufferSize > current_time_seconds) {
//playback was paused
current_time_seconds = Play_BufferSize + 5;
}

PlayVod_ProgresBarrUpdate(current_time_seconds, Play_DurationSeconds, !PlayVod_IsJumping || PlayVod_PanelY);
}

function Play_getMbps(value) {
Expand Down

0 comments on commit 57b74ab

Please sign in to comment.