Package com.qingcloud.vod.player.imp
Interface IQCBasicMediaPlayerControl
-
- All Known Implementing Classes:
QCPlayerView
public interface IQCBasicMediaPlayerControlThe interface Iqc basic media player control.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanPause()Can pause boolean.booleancanSeekBackward()Can seek backward boolean.booleancanSeekForward()Can seek forward boolean.intgetBufferPercentage()Gets buffer percentage.intgetCurrentPosition()Gets current position.intgetDuration()Gets duration.booleanisBufferingPaused()Is buffering paused boolean.booleanisBufferingPlaying()Is buffering playing boolean.booleanisCompleted()Is completed boolean.booleanisError()Is error boolean.booleanisIdle()以下9个方法是播放器在当前的播放状态booleanisPaused()Is paused boolean.booleanisPlaying()Is playing boolean.booleanisPrepared()Is prepared boolean.booleanisPreparing()Is preparing boolean.voidpause()Pause.voidplay()Play.voidrestart()重新播放,播放器被暂停、播放错误、播放完成后,需要调用此方法重新播放voidseekTo(long ms)Seek to.voidstart(long position)从指定的位置开始播放
-
-
-
Method Detail
-
play
void play()
Play.
-
pause
void pause()
Pause.
-
getDuration
int getDuration()
Gets duration.- Returns:
- the duration
-
getCurrentPosition
int getCurrentPosition()
Gets current position.- Returns:
- the current position
-
seekTo
void seekTo(long ms)
Seek to.- Parameters:
ms- the ms
-
isIdle
boolean isIdle()
以下9个方法是播放器在当前的播放状态- Returns:
- the boolean
-
isPreparing
boolean isPreparing()
Is preparing boolean.- Returns:
- the boolean
-
isPrepared
boolean isPrepared()
Is prepared boolean.- Returns:
- the boolean
-
isBufferingPlaying
boolean isBufferingPlaying()
Is buffering playing boolean.- Returns:
- the boolean
-
isBufferingPaused
boolean isBufferingPaused()
Is buffering paused boolean.- Returns:
- the boolean
-
isPlaying
boolean isPlaying()
Is playing boolean.- Returns:
- the boolean
-
isPaused
boolean isPaused()
Is paused boolean.- Returns:
- the boolean
-
isError
boolean isError()
Is error boolean.- Returns:
- the boolean
-
isCompleted
boolean isCompleted()
Is completed boolean.- Returns:
- the boolean
-
getBufferPercentage
int getBufferPercentage()
Gets buffer percentage.- Returns:
- the buffer percentage
-
canPause
boolean canPause()
Can pause boolean.- Returns:
- the boolean
-
canSeekBackward
boolean canSeekBackward()
Can seek backward boolean.- Returns:
- the boolean
-
canSeekForward
boolean canSeekForward()
Can seek forward boolean.- Returns:
- the boolean
-
start
void start(long position)
从指定的位置开始播放- Parameters:
position- 播放位置
-
restart
void restart()
重新播放,播放器被暂停、播放错误、播放完成后,需要调用此方法重新播放
-
-