FijkPlayer class Null safety

FijkPlayer present as a playback. It interacts with native object.

FijkPlayer invoke native method and receive native event.

Inheritance
Implemented types

Constructors

FijkPlayer()

Properties

bufferPercent int
return the buffer percent of water mark.
read-only
bufferPos Duration
return the current buffered position
read-only
currentPos Duration
return the current playing position
read-only
dataSource String?
read-only
hashCode int
The hash code for this object.
read-only, inherited
hasListeners bool
Whether any listeners are currently registered.
@protected, read-only, inherited
id Future<int>
Return the player unique id.
read-only
idSync int
Get is in sync, if the async id is not finished, idSync return -1;
read-only
isBuffering bool
return true if the player is buffering
read-only
onBufferPercentUpdate Stream<int>
stream of bufferPercent.
read-only
onBufferPosUpdate Stream<Duration>
stream of bufferPos.
read-only
onBufferStateUpdate Stream<bool>
read-only
onCurrentPosUpdate Stream<Duration>
stream of currentPos.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
state FijkState
return the current state
read-only
value FijkValue
The current value of the object. When the value changes, the callbacks registered with addListener will be invoked.
read-only, override

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
applyOptions(FijkOption fijkOption) Future<void>
dispose() → void
Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to addListener will throw after the object is disposed).
@mustCallSuper, inherited
enterFullScreen() → void
enter full screen mode, set FijkValue.fullScreen to true
exitFullScreen() → void
exit full screen mode, set FijkValue.fullScreen to false
isPlayable() bool
Check if player is playable
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
pause() Future<void>
prepareAsync() Future<void>
start the async preparing tasks
release() Future<void>
Release native player. Release memory and resource
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
reset() Future<void>
seekTo(int msec) Future<void>
setDataSource(String path, {bool autoPlay = false, bool showCover = false}) Future<void>
Set data source for this player
setLoop(int loopCount) Future<void>
Set player loop count
setOption(int category, String key, dynamic value) Future<void>
set option value must be int or String
setSpeed(double speed) Future<void>
Set playback speed
setupSurface() Future<int?>
setVolume(double volume) Future<void>
set volume of this player audio track
start() Future<void>
change player's state to FijkState.started
stop() Future<void>
takeSnapShot() Future<Uint8List>
Take snapshot (screen shot) of current playing video
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

all Iterable<FijkPlayer>
read-only