PlayVideoController class
PlayVideoController is the controller passed in the VideoPlayer widget It Contain common functionality and my differs according to the input
To access the state that contain all funtionality It must be given as a controller in the PlayVideo
Constructors
- PlayVideoController({required Videos videos, int startIndex = 0, bool isAutoPlay = true, Duration startingDuration = Duration.zero, BoxFit fit = BoxFit.contain, bool wakeLock = true, double? aspectRatio})
- PlayVideoController is the controller passed in the VideoPlayer widget It Contain common functionality and my differs according to the input
Properties
- aspectRatio → double?
-
aspectRatio of the Video which need to be shown
final
- fit → BoxFit
-
fit how the Video need to see in the widget
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isAutoPlay → bool
-
isAutoPlay desides start video auto or manualy
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startIndex → int
-
Which Video Need to start play first
final
- startingDuration → Duration
-
startingDuration The duration where the video need to start
final
- state ↔ VideoPlayerState
-
state The full control to the video , player and ui elements
getter/setter pair
- videos → Videos
-
videos Add all Videos As Videos
final
- wakeLock → bool
-
wakeLock Whether to acquire wake lock while playing the video
final
Methods
-
dispose(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited