AlternativeMpdEvent.Builder


class AlternativeMpdEvent.Builder


A builder for AlternativeMpdEvent instances.

Summary

Public constructors

Builder(@AlternativeMpdEvent.Type type: Int, id: Long, uri: Uri!)

Creates a builder with spec default values for optional fields.

Public functions

AlternativeMpdEvent!

Builds the AlternativeMpdEvent.

AlternativeMpdEvent.Builder!

Sets the replacement @clip value.

AlternativeMpdEvent.Builder!

Sets the duration of the active interval in microseconds, or TIME_UNSET if active until the end of the period.

AlternativeMpdEvent.Builder!

Sets the earliest resolution time offset in microseconds before presentationTimeUs.

AlternativeMpdEvent.Builder!

Sets the EventStream@value.

AlternativeMpdEvent.Builder!

Sets @executeOnce.

AlternativeMpdEvent.Builder!

Sets the Event@id.

AlternativeMpdEvent.Builder!

Sets whether Event@status is "update".

AlternativeMpdEvent.Builder!

Sets the maximum alternative presentation duration (APDmax) in microseconds, or TIME_UNSET if unbounded.

AlternativeMpdEvent.Builder!

Sets the @noJump mode.

AlternativeMpdEvent.Builder!

Sets the presentation time (PRT) in microseconds, relative to the start of the period.

AlternativeMpdEvent.Builder!

Sets the replacement @returnOffset in microseconds, or TIME_UNSET if absent.

AlternativeMpdEvent.Builder!

Sets the @serviceDescriptionId, or null if absent.

AlternativeMpdEvent.Builder!

Sets the @skipAfter offset in microseconds.

AlternativeMpdEvent.Builder!

Sets the replacement @startWithOffset value.

AlternativeMpdEvent.Builder!

Sets the SupplementalProperty descriptors.

AlternativeMpdEvent.Builder!

Sets the resolved URI of the alternative MPD.

Public constructors

Builder

Builder(@AlternativeMpdEvent.Type type: Int, id: Long, uri: Uri!)

Creates a builder with spec default values for optional fields.

Parameters
@AlternativeMpdEvent.Type type: Int

The Type of the event.

id: Long

The Event@id.

uri: Uri!

The resolved URI of the alternative MPD.

Public functions

build

fun build(): AlternativeMpdEvent!

Builds the AlternativeMpdEvent.

setClip

@CanIgnoreReturnValue
fun setClip(clip: Boolean): AlternativeMpdEvent.Builder!

Sets the replacement @clip value. Ignored for TYPE_INSERT events, where clip is always true. Defaults to true.

setDurationUs

@CanIgnoreReturnValue
fun setDurationUs(durationUs: Long): AlternativeMpdEvent.Builder!

Sets the duration of the active interval in microseconds, or TIME_UNSET if active until the end of the period. Defaults to TIME_UNSET.

setEarliestResolutionTimeOffsetUs

@CanIgnoreReturnValue
fun setEarliestResolutionTimeOffsetUs(earliestResolutionTimeOffsetUs: Long): AlternativeMpdEvent.Builder!

Sets the earliest resolution time offset in microseconds before presentationTimeUs. Defaults to DEFAULT_EARLIEST_RESOLUTION_TIME_OFFSET_US.

setEventStreamValue

@CanIgnoreReturnValue
fun setEventStreamValue(eventStreamValue: String!): AlternativeMpdEvent.Builder!

Sets the EventStream@value. Defaults to the empty string.

setExecuteOnce

@CanIgnoreReturnValue
fun setExecuteOnce(executeOnce: Boolean): AlternativeMpdEvent.Builder!

Sets @executeOnce. Defaults to false.

setId

@CanIgnoreReturnValue
fun setId(id: Long): AlternativeMpdEvent.Builder!

Sets the Event@id.

setIsUpdate

@CanIgnoreReturnValue
fun setIsUpdate(isUpdate: Boolean): AlternativeMpdEvent.Builder!

Sets whether Event@status is "update". Ignored for TYPE_INSERT events, where isUpdate is always false.

setMaxDurationUs

@CanIgnoreReturnValue
fun setMaxDurationUs(maxDurationUs: Long): AlternativeMpdEvent.Builder!

Sets the maximum alternative presentation duration (APDmax) in microseconds, or TIME_UNSET if unbounded. Defaults to TIME_UNSET.

setNoJump

@CanIgnoreReturnValue
fun setNoJump(@AlternativeMpdEvent.NoJumpMode noJump: Int): AlternativeMpdEvent.Builder!

Sets the @noJump mode. Defaults to NO_JUMP_NONE.

setPresentationTimeUs

@CanIgnoreReturnValue
fun setPresentationTimeUs(presentationTimeUs: Long): AlternativeMpdEvent.Builder!

Sets the presentation time (PRT) in microseconds, relative to the start of the period.

setReturnOffsetUs

@CanIgnoreReturnValue
fun setReturnOffsetUs(returnOffsetUs: Long): AlternativeMpdEvent.Builder!

Sets the replacement @returnOffset in microseconds, or TIME_UNSET if absent. Ignored for TYPE_INSERT events, where returnOffsetUs is always TIME_UNSET.

setServiceDescriptionId

@CanIgnoreReturnValue
fun setServiceDescriptionId(serviceDescriptionId: String?): AlternativeMpdEvent.Builder!

Sets the @serviceDescriptionId, or null if absent.

setSkipAfterUs

@CanIgnoreReturnValue
fun setSkipAfterUs(skipAfterUs: Long): AlternativeMpdEvent.Builder!

Sets the @skipAfter offset in microseconds. Defaults to 0.

setStartWithOffset

@CanIgnoreReturnValue
fun setStartWithOffset(startWithOffset: Boolean): AlternativeMpdEvent.Builder!

Sets the replacement @startWithOffset value. Ignored for TYPE_INSERT events, where startWithOffset is always false. Defaults to false.

setSupplementalProperties

@CanIgnoreReturnValue
fun setSupplementalProperties(
    supplementalProperties: (Mutable)List<Descriptor!>!
): AlternativeMpdEvent.Builder!

Sets the SupplementalProperty descriptors. Defaults to an empty list.

setUri

@CanIgnoreReturnValue
fun setUri(uri: Uri!): AlternativeMpdEvent.Builder!

Sets the resolved URI of the alternative MPD.