Skip to content

Commit

Permalink
Merge branch 'main' of github.com:videojs/http-streaming into align-3…
Browse files Browse the repository at this point in the history
…-5-2
  • Loading branch information
Dzianis Dashkevich committed Nov 30, 2023
2 parents 948df86 + a5579b0 commit 98dedca
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/sync-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,13 @@ export default class SyncController extends videojs.EventTarget {
* A sync-point object
*/
getSyncPoint(playlist, duration, currentTimeline, currentTime) {
// Always use VOD sync point for VOD
if (duration !== Infinity) {
const vodSyncPointStrategy = syncPointStrategies.find(({ name }) => name === 'VOD');

return vodSyncPointStrategy.run(this, playlist, duration);
}

const syncPoints = this.runStrategies_(
playlist,
duration,
Expand Down

0 comments on commit 98dedca

Please sign in to comment.