FijkPlayer class

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.
no setter
bufferPos → Duration
return the current buffered position
no setter
currentPos → Duration
return the current playing position
no setter
dataSource → String?
no setter
hashCode → int
The hash code for this object.
no setterinherited
hasListeners → bool
Whether any listeners are currently registered.
no setterinherited
id → Future<int>
Return the player unique id.
no setter
idSync → int
Get is in sync, if the async id is not finished, idSync return -1;
no setter
isBuffering → bool
return true if the player is buffering
no setter
onBufferPercentUpdate → Stream<int>
stream of bufferPercent.
no setter
onBufferPosUpdate → Stream<Duration>
stream of bufferPos.
no setter
onBufferStateUpdate → Stream<bool>
no setter
onCurrentPosUpdate → Stream<Duration>
stream of currentPos.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
state → FijkState
return the current state
no setter
value → FijkValue
The current value of the object.
no setteroverride

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.
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 nonexistent method or property is accessed.
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
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>
resetPlayerUrl(String url) → Future<int>
Felix wang https://github.com/wf1992 reset player url
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>
no setter