@UnstableApi
class SsManifest : FilterableManifest


Represents a SmoothStreaming manifest.

See the IIS Smooth Streaming Client Manifest Format

Summary

Nested types

Represents a protection element containing a single header.

Represents a StreamIndex element.

Constants

const Int

Public constructors

SsManifest(
    majorVersion: Int,
    minorVersion: Int,
    timescale: Long,
    duration: Long,
    dvrWindowLength: Long,
    lookAheadCount: Int,
    isLive: Boolean,
    protectionElement: SsManifest.ProtectionElement?,
    streamElements: Array<SsManifest.StreamElement!>!
)

Public functions

SsManifest!
copy(streamKeys: (Mutable)List<StreamKey!>!)

Returns a copy of the manifest including only the streams specified by the given keys.

Public properties

Long

The overall presentation duration of the media in microseconds, or TIME_UNSET if the duration is unknown.

Long

The length of the trailing window for a live broadcast in microseconds, or TIME_UNSET if the stream is not live or if the window length is unspecified.

Boolean

Whether the manifest describes a live presentation still in progress.

Int

The number of fragments in a lookahead, or UNSET_LOOKAHEAD if the lookahead is unspecified.

Int

The client manifest major version.

Int

The client manifest minor version.

SsManifest.ProtectionElement?

Content protection information, or null if the content is not protected.

Array<SsManifest.StreamElement!>!

The contained stream elements.

Constants

UNSET_LOOKAHEAD

const val UNSET_LOOKAHEAD = -1: Int

Public constructors

SsManifest

SsManifest(
    majorVersion: Int,
    minorVersion: Int,
    timescale: Long,
    duration: Long,
    dvrWindowLength: Long,
    lookAheadCount: Int,
    isLive: Boolean,
    protectionElement: SsManifest.ProtectionElement?,
    streamElements: Array<SsManifest.StreamElement!>!
)
Parameters
majorVersion: Int

The client manifest major version.

minorVersion: Int

The client manifest minor version.

timescale: Long

The timescale of the media as the number of units that pass in one second.

duration: Long

The overall presentation duration in units of the timescale attribute, or 0 if the duration is unknown.

dvrWindowLength: Long

The length of the trailing window in units of the timescale attribute, or 0 if this attribute is unspecified or not applicable.

lookAheadCount: Int

The number of fragments in a lookahead, or UNSET_LOOKAHEAD if this attribute is unspecified or not applicable.

isLive: Boolean

True if the manifest describes a live presentation still in progress. False otherwise.

protectionElement: SsManifest.ProtectionElement?

Content protection information, or null if the content is not protected.

streamElements: Array<SsManifest.StreamElement!>!

The contained stream elements.

Public functions

copy

fun copy(streamKeys: (Mutable)List<StreamKey!>!): SsManifest!

Returns a copy of the manifest including only the streams specified by the given keys. If the manifest is unchanged then the instance may return itself.

Parameters
streamKeys: (Mutable)List<StreamKey!>!

A non-empty list of stream keys.

Returns
SsManifest!

The filtered manifest.

Public properties

durationUs

val durationUsLong

The overall presentation duration of the media in microseconds, or TIME_UNSET if the duration is unknown.

dvrWindowLengthUs

val dvrWindowLengthUsLong

The length of the trailing window for a live broadcast in microseconds, or TIME_UNSET if the stream is not live or if the window length is unspecified.

isLive

val isLiveBoolean

Whether the manifest describes a live presentation still in progress.

lookAheadCount

val lookAheadCountInt

The number of fragments in a lookahead, or UNSET_LOOKAHEAD if the lookahead is unspecified.

majorVersion

val majorVersionInt

The client manifest major version.

minorVersion

val minorVersionInt

The client manifest minor version.

protectionElement

val protectionElementSsManifest.ProtectionElement?

Content protection information, or null if the content is not protected.

streamElements

val streamElementsArray<SsManifest.StreamElement!>!

The contained stream elements.