public interface AliyunIPlayerController
Added in v3.27.0
Modifier and Type | Method and Description |
---|---|
long |
getCurrentPlayPosition()
Gets the current position on the playback timeline.
|
long |
getCurrentStreamPosition()
Gets the current position on the stream timeline.
|
long |
getDuration()
Gets the duration of the playback timeline.
|
long |
getStreamDuration()
Gets the duration of the video stream.
|
boolean |
isMute()
Gets whether playback is muted.
|
boolean |
isPaused()
Gets whether playback is paused.
|
boolean |
isPlaying() |
int |
pause()
Pauses playback.
|
int |
play()
Starts playback.
|
int |
replay()
Restarts playback.
|
int |
resume()
Resumes playback.
|
int |
seek(long time,
java.util.concurrent.TimeUnit timeUnit)
Seeks to a point in time.
|
void |
setMute(boolean mute)
Mutes or unmutes playback.
|
int |
setVolume(int volume)
Sets volume.
|
int |
stop()
Stops playback.
|
int play()
int pause()
int resume()
int stop()
int replay()
int seek(long time, java.util.concurrent.TimeUnit timeUnit)
time
- The point in time.AliyunErrorCode.ERROR_TRES_ILLEGAL_EDITOR_STATE
AliyunEditorErrorCode.SVIDEO_EDITOR_NATIVE_NOT_INITED
AliyunEditorErrorCode.SVIDEO_EDITOR_INVALID_STATE
AliyunEditorErrorCode.SVIDEO_EDITOR_SEEK_IN_OFFSET
AliyunEditorErrorCode.SVIDEO_EDITOR_SEEK_ERROR
AliyunEditorErrorCode.ALIVC_FRAMEWORK_AUDIO_PROCESS_SEEK_FAILED
long getCurrentStreamPosition()
long getCurrentPlayPosition()
long getStreamDuration()
long getDuration()
boolean isPlaying()
boolean isPaused()
boolean isMute()
void setMute(boolean mute)
mute
- A value of true indicates mute playback. A value of false indicates unmute playback.int setVolume(int volume)
volume
- Valid values: [0, 100]. 0 indicates muted. 100 indicates the maximum volume. Default is 50.AliyunErrorCode.ERROR_TRES_ILLEGAL_EDITOR_STATE
AliyunEditorErrorCode.SVIDEO_EDITOR_NATIVE_NOT_INITED
AliyunEditorErrorCode.SVIDEO_EDITOR_INVALID_STATE
AliyunEditorErrorCode.ALIVC_FRAMEWORK_AUDIO_PROCESS_CTL_INPUT_ERROR