ServiceDescriptionElement


@UnstableApi
public final class ServiceDescriptionElement


Represents a service description element.

Summary

Public fields

final long

The maximum live offset in milliseconds, or TIME_UNSET if undefined.

final float

The maximum factor by which playback can be sped up for live speed adjustment, or RATE_UNSET if undefined.

final long

The minimum live offset in milliseconds, or TIME_UNSET if undefined.

final float

The minimum factor by which playback can be sped up for live speed adjustment, or RATE_UNSET if undefined.

final long

The target live offset in milliseconds, or TIME_UNSET if undefined.

Public constructors

ServiceDescriptionElement(
    long targetOffsetMs,
    long minOffsetMs,
    long maxOffsetMs,
    float minPlaybackSpeed,
    float maxPlaybackSpeed
)

Creates a service description element.

Public fields

maxOffsetMs

public final long maxOffsetMs

The maximum live offset in milliseconds, or TIME_UNSET if undefined.

maxPlaybackSpeed

public final float maxPlaybackSpeed

The maximum factor by which playback can be sped up for live speed adjustment, or RATE_UNSET if undefined.

minOffsetMs

public final long minOffsetMs

The minimum live offset in milliseconds, or TIME_UNSET if undefined.

minPlaybackSpeed

public final float minPlaybackSpeed

The minimum factor by which playback can be sped up for live speed adjustment, or RATE_UNSET if undefined.

targetOffsetMs

public final long targetOffsetMs

The target live offset in milliseconds, or TIME_UNSET if undefined.

Public constructors

ServiceDescriptionElement

public ServiceDescriptionElement(
    long targetOffsetMs,
    long minOffsetMs,
    long maxOffsetMs,
    float minPlaybackSpeed,
    float maxPlaybackSpeed
)

Creates a service description element.

Parameters
long targetOffsetMs

The target live offset in milliseconds, or TIME_UNSET if undefined.

long minOffsetMs

The minimum live offset in milliseconds, or TIME_UNSET if undefined.

long maxOffsetMs

The maximum live offset in milliseconds, or TIME_UNSET if undefined.

float minPlaybackSpeed

The minimum factor by which playback can be sped up for live speed adjustment, or RATE_UNSET if undefined.

float maxPlaybackSpeed

The maximum factor by which playback can be sped up for live speed adjustment, or RATE_UNSET if undefined.