Skip to content

Commit

Permalink
fix: reset transmuxer in resetEverything to fix seeking backwards in …
Browse files Browse the repository at this point in the history
…some cases (#1213)

This ultimately happens because resetEverything does not reset the gop cache. So If we seeked backwards and have a gop cache then we would throw out an entire segment as it didn't line up with our know gops.
  • Loading branch information
brandonocasey committed Oct 14, 2021
1 parent 14b8a7b commit a83ea37
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/segment-loader.js
Expand Up @@ -1146,6 +1146,11 @@ export default class SegmentLoader extends videojs.EventTarget {
this.transmuxer_.postMessage({
action: 'clearAllMp4Captions'
});

// reset the cache in the transmuxer
this.transmuxer_.postMessage({
action: 'reset'
});
}
}

Expand Down

0 comments on commit a83ea37

Please sign in to comment.