FijkState enum
State of the FijkPlayer
This is the state machine of ijkplayer. FijkPlayer has the same state as native ijkplayer. The state changed after method called or when some error occurs. One state can only change into the new state it can reach.
For example, idle can't becomes asyncPreparing directly.
Values
- idle → const FijkState
-
The state when a FijkPlayer is just created. Native ijkplayer memory and objects also be alloced or created when a FijkPlayer is created.
- setDataSource() -> initialized
- reset() -> self
- release() -> end
- initialized → const FijkState
-
After call FijkPlayer.setDataSource on state idle, the state becomes initialized.
- prepareAsync() -> asyncPreparing
- reset() -> idle
- release() -> end
- asyncPreparing → const FijkState
-
There're many tasks to do during prepare, such as detect stream info in datasource, find and open decoder, start decode and refresh thread. So ijkplayer export a async api prepareAsync. When FijkPlayer.prepareAsync is called on state initialized, ths state changed to asyncPreparing immediately. After all task in prepare have finished, the state changed to prepared. Additionally, if any error occurs during prepare, the state will change to error.
- prepared → const FijkState
-
After finish all the heavy tasks during FijkPlayer.prepareAsync, the state becomes prepared from asyncPreparing.
- started → const FijkState
- paused → const FijkState
- completed → const FijkState
- stopped → const FijkState
-
- stop() -> self
- prepareAsync() -> asyncPreparing
- reset() -> idle
- release() -> end
- error → const FijkState
- end → const FijkState
-
- release() -> self
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited