Back to Exoplayer

MediaClock (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/util/MediaClock.html

latest2.1 KB
Original Source

Package com.google.android.exoplayer2.util

Interface MediaClock

  • All Known Implementing Classes:DecoderAudioRenderer, FakeMediaClockRenderer, FfmpegAudioRenderer, LibflacAudioRenderer, LibopusAudioRenderer, MediaCodecAudioRenderer, StandaloneMediaClock

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

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.

Tracks the progression of media time.

Method Summary

All Methods Instance Methods Abstract Methods Deprecated Methods | Modifier and Type | Method | Description | | --- | --- | --- | | PlaybackParameters | getPlaybackParameters() | Deprecated.

Returns the active playback parameters. | | long | getPositionUs() | Deprecated.

Returns the current media position in microseconds. | | void | setPlaybackParameters​(PlaybackParameters playbackParameters) | Deprecated.

Attempts to set the playback parameters. |

Method Detail

- 

getPositionUs

long getPositionUs()

Deprecated.

Returns the current media position in microseconds.

- 

setPlaybackParameters

void setPlaybackParameters​([PlaybackParameters](../PlaybackParameters.html "class in com.google.android.exoplayer2")playbackParameters)

Deprecated.

Attempts to set the playback parameters. The media clock may override the speed if changing the playback parameters is not supported. Parameters:playbackParameters - The playback parameters to attempt to set.

- 

getPlaybackParameters

[PlaybackParameters](../PlaybackParameters.html "class in com.google.android.exoplayer2")getPlaybackParameters()

Deprecated.

Returns the active playback parameters.