Back to Exoplayer

HlsMediaPlaylist.Part (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/source/hls/playlist/HlsMediaPlaylist.Part.html

latest5.7 KB
Original Source

Package com.google.android.exoplayer2.source.hls.playlist

Class HlsMediaPlaylist.Part


public static final classHlsMediaPlaylist.Partextends[HlsMediaPlaylist.SegmentBase](HlsMediaPlaylist.SegmentBase.html "class in com.google.android.exoplayer2.source.hls.playlist")

A media part.

Field Summary

Fields | Modifier and Type | Field | Description | | --- | --- | --- | | boolean | isIndependent | Whether the part is independent. | | boolean | isPreload | Whether the part is a preloading part. |

- 

Fields inherited from class com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist.SegmentBase

byteRangeLength, byteRangeOffset, drmInitData, durationUs, encryptionIV, fullSegmentEncryptionKeyUri, hasGapTag, initializationSegment, relativeDiscontinuitySequence, relativeStartTimeUs, url

Constructor Summary

Constructors | Constructor | Description | | --- | --- | | Part​(String url, HlsMediaPlaylist.Segment initializationSegment, long durationUs, int relativeDiscontinuitySequence, long relativeStartTimeUs, DrmInitData drmInitData, String fullSegmentEncryptionKeyUri, String encryptionIV, long byteRangeOffset, long byteRangeLength, boolean hasGapTag, boolean isIndependent, boolean isPreload) | Creates an instance. |

Method Summary

All Methods Instance Methods Concrete Methods | Modifier and Type | Method | Description | | --- | --- | --- | | HlsMediaPlaylist.Part | copyWith​(long relativeStartTimeUs, int relativeDiscontinuitySequence) | |

- 

Methods inherited from class com.google.android.exoplayer2.source.hls.playlist.HlsMediaPlaylist.SegmentBase

compareTo

- 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

- 

isIndependent

public final boolean isIndependent

Whether the part is independent.

- 

isPreload

public final boolean isPreload

Whether the part is a preloading part.

Constructor Detail

- 

Part

public Part​([String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")url,
            @Nullable[HlsMediaPlaylist.Segment](HlsMediaPlaylist.Segment.html "class in com.google.android.exoplayer2.source.hls.playlist")initializationSegment,
            long durationUs,
            int relativeDiscontinuitySequence,
            long relativeStartTimeUs,
            @Nullable[DrmInitData](../../../drm/DrmInitData.html "class in com.google.android.exoplayer2.drm")drmInitData,
            @Nullable[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")fullSegmentEncryptionKeyUri,
            @Nullable[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")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 isIndependent.isPreload - See isPreload.

Method Detail

- 

copyWith

public[HlsMediaPlaylist.Part](HlsMediaPlaylist.Part.html "class in com.google.android.exoplayer2.source.hls.playlist")copyWith​(long relativeStartTimeUs,
                                      int relativeDiscontinuitySequence)