public interface AliyunTemplatePlayer
sdk version >= v3.27.0
template player
Modifier and Type | Method and Description |
---|---|
java.util.List<AliyunTemplateParam> |
getAllParams()
Gets the template param.
|
long |
getCurrentPlayPosition()
Gets the current position on the playback timeline.
|
long |
getDuration()
Gets the duration of the playback timeline.
|
AliyunEditorProject |
getEditorProject()
Gets the editor project.
|
int |
init(SurfaceView surfaceView,
int width,
int height)
init and Sets the display view.
|
boolean |
isPaused()
Gets whether playback is paused.
|
boolean |
isPlaying() |
void |
onDestroy()
The final lifecycle callback.
|
int |
pause()
Pauses playback.
|
int |
play()
Starts playback.
|
int |
seek(long time)
Seeks to a point in time.
|
void |
setPlayerCallBack(EditorCallBack playerCallBack)
Sets the player callBack.
|
int init(SurfaceView surfaceView, int width, int height)
surfaceView
- display view.width
- display widthheight
- display heightvoid setPlayerCallBack(EditorCallBack playerCallBack)
playerCallBack
- player callBackint play()
int seek(long time)
time
- The point in time. Unit: microseconds.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
int pause()
long getCurrentPlayPosition()
long getDuration()
boolean isPlaying()
boolean isPaused()
void onDestroy()
AliyunEditorProject getEditorProject()
java.util.List<AliyunTemplateParam> getAllParams()