Skip to content

Commit

Permalink
feat(DASH): Achieve better latency in LL streams (shaka-project#5291)
Browse files Browse the repository at this point in the history
  • Loading branch information
avelad committed Jun 13, 2023
1 parent df18f10 commit f4bcc87
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/dash/dash_parser.js
Expand Up @@ -491,6 +491,12 @@ shaka.dash.DashParser = class {
minBufferTime = 0;
}

// Set updatePeriod_ to minTotalAvailabilityTimeOffset_ to achieve the best
// latency in LL streams
if (this.lowLatencyMode_ && this.minTotalAvailabilityTimeOffset_) {
this.updatePeriod_ = this.minTotalAvailabilityTimeOffset_;
}

// These steps are not done on manifest update.
if (!this.manifest_) {
this.manifest_ = {
Expand Down

0 comments on commit f4bcc87

Please sign in to comment.