Public Methods |
void
|
addTimedTextSource(String path)
|
void
|
addVideoRawBuffer(byte[] rawBuffer)
|
int
|
bufferEmptyCount()
|
float
|
bufferEmptyDuration()
|
boolean
|
canPause()
|
boolean
|
canSeekBackward()
|
boolean
|
canSeekForward()
|
void
|
deselectTrack(int track)
|
long
|
getAudioCachedBytes()
|
long
|
getAudioCachedDuration()
|
long
|
getAudioCachedPackets()
|
int
|
getAudioSessionId()
|
int
|
getBufferPercentage()
|
float
|
getBufferTimeMax()
|
String
|
getClientIP()
|
long
|
getCurrentPosition()
|
long
|
getCurrentPts()
|
String
|
getDataSource()
|
long
|
getDecodedDataSize()
|
long
|
getDownloadDataSize()
|
long
|
getDuration()
|
String
|
getLocalDnsIP()
|
MediaInfo
|
getMediaInfo()
|
Bundle
|
getMediaMeta()
|
KSYMediaPlayer
|
getMediaPlayer()
|
Bitmap
|
getScreenShot()
|
int
|
getSelectedTrack(int trackType)
|
String
|
getServerAddress()
|
float
|
getSpeed()
|
KSYQosInfo
|
getStreamQosInfo()
|
long
|
getStreamStartTime()
|
KSYTrackInfo[]
|
getTrackInfo()
|
String
|
getVersion()
|
long
|
getVideoCachedBytes()
|
long
|
getVideoCachedDuration()
|
long
|
getVideoCachedPackets()
|
float
|
getVideoDecodeFramesPerSecond()
|
int
|
getVideoDecoder()
|
int
|
getVideoHeight()
|
float
|
getVideoOutputFramesPerSecond()
|
int
|
getVideoSarDen()
|
int
|
getVideoSarNum()
|
float
|
getVideoScaleRatio()
获取但前视频的缩放比例值
|
int
|
getVideoWidth()
|
boolean
|
isComeBackFromShare()
|
boolean
|
isLooping()
|
boolean
|
isPlayable()
|
boolean
|
isPlaying()
|
void
|
moveVideo(float deltaX, float deltaY)
移动播放视频画面,画面超出屏幕可通过次函数移动画面将隐藏的画面显示出来.此函数一般结合setVideoScaleRatio使用,此函数不可与setVideoOffset同时使用
若视频宽高小于屏幕宽高则无法进行移动
|
boolean
|
onKeyDown(int keyCode, KeyEvent event)
|
void
|
onSurfaceTextureAvailable(SurfaceTexture surfaceTexture, int i, int i1)
|
boolean
|
onSurfaceTextureDestroyed(SurfaceTexture surfaceTexture)
|
void
|
onSurfaceTextureSizeChanged(SurfaceTexture surfaceTexture, int i, int i1)
|
void
|
onSurfaceTextureUpdated(SurfaceTexture surfaceTexture)
|
boolean
|
onTouchEvent(MotionEvent ev)
|
boolean
|
onTrackballEvent(MotionEvent ev)
|
void
|
pause()
|
void
|
prepareAsync()
|
void
|
release()
|
void
|
reload(String path, boolean flushBuffer, KSYMediaPlayer.KSYReloadMode mode)
|
void
|
reload(String url, boolean flushBuffer)
|
void
|
reset()
|
void
|
runInBackground(boolean audioPlay)
|
void
|
runInForeground()
|
void
|
seekTo(long pos)
|
void
|
seekTo(long pos, boolean accurate)
|
void
|
selectTrack(int track)
|
void
|
setBufferSize(int size)
|
void
|
setBufferTimeMax(float timeSecond)
|
void
|
setComeBackFromShare(boolean comeBackFromShare)
|
void
|
setDataSource(FileDescriptor fd, long offset, long length)
|
void
|
setDataSource(FileDescriptor fd)
|
void
|
setDataSource(String path)
|
void
|
setDataSource(Context context, Uri uri)
|
void
|
setDataSource(Context context, Uri uri, Map<String, String> headers)
|
void
|
setDecodeMode(KSYMediaPlayer.KSYDecodeMode mode)
|
void
|
setDeinterlaceMode(KSYMediaPlayer.KSYDeinterlaceMode mode)
|
void
|
setLooping(boolean looping)
|
void
|
setMediaController(IMediaController controller)
|
void
|
setMirror(boolean mirror)
|
void
|
setOnAudioPCMAvailableListener(KSYMediaPlayer.OnAudioPCMListener listener)
|
void
|
setOnBufferingUpdateListener(IMediaPlayer.OnBufferingUpdateListener l)
|
void
|
setOnCompletionListener(IMediaPlayer.OnCompletionListener l)
|
void
|
setOnErrorListener(IMediaPlayer.OnErrorListener l)
|
void
|
setOnInfoListener(IMediaPlayer.OnInfoListener l)
|
void
|
setOnLogEventListener(IMediaPlayer.OnLogEventListener l)
|
void
|
setOnMessageListener(IMediaPlayer.OnMessageListener listener)
|
void
|
setOnPreparedListener(IMediaPlayer.OnPreparedListener l)
|
void
|
setOnSeekCompleteListener(IMediaPlayer.OnSeekCompleteListener l)
|
void
|
setOnTimedTextListener(IMediaPlayer.OnTimedTextListener listener)
|
void
|
setOnVideoSizeChangedListener(IMediaPlayer.OnVideoSizeChangedListener l)
|
void
|
setPlayableRanges(long startTime, long endTime)
|
void
|
setPlayerMute(int mute)
|
boolean
|
setRotateDegree(int degree)
|
void
|
setRotation(float rotation)
|
void
|
setScreenOnWhilePlaying(boolean screenOn)
|
void
|
setSpeed(float speed)
|
void
|
setTimeout(int prepareTimeout, int readTimeout)
|
void
|
setVideoOffset(float horizontal, float vertical)
|
void
|
setVideoRawDataListener(KSYMediaPlayer.OnVideoRawDataListener listener)
|
void
|
setVideoRenderingState(int mode)
|
void
|
setVideoScaleRatio(float ratio, float x, float y)
以设置的坐标为中心点对显示的画面进行缩放。缩放时视频画面宽高比保持不变,为原画宽高比例。此函数不可与setVideoOffset同时使用
若视频宽高小于屏幕宽高则以屏幕中心点进行缩放
|
void
|
setVideoScalingMode(int mode)
|
void
|
setVolume(float leftVolume, float rightVolume)
|
void
|
setWakeMode(Context context, int mode)
|
void
|
shouldAutoPlay(boolean state)
|
void
|
softReset()
|
void
|
start()
|
void
|
stop()
|