getSegmentAvailabilityEnd() {
    if (!this.isLive() && !this.isInProgress()) {
      // It's a static manifest (can also be a dynamic->static conversion)
      if (this.maxSegmentEndTime_) {
        // If we know segment times, use the min of that and duration.
        // Note that the playRangeEnd configuration changes this.duration_.
        // See https://github.com/shaka-project/shaka-player/issues/4026
        return Math.min(this.maxSegmentEndTime_, this.duration_);
      } else {
        // If we don't have segment times, use duration.
        return this.duration_;
      }
    }
    // Can be either live or "in-progress recording" (live with known duration)
    return Math.min(this.getLiveEdge_() + this.availabilityTimeOffset_,
        this.duration_);
  }
Gets the presentation's current segment availability end time.  Segments
starting after this time should be assumed to be unavailable.

@return {number} The current segment availability end time, in seconds,
  relative to the start of the presentation.  For VOD, the availability
  end time is the content's duration.  If the Player's playRangeEnd
  configuration is used, this can override the duration.
@export