Skip to content

Commit

Permalink
fix: Always use VOD sync-point for VOD streams (#1456)
Browse files Browse the repository at this point in the history
Co-authored-by: Dzianis Dashkevich <ddashkevich@brightcove.com>
dzianis-dashkevich and Dzianis Dashkevich authored Nov 30, 2023

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent b4dd748 commit a5579b0
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
@@ -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,

0 comments on commit a5579b0

Please sign in to comment.