Skip to content

Commit

Permalink
Merge pull request #1282 from canalplus/misc/segments-check
Browse files Browse the repository at this point in the history
RepresentationStream: Also check segments after a Manifest update
  • Loading branch information
peaBerberian authored Sep 26, 2023
2 parents 6c6d3fb + 71357ee commit c77e63f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/core/stream/representation/representation_stream.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,9 @@ export default function RepresentationStream<TSegmentDataType>(
includeLastObservation: false,
clearSignal: segmentsLoadingCanceller.signal,
});
content.manifest.addEventListener("manifestUpdate",
checkStatus,
segmentsLoadingCanceller.signal);
bufferGoal.onUpdate(checkStatus, {
emitCurrentValue: false,
clearSignal: segmentsLoadingCanceller.signal ,
Expand Down

0 comments on commit c77e63f

Please sign in to comment.