ConsonaVideoController class
Thin reactive wrapper around a vp.VideoPlayerController.
- Inheritance
-
- Object
- ChangeNotifier
- ConsonaVideoController
Constructors
- ConsonaVideoController.asset(String assetPath)
-
Bundled Flutter asset.
factory
- ConsonaVideoController.fromPlayer(VideoPlayerController player)
-
Existing
vp.VideoPlayerController(tests / advanced hosts).factory -
ConsonaVideoController.network(String url, {Map<
String, String> ? httpHeaders}) -
Network stream.
factory
Properties
- aspectRatio → double
-
no setter
- buffered → Duration
-
no setter
- duration → Duration
-
no setter
- errorMessage → String?
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasListeners → bool
-
Whether any listeners are currently registered.
no setterinherited
- isBuffering → bool
-
no setter
- isInitialized → bool
-
no setter
- isLooping → bool
-
no setter
- isMuted → bool
-
no setter
- isPlaying → bool
-
no setter
- playbackSpeed → double
-
no setter
- position → Duration
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status → ConsonaVideoStatus
-
no setter
- volume → double
-
no setter
Methods
-
addListener(
VoidCallback listener) → void -
Register a closure to be called when the object changes.
inherited
-
buildView(
) → Widget - Platform video surface. Only valid after initialize.
-
dispose(
) → void -
Discards any resources used by the object.
override
-
initialize(
{bool autoPlay = false, bool looping = false}) → Future< void> -
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> -
play(
) → Future< void> -
removeListener(
VoidCallback listener) → void -
Remove a previously registered closure from the list of closures that are
notified when the object changes.
inherited
-
seekTo(
Duration position) → Future< void> -
setLooping(
bool looping) → Future< void> -
setMuted(
bool muted) → Future< void> -
setPlaybackSpeed(
double speed) → Future< void> -
setVolume(
double volume) → Future< void> -
togglePlay(
) → Future< void> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited