Back to Exoplayer

ServiceDescriptionElement (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/source/dash/manifest/ServiceDescriptionElement.html

latest4.6 KB
Original Source

Package com.google.android.exoplayer2.source.dash.manifest

Class ServiceDescriptionElement

  • java.lang.Object

    • com.google.android.exoplayer2.source.dash.manifest.ServiceDescriptionElement

[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classServiceDescriptionElementextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")

Deprecated. com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.

Represents a service description element.

Field Summary

Fields | Modifier and Type | Field | Description | | --- | --- | --- | | long | maxOffsetMs | Deprecated.

The maximum live offset in milliseconds, or C.TIME_UNSET if undefined. | | float | maxPlaybackSpeed | Deprecated.

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

The minimum live offset in milliseconds, or C.TIME_UNSET if undefined. | | float | minPlaybackSpeed | Deprecated.

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

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

Constructor Summary

Constructors | Constructor | Description | | --- | --- | | ServiceDescriptionElement​(long targetOffsetMs, long minOffsetMs, long maxOffsetMs, float minPlaybackSpeed, float maxPlaybackSpeed) | Deprecated.

Creates a service description element. |

Method Summary

- 

Methods inherited from class java.lang.Object

clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Field Detail

- 

targetOffsetMs

public final long targetOffsetMs

Deprecated.

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

- 

minOffsetMs

public final long minOffsetMs

Deprecated.

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

- 

maxOffsetMs

public final long maxOffsetMs

Deprecated.

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

- 

minPlaybackSpeed

public final float minPlaybackSpeed

Deprecated.

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

- 

maxPlaybackSpeed

public final float maxPlaybackSpeed

Deprecated.

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

Constructor Detail

- 

ServiceDescriptionElement

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

Deprecated.

Creates a service description element. Parameters:targetOffsetMs - The target live offset in milliseconds, or C.TIME_UNSET if undefined.minOffsetMs - The minimum live offset in milliseconds, or C.TIME_UNSET if undefined.maxOffsetMs - The maximum live offset in milliseconds, or C.TIME_UNSET if undefined.minPlaybackSpeed - The minimum factor by which playback can be sped up for live speed adjustment, or C.RATE_UNSET if undefined.maxPlaybackSpeed - The maximum factor by which playback can be sped up for live speed adjustment, or C.RATE_UNSET if undefined.