AlternativeMpdEvent


@UnstableApi
class AlternativeMpdEvent


An Alternative MPD Insertion or Replacement event, as defined by ISO/IEC 23009-1 clause 5.16.

Summary

Nested types

A builder for AlternativeMpdEvent instances.

The no-jump mode.

The type of the event.

Constants

const Long

The default earliest resolution time offset in microseconds (60 seconds).

const Int

All skipped no-jump events are executed (@noJump="1").

const Int

Only the latest skipped no-jump event is executed (@noJump="2").

const Int

The active interval may be skipped by seeking (@noJump="0").

const String!
SCHEME_ID_URI_INSERT = "urn:mpeg:dash:event:alternativeMPD:insert:2025"

The scheme URI of Alternative MPD Insertion events.

const String!
SCHEME_ID_URI_REPLACE = "urn:mpeg:dash:event:alternativeMPD:replace:2025"

The scheme URI of Alternative MPD Replacement events.

const Int

An Alternative MPD Insertion event (InsertPresentation).

const Int

An Alternative MPD Replacement event (ReplacePresentation).

Public functions

AlternativeMpdEvent.Builder!

Returns a Builder initialized with the values of this instance.

Boolean
equals(o: Any?)
Int

Public properties

Boolean

The replacement @clip value.

Long

The duration of the active interval in microseconds, or TIME_UNSET if the event is active until the end of the period.

Long

The earliest resolution time offset in microseconds before presentationTimeUs.

String!

The EventStream@value, or the empty string if absent.

Boolean

Whether the event is executed only the first time its active interval is traversed.

Long

The Event@id.

Boolean

Whether Event@status is "update".

Long

APDmax in microseconds, or TIME_UNSET if unbounded.

Int

The @noJump mode.

Long

PRT in microseconds, relative to the start of the period.

Long

The replacement @returnOffset in microseconds, or TIME_UNSET if absent.

String?

The @serviceDescriptionId, or null if absent.

Long

The @skipAfter offset in microseconds.

Boolean

The replacement @startWithOffset value.

ImmutableList<Descriptor!>!

The SupplementalProperty descriptors of the presentation element.

Int

The Type of the event.

Uri!

The resolved URI of the alternative MPD, including any MPD anchor fragment.

Constants

DEFAULT_EARLIEST_RESOLUTION_TIME_OFFSET_US

const val DEFAULT_EARLIEST_RESOLUTION_TIME_OFFSET_US = 60000000: Long

The default earliest resolution time offset in microseconds (60 seconds).

NO_JUMP_ALL

const val NO_JUMP_ALL = 1: Int

All skipped no-jump events are executed (@noJump="1").

NO_JUMP_LATEST

const val NO_JUMP_LATEST = 2: Int

Only the latest skipped no-jump event is executed (@noJump="2").

NO_JUMP_NONE

const val NO_JUMP_NONE = 0: Int

The active interval may be skipped by seeking (@noJump="0").

SCHEME_ID_URI_INSERT

const val SCHEME_ID_URI_INSERT = "urn:mpeg:dash:event:alternativeMPD:insert:2025": String!

The scheme URI of Alternative MPD Insertion events.

SCHEME_ID_URI_REPLACE

const val SCHEME_ID_URI_REPLACE = "urn:mpeg:dash:event:alternativeMPD:replace:2025": String!

The scheme URI of Alternative MPD Replacement events.

TYPE_INSERT

const val TYPE_INSERT = 0: Int

An Alternative MPD Insertion event (InsertPresentation).

TYPE_REPLACE

const val TYPE_REPLACE = 1: Int

An Alternative MPD Replacement event (ReplacePresentation).

Public functions

buildUpon

fun buildUpon(): AlternativeMpdEvent.Builder!

Returns a Builder initialized with the values of this instance.

equals

fun equals(o: Any?): Boolean

hashCode

fun hashCode(): Int

Public properties

clip

val clip: Boolean

The replacement @clip value. Always true for insertion events.

durationUs

val durationUs: Long

The duration of the active interval in microseconds, or TIME_UNSET if the event is active until the end of the period.

earliestResolutionTimeOffsetUs

val earliestResolutionTimeOffsetUs: Long

The earliest resolution time offset in microseconds before presentationTimeUs.

eventStreamValue

val eventStreamValue: String!

The EventStream@value, or the empty string if absent.

executeOnce

val executeOnce: Boolean

Whether the event is executed only the first time its active interval is traversed.

id

val id: Long

The Event@id.

isUpdate

val isUpdate: Boolean

Whether Event@status is "update". Always false for insertion events.

maxDurationUs

val maxDurationUs: Long

APDmax in microseconds, or TIME_UNSET if unbounded. Zero disables the event.

noJump

@AlternativeMpdEvent.NoJumpMode
val noJump: Int

The @noJump mode.

presentationTimeUs

val presentationTimeUs: Long

PRT in microseconds, relative to the start of the period.

returnOffsetUs

val returnOffsetUs: Long

The replacement @returnOffset in microseconds, or TIME_UNSET if absent.

serviceDescriptionId

val serviceDescriptionId: String?

The @serviceDescriptionId, or null if absent.

skipAfterUs

val skipAfterUs: Long

The @skipAfter offset in microseconds. Never negative.

startWithOffset

val startWithOffset: Boolean

The replacement @startWithOffset value. Always false for insertion events.

supplementalProperties

val supplementalProperties: ImmutableList<Descriptor!>!

The SupplementalProperty descriptors of the presentation element.

type

@AlternativeMpdEvent.Type
val type: Int

The Type of the event.

uri

val uri: Uri!

The resolved URI of the alternative MPD, including any MPD anchor fragment.