public final class

HlsMediaPlaylist.Part

extends HlsMediaPlaylist.SegmentBase

 java.lang.Object

androidx.media3.exoplayer.hls.playlist.HlsMediaPlaylist.SegmentBase

↳androidx.media3.exoplayer.hls.playlist.HlsMediaPlaylist.Part

Overview

A media part.

Summary

Fields
public final booleanisIndependent

Whether the part is independent.

public final booleanisPreload

Whether the part is a preloading part.

from HlsMediaPlaylist.SegmentBasebyteRangeLength, byteRangeOffset, drmInitData, durationUs, encryptionIV, fullSegmentEncryptionKeyUri, hasGapTag, initializationSegment, relativeDiscontinuitySequence, relativeStartTimeUs, url
Constructors
publicPart(java.lang.String url, HlsMediaPlaylist.Segment initializationSegment, long durationUs, int relativeDiscontinuitySequence, long relativeStartTimeUs, DrmInitData drmInitData, java.lang.String fullSegmentEncryptionKeyUri, java.lang.String encryptionIV, long byteRangeOffset, long byteRangeLength, boolean hasGapTag, boolean isIndependent, boolean isPreload)

Creates an instance.

Methods
public HlsMediaPlaylist.PartcopyWith(long relativeStartTimeUs, int relativeDiscontinuitySequence)

from HlsMediaPlaylist.SegmentBasecompareTo
from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Fields

public final boolean isIndependent

Whether the part is independent.

public final boolean isPreload

Whether the part is a preloading part.

Constructors

public Part(java.lang.String url, HlsMediaPlaylist.Segment initializationSegment, long durationUs, int relativeDiscontinuitySequence, long relativeStartTimeUs, DrmInitData drmInitData, java.lang.String fullSegmentEncryptionKeyUri, java.lang.String encryptionIV, long byteRangeOffset, long byteRangeLength, boolean hasGapTag, boolean isIndependent, boolean isPreload)

Creates an instance.

Parameters:

url: See HlsMediaPlaylist.SegmentBase.url.
initializationSegment: See HlsMediaPlaylist.SegmentBase.initializationSegment.
durationUs: See HlsMediaPlaylist.durationUs.
relativeDiscontinuitySequence: See HlsMediaPlaylist.SegmentBase.relativeDiscontinuitySequence.
relativeStartTimeUs: See HlsMediaPlaylist.SegmentBase.relativeStartTimeUs.
drmInitData: See HlsMediaPlaylist.SegmentBase.drmInitData.
fullSegmentEncryptionKeyUri: See HlsMediaPlaylist.SegmentBase.fullSegmentEncryptionKeyUri.
encryptionIV: See HlsMediaPlaylist.SegmentBase.encryptionIV.
byteRangeOffset: See HlsMediaPlaylist.SegmentBase.byteRangeOffset.
byteRangeLength: See HlsMediaPlaylist.SegmentBase.byteRangeLength.
hasGapTag: See HlsMediaPlaylist.SegmentBase.hasGapTag.
isIndependent: See HlsMediaPlaylist.Part.isIndependent.
isPreload: See HlsMediaPlaylist.Part.isPreload.

Methods

public HlsMediaPlaylist.Part copyWith(long relativeStartTimeUs, int relativeDiscontinuitySequence)