Skip to content

Commit

Permalink
feat: Export getMaxSegmentEndTime and getAvailabilityTimeOffset in Pr…
Browse files Browse the repository at this point in the history
…esentationTimeline (#6839)
  • Loading branch information
avelad authored Jun 18, 2024
1 parent e020814 commit 680c0f1
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions lib/media/presentation_timeline.js
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,17 @@ shaka.media.PresentationTimeline = class {
}


/**
* Gets the end time of the last available segment.
*
* @return {?number}
* @export
*/
getMaxSegmentEndTime() {
return this.maxSegmentEndTime_;
}


/**
* Lock the presentation timeline's start time. After this is called, no
* further adjustments to presentationStartTime_ will be permitted.
Expand Down Expand Up @@ -630,6 +641,19 @@ shaka.media.PresentationTimeline = class {
this.availabilityTimeOffset_ = offset;
}


/**
* Gets the presentation's segment availability time offset. This should be
* only configured for Low Latency Dash.
*
* @return {number} availabilityTimeOffset parameter
* @export
*/
getAvailabilityTimeOffset() {
return this.availabilityTimeOffset_;
}


/**
* Debug only: assert that the timeline parameters make sense for the type
* of presentation (VOD, IPR, live).
Expand Down

0 comments on commit 680c0f1

Please sign in to comment.