FlickVideoManager class
Manages VideoPlayerController
.
Responsible to maintain life-cycle of VideoPlayerController
.
- Inheritance
-
- Object
- ChangeNotifier
- FlickVideoManager
Constructors
- FlickVideoManager({required FlickManager flickManager, required bool autoPlay, required bool autoInitialize})
Properties
- autoInitialize → bool
-
final
- autoPlay → bool
-
Auto-play the video after initialization.
final
- errorInVideo → bool
-
Error in initializing video.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- isBuffering → bool
-
Is video buffering.
no setter
- isPlaying → bool
-
no setter
- isVideoEnded → bool
-
Is current playing video ended.
no setter
- isVideoInitialized → bool
-
Is current video initialized.
no setter
- nextVideoAutoPlayDuration → Duration?
-
Next video auto-play duration.
no setter
- nextVideoAutoPlayTimer → Timer?
-
Next video auto-play timer.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- videoPlayerController → VideoPlayerController?
-
Current playing video controller.
no setter
- videoPlayerValue → VideoPlayerValue?
-
videoPlayerController.value
no setter
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
cancelVideoAutoPlayTimer(
{bool playNext = false}) → dynamic - Cancel the current auto player timer with option of playing the next video directly.
-
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
-
handleVideoEnd(
) → dynamic -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notifyListeners(
) → void -
Call all the registered listeners.
inherited
-
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited