MediaClock
@UnstableApi
interface MediaClock
DecoderAudioRenderer |
Decodes and renders audio using a |
FakeMediaClockRenderer |
Fake abstract |
MediaCodecAudioRenderer |
Decodes and renders audio using |
StandaloneMediaClock |
A |
Tracks the progression of media time.
Summary
Public functions |
|
|---|---|
PlaybackParameters! |
Returns the active playback parameters. |
Long |
Returns the current media position in microseconds. |
Boolean |
Returns whether there is a skipped silence since the last call to this method. |
Unit |
setPlaybackParameters(playbackParameters: PlaybackParameters!)Attempts to set the playback parameters. |
Public functions
getPlaybackParameters
fun getPlaybackParameters(): PlaybackParameters!
Returns the active playback parameters.
hasSkippedSilenceSinceLastCall
fun hasSkippedSilenceSinceLastCall(): Boolean
Returns whether there is a skipped silence since the last call to this method.
setPlaybackParameters
fun setPlaybackParameters(playbackParameters: PlaybackParameters!): Unit
Attempts to set the playback parameters. The media clock may override the speed if changing the playback parameters is not supported.
| Parameters | |
|---|---|
playbackParameters: PlaybackParameters! |
The playback parameters to attempt to set. |