Skip to content

Commit

Permalink
Merge pull request #366 from karendolan/multiple-seek-buffer-stall-KD
Browse files Browse the repository at this point in the history
Prevent jumpy timeline when doing multiple quick successive seeks with HLS video
  • Loading branch information
ferserc1 authored Jun 3, 2024
2 parents 7f6dc06 + 286116b commit 13eec49
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/js/videoFormats/es.upv.paella.hlsVideoFormat.js
Original file line number Diff line number Diff line change
Expand Up @@ -309,6 +309,9 @@ export class HlsVideo extends Mp4Video {
else {
await (new Promise((resolve,reject) => {
const checkReady = () => {
if (this._ready) {
resolve();
}
// Make a special case to allow Firefox to play at readyState 2.
// Browsers like Safari drop from readyState 3 to readyState 2 when the video is
// buffering and cannot be played. Chrome moves quickly between ready state
Expand Down Expand Up @@ -491,4 +494,5 @@ export default class HlsVideoPlugin extends VideoPlugin {
}))
};
}
}
}

0 comments on commit 13eec49

Please sign in to comment.