Skip to content

Commit

Permalink
Intialize vttCCs map with cc 0 (#2058)
Browse files Browse the repository at this point in the history
* Intiialize vttCCs map with cc 0
  • Loading branch information
johnBartos committed Dec 21, 2018
1 parent cabcfc9 commit a1df93a
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/controller/timeline-controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,13 @@ class TimelineController extends EventHandler {
onManifestLoading () {
this.lastSn = -1; // Detect discontiguity in fragment parsing
this.prevCC = -1;
this.vttCCs = { ccOffset: 0, presentationOffset: 0 }; // Detect discontinuity in subtitle manifests
this.vttCCs = { // Detect discontinuity in subtitle manifests
ccOffset: 0,
presentationOffset: 0,
0: {
start: 0, prevCC: -1, new: false
}
};
this._cleanTracks();
}

Expand Down

0 comments on commit a1df93a

Please sign in to comment.