Skip to content

Commit

Permalink
fix(DASH): Fix manifest update time for Live manifests (#5763)
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad authored and joeyparrish committed Feb 17, 2024
1 parent ff6a72d commit da38819
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions lib/dash/dash_parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,8 +218,10 @@ shaka.dash.DashParser = class {
* @exportInterface
*/
onInitialVariantChosen(variant) {
if (this.manifest_ && this.lowLatencyMode_ &&
this.minTotalAvailabilityTimeOffset_) {
// For live it is necessary that the first time we update the manifest with
// a shorter time than indicated to take into account that the last segment
// added could be halfway, for example
if (this.manifest_ && this.manifest_.presentationTimeline.isLive()) {
const stream = variant.video || variant.audio;
if (stream && stream.segmentIndex) {
const availabilityEnd =
Expand Down

0 comments on commit da38819

Please sign in to comment.