Added in API level 1

MediaPlayerControl


interface MediaPlayerControl
android.widget.MediaController.MediaPlayerControl

Summary

Public methods
abstract Boolean

abstract Boolean

abstract Boolean

abstract Int

Get the audio session id for the player used by this VideoView.

abstract Int

abstract Int

abstract Int

abstract Boolean

abstract Unit

abstract Unit
seekTo(pos: Int)

abstract Unit

Public methods

canPause

Added in API level 5
abstract fun canPause(): Boolean

canSeekBackward

Added in API level 5
abstract fun canSeekBackward(): Boolean

canSeekForward

Added in API level 5
abstract fun canSeekForward(): Boolean

getAudioSessionId

Added in API level 18
abstract fun getAudioSessionId(): Int

Get the audio session id for the player used by this VideoView. This can be used to apply audio effects to the audio track of a video.

Return
Int The audio session, or 0 if there was an error.

getBufferPercentage

Added in API level 1
abstract fun getBufferPercentage(): Int

getCurrentPosition

Added in API level 1
abstract fun getCurrentPosition(): Int

getDuration

Added in API level 1
abstract fun getDuration(): Int

isPlaying

Added in API level 1
abstract fun isPlaying(): Boolean

pause

Added in API level 1
abstract fun pause(): Unit

seekTo

Added in API level 1
abstract fun seekTo(pos: Int): Unit

start

Added in API level 1
abstract fun start(): Unit