FlickControlManager class

Manages action on video player like play, mute and others.

FlickControlManager helps user interact with the player, like change play state, change volume, seek video, enter/exit full-screen.

Inheritance

Constructors

FlickControlManager({required FlickManager flickManager})

Properties

hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
isFullscreen bool
Is player in full-screen.
no setter
isMute bool
Is player mute.
no setter
isSub bool
Is subtitle visible.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
autoPause() Future<void>
Use this to programmatically pause the video.
autoResume() Future<void>
Auto-resume video.
decreaseVolume(double decreaseBy) Future<void>
Decrease volume between 0.0 - 1.0, 0.0 being mute and 1.0 full volume.
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).
override
enterFullscreen() → void
Enter full-screen.
exitFullscreen() → void
Exit full-screen.
hideSubtitle() Future<void>
hide the subtitle.
increaseVolume(double increaseBy) Future<void>
Increase volume between 0.0 - 1.0, 0.0 being mute and 1.0 full volume.
mute() Future<void>
Mute the video.
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>
Pause the video.
play() Future<void>
Play the video.
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
replay() → void
Replay the current playing video from beginning.
seekBackward(Duration videoSeekDuration) Future<void>
Seek video backward by the duration.
seekForward(Duration videoSeekDuration) Future<void>
Seek video forward by the duration.
seekTo(Duration moment) Future<void>
Seek video to a duration.
setPlaybackSpeed(double speed) Future<void>
Sets the playback speed of this.
setVolume(double volume, {bool isMute = false}) Future<void>
Set volume between 0.0 - 1.0, 0.0 being mute and 1.0 full volume.
showSubtitle() Future<void>
show the subtitle.
toggleFullscreen() → void
Toggle full-screen.
toggleMute() Future<void>
Toggle mute.
togglePlay() → void
Toggle play.
toggleSubtitle() Future<void>
Toggle subtitle.
toString() String
A string representation of this object.
inherited
unmute() Future<void>
Un-mute the video.

Operators

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