FakeTimeline.TimelineWindowDefinition


class FakeTimeline.TimelineWindowDefinition

Definition used to define a FakeTimeline.

Summary

Nested types

A builder to build instances of FakeTimeline.TimelineWindowDefinition.

Constants

const Long

Default window duration in microseconds.

const Long

Default offset of a window in its first period in microseconds.

Public constructors

TimelineWindowDefinition(periodCount: Int, id: Any!)

This function is deprecated.

Use FakeTimeline.TimelineWindowDefinition.Builder instead.

TimelineWindowDefinition(
    isSeekable: Boolean,
    isDynamic: Boolean,
    durationUs: Long
)

This function is deprecated.

Use FakeTimeline.TimelineWindowDefinition.Builder instead.

TimelineWindowDefinition(
    periodCount: Int,
    id: Any!,
    isSeekable: Boolean,
    isDynamic: Boolean,
    durationUs: Long
)

This function is deprecated.

Use FakeTimeline.TimelineWindowDefinition.Builder instead.

TimelineWindowDefinition(
    periodCount: Int,
    id: Any!,
    isSeekable: Boolean,
    isDynamic: Boolean,
    durationUs: Long,
    adPlaybackState: AdPlaybackState!
)

This function is deprecated.

Use FakeTimeline.TimelineWindowDefinition.Builder instead.

TimelineWindowDefinition(
    periodCount: Int,
    id: Any!,
    isSeekable: Boolean,
    isDynamic: Boolean,
    isLive: Boolean,
    isPlaceholder: Boolean,
    durationUs: Long,
    defaultPositionUs: Long,
    windowOffsetInFirstPeriodUs: Long,
    adPlaybackState: AdPlaybackState!
)

This function is deprecated.

Use FakeTimeline.TimelineWindowDefinition.Builder instead.

TimelineWindowDefinition(
    periodCount: Int,
    id: Any!,
    isSeekable: Boolean,
    isDynamic: Boolean,
    isLive: Boolean,
    isPlaceholder: Boolean,
    durationUs: Long,
    defaultPositionUs: Long,
    windowOffsetInFirstPeriodUs: Long,
    adPlaybackState: AdPlaybackState!,
    mediaItem: MediaItem!
)

This function is deprecated.

Use TimelineWindowDefinition instead.

TimelineWindowDefinition(
    periodCount: Int,
    id: Any!,
    isSeekable: Boolean,
    isDynamic: Boolean,
    isLive: Boolean,
    isPlaceholder: Boolean,
    durationUs: Long,
    defaultPositionUs: Long,
    windowOffsetInFirstPeriodUs: Long,
    adPlaybackStates: (Mutable)List<AdPlaybackState!>!,
    mediaItem: MediaItem!
)

This function is deprecated.

Use FakeTimeline.TimelineWindowDefinition.Builder instead.

Public functions

FakeTimeline.TimelineWindowDefinition.Builder!

Returns a TimelineWindowDefinition.Builder initialized with the values of this instance.

java-static FakeTimeline.TimelineWindowDefinition!

Creates a window definition that corresponds to a placeholder timeline using the given tag.

Constants

DEFAULT_WINDOW_DURATION_US

const val DEFAULT_WINDOW_DURATION_US = 10000000: Long

Default window duration in microseconds.

DEFAULT_WINDOW_OFFSET_IN_FIRST_PERIOD_US

const val DEFAULT_WINDOW_OFFSET_IN_FIRST_PERIOD_US = 123000000: Long

Default offset of a window in its first period in microseconds.

Public constructors

TimelineWindowDefinition

TimelineWindowDefinition(periodCount: Int, id: Any!)

TimelineWindowDefinition

TimelineWindowDefinition(
    isSeekable: Boolean,
    isDynamic: Boolean,
    durationUs: Long
)

TimelineWindowDefinition

TimelineWindowDefinition(
    periodCount: Int,
    id: Any!,
    isSeekable: Boolean,
    isDynamic: Boolean,
    durationUs: Long
)

TimelineWindowDefinition

TimelineWindowDefinition(
    periodCount: Int,
    id: Any!,
    isSeekable: Boolean,
    isDynamic: Boolean,
    durationUs: Long,
    adPlaybackState: AdPlaybackState!
)

TimelineWindowDefinition

TimelineWindowDefinition(
    periodCount: Int,
    id: Any!,
    isSeekable: Boolean,
    isDynamic: Boolean,
    isLive: Boolean,
    isPlaceholder: Boolean,
    durationUs: Long,
    defaultPositionUs: Long,
    windowOffsetInFirstPeriodUs: Long,
    adPlaybackState: AdPlaybackState!
)

TimelineWindowDefinition

TimelineWindowDefinition(
    periodCount: Int,
    id: Any!,
    isSeekable: Boolean,
    isDynamic: Boolean,
    isLive: Boolean,
    isPlaceholder: Boolean,
    durationUs: Long,
    defaultPositionUs: Long,
    windowOffsetInFirstPeriodUs: Long,
    adPlaybackState: AdPlaybackState!,
    mediaItem: MediaItem!
)

TimelineWindowDefinition

TimelineWindowDefinition(
    periodCount: Int,
    id: Any!,
    isSeekable: Boolean,
    isDynamic: Boolean,
    isLive: Boolean,
    isPlaceholder: Boolean,
    durationUs: Long,
    defaultPositionUs: Long,
    windowOffsetInFirstPeriodUs: Long,
    adPlaybackStates: (Mutable)List<AdPlaybackState!>!,
    mediaItem: MediaItem!
)

Public functions

buildUpon

fun buildUpon(): FakeTimeline.TimelineWindowDefinition.Builder!

Returns a TimelineWindowDefinition.Builder initialized with the values of this instance.

createPlaceholder

java-static fun createPlaceholder(tag: Any!): FakeTimeline.TimelineWindowDefinition!

Creates a window definition that corresponds to a placeholder timeline using the given tag.

Parameters
tag: Any!

The tag to use in the timeline.

Public properties

adPlaybackStates

val adPlaybackStates: (Mutable)List<AdPlaybackState!>!

defaultPositionUs

val defaultPositionUsLong

durationUs

val durationUsLong

id

val idAny!

isDynamic

val isDynamicBoolean

isLive

val isLiveBoolean

isPlaceholder

val isPlaceholderBoolean

isSeekable

val isSeekableBoolean

mediaItem

val mediaItemMediaItem!

periodCount

val periodCountInt

windowOffsetInFirstPeriodUs

val windowOffsetInFirstPeriodUsLong

windowStartTimeUs

val windowStartTimeUsLong