IPlayer.ConvertURLCallback, IPlayer.MirrorMode, IPlayer.OnCompletionListener, IPlayer.OnErrorListener, IPlayer.OnInfoListener, IPlayer.OnLoadingStatusListener, IPlayer.OnLogCallback, IPlayer.OnPreparedListener, IPlayer.OnRenderingStartListener, IPlayer.OnSeekCompleteListener, IPlayer.OnSeiDataListener, IPlayer.OnSnapShotListener, IPlayer.OnStateChangedListener, IPlayer.OnSubtitleDisplayListener, IPlayer.OnThumbnailListener, IPlayer.OnTrackChangedListener, IPlayer.OnTrackReadyListener, IPlayer.OnVideoSizeChangedListener, IPlayer.PropertyKey, IPlayer.RotateMode, IPlayer.ScaleMode, IPlayer.SeekMode
completion, error, idle, initalized, paused, prepared, started, stopped, unknow
Modifier and Type | Method and Description |
---|---|
void |
addUrl(java.lang.String url,
java.lang.String uid)
Add a playback URL.
|
void |
addVid(java.lang.String videoId,
java.lang.String uid)
Add the VID of a video to be played.
|
void |
clear()
Remove all videos.
|
java.lang.String |
getCurrentUid()
Query the UID of the video that is being played.
|
int |
getMaxPreloadMemorySizeMB()
Query the maximum memory size for preloading.
|
boolean |
moveTo(java.lang.String uid)
Play a specified video.
|
boolean |
moveTo(java.lang.String uid,
StsInfo info)
Play a specified video.
|
boolean |
moveToNext()
Play the next video.
|
boolean |
moveToNext(StsInfo info)
Play the next video.
|
boolean |
moveToPrev()
Play the previous video.
|
boolean |
moveToPrev(StsInfo info)
Play the previous video.
|
void |
removeSource(java.lang.String uid)
Remove a video.
|
void |
setDefinition(java.lang.String definition)
Specify a definition for playback.
|
void |
setMaxPreloadMemorySizeMB(int size)
Specify the maximum memory size for preloading.
|
void |
setPreloadCount(int count)
Specify the number of preloaded videos.
|
setDataSource, setDataSource, setDataSource, setDataSource
currentTrack, currentTrack, enableHardwareDecoder, enableLog, getCacheFilePath, getCacheFilePath, getConfig, getDuration, getMediaInfo, getMirrorMode, getPropertyString, getRotateMode, getScaleMode, getSpeed, getVideoHeight, getVideoRotation, getVideoWidth, getVolume, isAutoPlay, isLoop, isMute, pause, prepare, redraw, release, reload, reset, seekTo, seekTo, selectTrack, setAutoPlay, setCacheConfig, setConfig, setDisplay, setLogCallback, setLoop, setMirrorMode, setMute, setOnCompletionListener, setOnErrorListener, setOnInfoListener, setOnLoadingStatusListener, setOnPreparedListener, setOnRenderingStartListener, setOnSeekCompleteListener, setOnSeiDataListener, setOnSnapShotListener, setOnStateChangedListener, setOnSubtitleDisplayListener, setOnTrackChangedListener, setOnTrackReadyListener, setOnVideoSizeChangedListener, setRotateMode, setScaleMode, setSpeed, setSurface, setTraceId, setVolume, snapshot, start, stop
void setDefinition(java.lang.String definition)
definition
- The value of the definition.void setPreloadCount(int count)
count
- The number of reploaded videos.void addVid(java.lang.String videoId, java.lang.String uid)
videoId
- The video VID.uid
- The video UID. A UID is used to uniquely identify a video. If two videos have the same UID, then the videos are considered the same.void addUrl(java.lang.String url, java.lang.String uid)
url
- The playback URL.uid
- The video UID. A UID is used to uniquely identify a video. If two videos have the same UID, then the videos are considered the same.void removeSource(java.lang.String uid)
uid
- The video UID. A UID is used to uniquely identify a video. If two videos have the same UID, then the videos are considered the same.void clear()
java.lang.String getCurrentUid()
boolean moveToNext()
boolean moveToPrev()
boolean moveTo(java.lang.String uid)
uid
- The video UID. A UID is used to uniquely identify a video. If two videos have the same UID, then the videos are considered the same.boolean moveToNext(StsInfo info)
info
- Security Token Service (STS) information. Pass the STS information to renew the STS token.boolean moveToPrev(StsInfo info)
info
- STS information. Pass the STS information to renew the STS token.boolean moveTo(java.lang.String uid, StsInfo info)
uid
- The video UID. A UID is used to uniquely identify a video. If two videos have the same UID, then the videos are considered the same.info
- STS information. Pass the STS information to renew the STS token.void setMaxPreloadMemorySizeMB(int size)
size
- The maximum memory size for preloading.int getMaxPreloadMemorySizeMB()