library/hls/src/main/java/com/google/android/exoplayer2/source/hls/playlist/HlsMediaPlaylist.java
/**
   * Returns a playlist identical to this one except that an end tag is added. If an end tag is
   * already present then the playlist will return itself.
   */
Returns a playlist identical to this one except that an end tag is added. If an end tag is
already present then the playlist will return itself.
Returns a playlist identical to this one except that an end tag is added . If an end tag is already present then the playlist will return itself .
public HlsMediaPlaylist copyWithEndTag() {
    if (this.hasEndTag) {
      return this;
    }
    return new HlsMediaPlaylist(
        playlistType,
        baseUri,
        tags,
        startOffsetUs,
        startTimeUs,
        hasDiscontinuitySequence,
        discontinuitySequence,
        mediaSequence,
        version,
        targetDurationUs,
        partTargetDurationUs,
        hasIndependentSegments,
        /* hasEndTag= */ true,
        hasProgramDateTime,
        protectionSchemes,
        segments,
        skippedSegmentCount,
        trailingParts,
        serverControl,
        renditionReports);
  }
public HlsMediaPlaylist copyWithEndTag ( ) { if ( this . hasEndTag ) { return this ; } return new HlsMediaPlaylist ( playlistType , baseUri , tags , startOffsetUs , startTimeUs , hasDiscontinuitySequence , discontinuitySequence , mediaSequence , version , targetDurationUs , partTargetDurationUs , hasIndependentSegments , /* hasEndTag= */ true , hasProgramDateTime , protectionSchemes , segments , skippedSegmentCount , trailingParts , serverControl , renditionReports ) ; }
Returns a playlist identical to this one except that an end tag is added.
Returns a playlist identical to this one except that an end tag is added .