HlsMediaPlaylist.Interstitial


class HlsMediaPlaylist.Interstitial


An interstitial data range.

See RFC 8216bis, appendix D.2.

Summary

Nested types

@Retention(value = RetentionPolicy.SOURCE)
@StringDef(value = )
@Documented
@Target(value = TYPE_USE)
annotation HlsMediaPlaylist.Interstitial.CueTriggerType

The cue trigger type.

@Retention(value = RetentionPolicy.SOURCE)
@StringDef(value = )
@Documented
@Target(value = TYPE_USE)
annotation HlsMediaPlaylist.Interstitial.NavigationRestriction

The navigation restriction identifier.

@Retention(value = RetentionPolicy.SOURCE)
@StringDef(value = )
@Documented
@Target(value = TYPE_USE)
annotation HlsMediaPlaylist.Interstitial.SnapType

The snap identifier.

Constants

const String!

Cue trigger type indicating to trigger the interstitial only once.

const String!

Cue trigger type indicating to trigger the interstitial after playback of the primary asset.

const String!

Cue trigger type indicating to trigger the interstitial before playback of the primary asset.

const String!

Navigation restriction identifier indicating to enforce playback of the interstitial if the user attempts to seek beyond the interstitial start position.

const String!

Navigation restriction identifier indicating to prevent seeking or changing the playback speed during the interstitial being played.

const String!

Snap identifier indicating to locate the segment boundary closest to the scheduled resumption point of the interstitial.

const String!

Snap identifier indicating to locate the segment boundary closest to the startDateUnixUs.

Public constructors

Interstitial(
    id: String!,
    assetUri: Uri?,
    assetListUri: Uri?,
    startDateUnixUs: Long,
    endDateUnixUs: Long,
    durationUs: Long,
    plannedDurationUs: Long,
    cue: (Mutable)List<@HlsMediaPlaylist.Interstitial.CueTriggerType String!>!,
    endOnNext: Boolean,
    resumeOffsetUs: Long,
    playoutLimitUs: Long,
    snapTypes: (Mutable)List<@HlsMediaPlaylist.Interstitial.SnapType String!>!,
    restrictions: (Mutable)List<@HlsMediaPlaylist.Interstitial.NavigationRestriction String!>!,
    clientDefinedAttributes: (Mutable)List<HlsMediaPlaylist.ClientDefinedAttribute!>!
)

Creates an instance.

Public functions

Boolean
equals(o: Any?)
Int

Public properties

Uri?

The asset list URI.

Uri?

The asset URI.

ImmutableList<HlsMediaPlaylist.ClientDefinedAttribute!>!

The attributes defined by a client.

(Mutable)List<@HlsMediaPlaylist.Interstitial.CueTriggerType String!>!

The trigger cue types.

Long

The optional duration, in microseconds.

Long

The optional end time, in microseconds.

Boolean

Whether the endDateUnixUs of the interstitial is equal to the start startTimeUs of the following interstitial.

String!

The required ID.

Long

The optional planned duration, in microseconds.

Long

The playout limit indicating the limit of the playback time of the interstitial.

ImmutableList<@HlsMediaPlaylist.Interstitial.NavigationRestriction String!>!

The navigation restrictions.

Long

The offset from startTimeUs indicating where in the primary asset to resume playback after completing playback of the interstitial.

ImmutableList<@HlsMediaPlaylist.Interstitial.SnapType String!>!

The snap types.

Long

The required start time, in microseconds.

Constants

CUE_TRIGGER_ONCE

const val CUE_TRIGGER_ONCE = "ONCE": String!

Cue trigger type indicating to trigger the interstitial only once.

CUE_TRIGGER_POST

const val CUE_TRIGGER_POST = "POST": String!

Cue trigger type indicating to trigger the interstitial after playback of the primary asset.

CUE_TRIGGER_PRE

const val CUE_TRIGGER_PRE = "PRE": String!

Cue trigger type indicating to trigger the interstitial before playback of the primary asset.

const val NAVIGATION_RESTRICTION_JUMP = "JUMP": String!

Navigation restriction identifier indicating to enforce playback of the interstitial if the user attempts to seek beyond the interstitial start position.

const val NAVIGATION_RESTRICTION_SKIP = "SKIP": String!

Navigation restriction identifier indicating to prevent seeking or changing the playback speed during the interstitial being played.

SNAP_TYPE_IN

const val SNAP_TYPE_IN = "IN": String!

Snap identifier indicating to locate the segment boundary closest to the scheduled resumption point of the interstitial.

SNAP_TYPE_OUT

const val SNAP_TYPE_OUT = "OUT": String!

Snap identifier indicating to locate the segment boundary closest to the startDateUnixUs.

Public constructors

Interstitial

Interstitial(
    id: String!,
    assetUri: Uri?,
    assetListUri: Uri?,
    startDateUnixUs: Long,
    endDateUnixUs: Long,
    durationUs: Long,
    plannedDurationUs: Long,
    cue: (Mutable)List<@HlsMediaPlaylist.Interstitial.CueTriggerType String!>!,
    endOnNext: Boolean,
    resumeOffsetUs: Long,
    playoutLimitUs: Long,
    snapTypes: (Mutable)List<@HlsMediaPlaylist.Interstitial.SnapType String!>!,
    restrictions: (Mutable)List<@HlsMediaPlaylist.Interstitial.NavigationRestriction String!>!,
    clientDefinedAttributes: (Mutable)List<HlsMediaPlaylist.ClientDefinedAttribute!>!
)

Creates an instance.

Public functions

equals

fun equals(o: Any?): Boolean

hashCode

fun hashCode(): Int

Public properties

assetListUri

val assetListUriUri?

The asset list URI. Required if assetUri is null.

assetUri

val assetUriUri?

The asset URI. Required if assetListUri is null.

clientDefinedAttributes

val clientDefinedAttributesImmutableList<HlsMediaPlaylist.ClientDefinedAttribute!>!

The attributes defined by a client. For informational purpose only.

cue

val cue: (Mutable)List<@HlsMediaPlaylist.Interstitial.CueTriggerType String!>!

The trigger cue types.

durationUs

val durationUsLong

The optional duration, in microseconds. TIME_UNSET if not present.

endDateUnixUs

val endDateUnixUsLong

The optional end time, in microseconds. TIME_UNSET if not present.

endOnNext

val endOnNextBoolean

Whether the endDateUnixUs of the interstitial is equal to the start startTimeUs of the following interstitial. false if not present.

id

val idString!

The required ID.

plannedDurationUs

val plannedDurationUsLong

The optional planned duration, in microseconds. TIME_UNSET if not present.

playoutLimitUs

val playoutLimitUsLong

The playout limit indicating the limit of the playback time of the interstitial.

restrictions

val restrictionsImmutableList<@HlsMediaPlaylist.Interstitial.NavigationRestriction String!>!

The navigation restrictions.

resumeOffsetUs

val resumeOffsetUsLong

The offset from startTimeUs indicating where in the primary asset to resume playback after completing playback of the interstitial. TIME_UNSET if not present. If not present, the value is considered to be the duration of the interstitial.

startDateUnixUs

val startDateUnixUsLong

The required start time, in microseconds.