Skip to content

Commit

Permalink
Update audio-stream-controller.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
robwalch committed Jul 21, 2023
1 parent 3b96dcf commit 02690de
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/controller/audio-stream-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -909,6 +909,13 @@ class AudioStreamController
`Waiting for video PTS in continuity counter ${frag.cc} of live stream before loading audio fragment ${frag.sn} of level ${this.trackId}`
);
this.state = State.WAITING_INIT_PTS;
if (
this.mainDetails &&
this.mainDetails.fragments[0].start !==
track.details.fragments[0].start
) {
alignMediaPlaylistByPDT(track.details, this.mainDetails);
}
} else {
this.startFragRequested = true;
super.loadFragment(frag, track, targetBufferTime);
Expand Down

0 comments on commit 02690de

Please sign in to comment.