public interface IPolyvIjkVideoView extends IPolyvMediaPlayerControl
限定符和类型 | 方法和说明 |
---|---|
void |
clearCanvasInStart(boolean isClearCanvasInStart) |
void |
clearOptionParameters() |
IMediaPlayer |
createPlayer(int playerType) |
void |
deselectTrack(int stream) |
int |
getCurrentAspectRatio() |
int |
getCurrentState() |
IjkMediaPlayer |
getIjkMediaPlayer() |
IMediaPlayer |
getMediaPlayer() |
com.easefun.polyvsdk.ijk.widget.media.IRenderView |
getRenderView() |
int |
getSelectedTrack(int trackType) |
float |
getSpeed()
获取播放速度
|
int |
getStateIdleCode() |
int |
getStatePauseCode() |
int |
getStatePlaybackCompletedCode() |
int |
getStatePreparedCode() |
int |
getStatePreparingCode() |
android.view.SurfaceHolder |
getSurfaceHolder() |
ITrackInfo[] |
getTrackInfo() |
int |
getVideoHeight() |
int |
getVideoWidth() |
boolean |
isInPlaybackStateForwarding() |
void |
release(boolean cleartargetstate) |
void |
releaseWithoutStop() |
void |
removeRenderView() |
void |
resume() |
android.graphics.Bitmap |
screenshot() |
android.graphics.Bitmap |
screenshot(android.graphics.Bitmap bitmap) |
android.graphics.Bitmap |
screenshot(int width,
int height) |
void |
selectTrack(int stream) |
void |
setCurrentAspectRatio(int aspectRatio) |
void |
setIjkLogLevel(int ijkLogLevel) |
void |
setLooping(boolean isLooping) |
void |
setMediaController(com.easefun.polyvsdk.ijk.widget.media.IMediaController controller) |
void |
setOnCompletionListener(IMediaPlayer.OnCompletionListener l) |
void |
setOnErrorListener(IMediaPlayer.OnErrorListener l) |
void |
setOnInfoListener(IMediaPlayer.OnInfoListener l) |
void |
setOnPreparedListener(IMediaPlayer.OnPreparedListener l) |
void |
setOnSurfaceUpdateListener(com.easefun.polyvsdk.ijk.widget.media.IjkVideoView.OnSurfaceUpdateListener listener) |
void |
setOptionParameters(java.lang.Object[][] mOptionParameters) |
void |
setRender(int render) |
void |
setRenderView(com.easefun.polyvsdk.ijk.widget.media.IRenderView renderView) |
void |
setSpeed(float speed)
设置播放速度
|
void |
setVideoPath(java.lang.String path)
设置视频路径
|
void |
setVideoURI(android.net.Uri uri)
设置视频URI
|
void |
setVideoURI(android.net.Uri uri,
java.util.Map<java.lang.String,java.lang.String> headers)
设置视频URI
|
void |
stopPlayback()
停止播放
|
void |
suspend() |
int |
toggleAspectRatio() |
int |
togglePlayer() |
int |
toggleRender() |
canPause, canSeekBackward, canSeekForward, getBufferPercentage, getCurrentPosition, getDuration, isPlaying, pause, seekTo, start
void setRenderView(com.easefun.polyvsdk.ijk.widget.media.IRenderView renderView)
void setRender(int render)
void setVideoPath(java.lang.String path)
path
- 视频地址void setVideoURI(android.net.Uri uri)
uri
- 视频地址void setVideoURI(android.net.Uri uri, java.util.Map<java.lang.String,java.lang.String> headers)
uri
- 视频地址headers
- header参数,注意key-value的value的前面必须带上空格,即" {value}"。IjkMediaPlayer getIjkMediaPlayer()
void stopPlayback()
void setMediaController(com.easefun.polyvsdk.ijk.widget.media.IMediaController controller)
void setOnPreparedListener(IMediaPlayer.OnPreparedListener l)
void setOnCompletionListener(IMediaPlayer.OnCompletionListener l)
void setOnErrorListener(IMediaPlayer.OnErrorListener l)
void setOnInfoListener(IMediaPlayer.OnInfoListener l)
void releaseWithoutStop()
void release(boolean cleartargetstate)
void suspend()
void resume()
int toggleAspectRatio()
int toggleRender()
int togglePlayer()
IMediaPlayer createPlayer(int playerType)
ITrackInfo[] getTrackInfo()
void selectTrack(int stream)
void deselectTrack(int stream)
int getSelectedTrack(int trackType)
boolean isInPlaybackStateForwarding()
com.easefun.polyvsdk.ijk.widget.media.IRenderView getRenderView()
int getCurrentAspectRatio()
void setCurrentAspectRatio(int aspectRatio)
int getVideoWidth()
int getVideoHeight()
IMediaPlayer getMediaPlayer()
android.view.SurfaceHolder getSurfaceHolder()
void setSpeed(float speed)
speed
- 播放速度,最好不要超过2float getSpeed()
int getStateIdleCode()
int getStatePreparingCode()
int getStatePreparedCode()
int getStatePauseCode()
int getStatePlaybackCompletedCode()
int getCurrentState()
void setOptionParameters(java.lang.Object[][] mOptionParameters)
void clearOptionParameters()
void clearCanvasInStart(boolean isClearCanvasInStart)
void setLooping(boolean isLooping)
void setIjkLogLevel(int ijkLogLevel)
void removeRenderView()
void setOnSurfaceUpdateListener(com.easefun.polyvsdk.ijk.widget.media.IjkVideoView.OnSurfaceUpdateListener listener)
android.graphics.Bitmap screenshot()
android.graphics.Bitmap screenshot(android.graphics.Bitmap bitmap)
android.graphics.Bitmap screenshot(int width, int height)