Method Name | Valid Sates | Invalid States | Comments |
attachAuxEffect | {Initialized, Prepared, Started, Paused, Stopped,PlaybackCompleted} | {Idle, Error} | This method must be called after setDataSource. Calling it does notchange the object state. |
getAudioSessionId | any | {} | This method can be called in any state and calling it does notchange the object state. |
getCurrentPosition | {Idle, Initialized, Prepared, Started, Paused, Stopped,PlaybackCompleted} | {Error} | Successful invoke of this method in a valid state does not changethe state. Calling this method in an invalid state transfers theobject tothe |
getDuration | {Prepared, Started, Paused, Stopped, PlaybackCompleted} | {Idle, Initialized, Error} | Successful invoke of this method in a valid state does not changethe state. Calling this method in an invalid state transfers theobject tothe |
getVideoHeight | {Idle, Initialized, Prepared, Started, Paused, Stopped,PlaybackCompleted} | {Error} | Successful invoke of this method in a valid state does not changethe state. Calling this method in an invalid state transfers theobject tothe |
getVideoWidth | {Idle, Initialized, Prepared, Started, Paused, Stopped,PlaybackCompleted} | {Error} | Successful invoke of this method in a valid state does not changethe state. Calling this method in an invalid state transfers theobject tothe |
isPlaying | {Idle, Initialized, Prepared, Started, Paused, Stopped,PlaybackCompleted} | {Error} | Successful invoke of this method in a valid state does not changethe state. Calling this method in an invalid state transfers theobject tothe |
pause | {Started, Paused} | {Idle, Initialized, Prepared, Stopped, PlaybackCompleted, Error} | Successful invoke of this method in a valid state transfers theobject to thePaused |
prepare | {Initialized, Stopped} | {Idle, Prepared, Started, Paused, PlaybackCompleted, Error} | Successful invoke of this method in a valid state transfers theobject to thePrepared |
prepareAsync | {Initialized, Stopped} | {Idle, Prepared, Started, Paused, PlaybackCompleted, Error} | Successful invoke of this method in a valid state transfers theobject to thePreparing |
release | any | {} | After release() ,the object is no longer available. |
reset | {Idle, Initialized, Prepared, Started, Paused, Stopped,PlaybackCompleted, Error} | {} | After reset() ,the object is like being just created. |
seekTo | {Prepared, Started, Paused, PlaybackCompleted} | {Idle, Initialized, Stopped, Error} | Successful invoke of this method in a valid state does not changethe state. Calling this method in an invalid state transfers theobject tothe |
setAudioSessionId | {Idle} | {Initialized, Prepared, Started, Paused, Stopped,PlaybackCompleted, Error} | This method must be called in idle state as the audio session IDmust be known before calling setDataSource. Calling it does notchange the object state. |
setAudioStreamType | {Idle, Initialized, Stopped, Prepared, Started, Paused,PlaybackCompleted} | {Error} | Successful invoke of this method does not change the state. Inorder for the target audio stream type to become effective, thismethod must be called before prepare() or prepareAsync(). |
setAuxEffectSendLevel | any | {} | Calling this method does not change the object state. |
setDataSource | {Idle} | {Initialized, Prepared, Started, Paused, Stopped,PlaybackCompleted, Error} | Successful invoke of this method in a valid state transfers theobject to theInitialized |
setDisplay | any | {} | This method can be called in any state and calling it does notchange the object state. |
setSurface | any | {} | This method can be called in any state and calling it does notchange the object state. |
setLooping | {Idle, Initialized, Stopped, Prepared, Started, Paused,PlaybackCompleted} | {Error} | Successful invoke of this method in a valid state does not changethe state. Calling this method in an invalid state transfers theobject tothe |
isLooping | any | {} | This method can be called in any state and calling it does notchange the object state. |
setOnBufferingUpdateList | any | {} | This method can be called in any state and calling it does notchange the object state. |
setOnCompletionListener | any | {} | This method can be called in any state and calling it does notchange the object state. |
setOnErrorListener | any | {} | This method can be called in any state and calling it does notchange the object state. |
setOnPreparedListener | any | {} | This method can be called in any state and calling it does notchange the object state. |
setOnSeekCompleteListene | any | {} | This method can be called in any state and calling it does notchange the object state. |
setScreenOnWhilePlaying | any | {} | This method can be called in any state and calling it does notchange the object state. |
setVolume | {Idle, Initialized, Stopped, Prepared, Started, Paused,PlaybackCompleted} | {Error} | Successful invoke of this method does not change the state. |
setWakeMode | any | {} | This method can be called in any state and calling it does notchange the object state. |
start | {Prepared, Started, Paused, PlaybackCompleted} | {Idle, Initialized, Stopped, Error} | Successful invoke of this method in a valid state transfers theobject to theStarted |
stop | {Prepared, Started, Stopped, Paused, PlaybackCompleted} | {Idle, Initialized, Error} | Successful invoke of this method in a valid state transfers theobject to theStopped |
联系客服