public class SmoothStreamingManifest extends Object
Modifier and Type | Class and Description |
---|---|
static class |
SmoothStreamingManifest.ProtectionElement
Represents a protection element containing a single header.
|
static class |
SmoothStreamingManifest.StreamElement
Represents a StreamIndex element.
|
static class |
SmoothStreamingManifest.TrackElement
Represents a QualityLevel element.
|
Modifier and Type | Field and Description |
---|---|
long |
durationUs
The overall presentation duration of the media in microseconds, or
C.UNKNOWN_TIME_US
if the duration is unknown. |
long |
dvrWindowLengthUs
The length of the trailing window for a live broadcast in microseconds, or
C.UNKNOWN_TIME_US if the stream is not live or if the window length is unspecified. |
boolean |
isLive
True if the manifest describes a live presentation still in progress.
|
int |
lookAheadCount
The number of fragments in a lookahead, or -1 if the lookahead is unspecified.
|
int |
majorVersion
The client manifest major version.
|
int |
minorVersion
The client manifest minor version.
|
SmoothStreamingManifest.ProtectionElement |
protectionElement
Content protection information, or null if the content is not protected.
|
SmoothStreamingManifest.StreamElement[] |
streamElements
The contained stream elements.
|
Constructor and Description |
---|
SmoothStreamingManifest(int majorVersion,
int minorVersion,
long timescale,
long duration,
long dvrWindowLength,
int lookAheadCount,
boolean isLive,
SmoothStreamingManifest.ProtectionElement protectionElement,
SmoothStreamingManifest.StreamElement[] streamElements) |
public final int majorVersion
public final int minorVersion
public final int lookAheadCount
public final boolean isLive
public final SmoothStreamingManifest.ProtectionElement protectionElement
public final SmoothStreamingManifest.StreamElement[] streamElements
public final long durationUs
C.UNKNOWN_TIME_US
if the duration is unknown.public final long dvrWindowLengthUs
C.UNKNOWN_TIME_US
if the stream is not live or if the window length is unspecified.public SmoothStreamingManifest(int majorVersion, int minorVersion, long timescale, long duration, long dvrWindowLength, int lookAheadCount, boolean isLive, SmoothStreamingManifest.ProtectionElement protectionElement, SmoothStreamingManifest.StreamElement[] streamElements)
majorVersion
- The client manifest major version.minorVersion
- The client manifest minor version.timescale
- The timescale of the media as the number of units that pass in one second.duration
- The overall presentation duration in units of the timescale attribute, or 0
if the duration is unknown.dvrWindowLength
- The length of the trailing window in units of the timescale attribute,
or 0 if this attribute is unspecified or not applicable.lookAheadCount
- The number of fragments in a lookahead, or -1 if this attribute is
unspecified or not applicable.isLive
- True if the manifest describes a live presentation still in progress. False
otherwise.protectionElement
- Content protection information, or null if the content is not
protected.streamElements
- The contained stream elements.