Most visited

Recently visited

Added in API level 1

MediaController.MediaPlayerControl

public static interface MediaController.MediaPlayerControl

android.widget.MediaController.MediaPlayerControl
Known Indirect Subclasses


Summary

Public methods

abstract boolean canPause()
abstract boolean canSeekBackward()
abstract boolean canSeekForward()
abstract int getAudioSessionId()

获取此VideoView使用的播放器的音频会话ID。

abstract int getBufferPercentage()
abstract int getCurrentPosition()
abstract int getDuration()
abstract boolean isPlaying()
abstract void pause()
abstract void seekTo(int pos)
abstract void start()

Public methods

canPause

Added in API level 5
boolean canPause ()

Returns
boolean

canSeekBackward

Added in API level 5
boolean canSeekBackward ()

Returns
boolean

canSeekForward

Added in API level 5
boolean canSeekForward ()

Returns
boolean

getAudioSessionId

Added in API level 18
int getAudioSessionId ()

获取此VideoView使用的播放器的音频会话ID。 这可用于将音频效果应用于视频的音轨。

Returns
int The audio session, or 0 if there was an error.

getBufferPercentage

Added in API level 1
int getBufferPercentage ()

Returns
int

getCurrentPosition

Added in API level 1
int getCurrentPosition ()

Returns
int

getDuration

Added in API level 1
int getDuration ()

Returns
int

isPlaying

Added in API level 1
boolean isPlaying ()

Returns
boolean

pause

Added in API level 1
void pause ()

seekTo

Added in API level 1
void seekTo (int pos)

Parameters
pos int

start

Added in API level 1
void start ()

Hooray!