NetworkVideoControl class
Constructors
-
NetworkVideoControl({bool autoPlay = false, Duration? startAt, bool looping = false, bool fullScreenByDefault = false, ChewieProgressColors? cupertinoProgressColors, ChewieProgressColors? materialProgressColors, Widget? placeholder, Widget? overlay, bool showControlsOnInitialize = true, bool showControls = true, Widget? customControls, Widget errorBuilder(BuildContext context, String errorMessage)?, bool allowedScreenSleep = true, bool isLive = false, bool allowFullScreen = true, bool allowMuting = true, List<
SystemUiOverlay> systemOverlaysAfterFullScreen = SystemUiOverlay.values, List<DeviceOrientation> deviceOrientationsAfterFullScreen = const [DeviceOrientation.portraitUp, DeviceOrientation.portraitDown, DeviceOrientation.landscapeLeft, DeviceOrientation.landscapeRight], ChewieRoutePageBuilder? routePageBuilder})
Properties
- allowedScreenSleep → bool
-
Defines if the player will sleep in fullscreen or not
final
- allowFullScreen → bool
-
Defines if the fullscreen control should be shown
final
- allowMuting → bool
-
Defines if the mute control should be shown
final
- autoPlay → bool
-
Play the video as soon as it's displayed
final
- cupertinoProgressColors → ChewieProgressColors?
-
The colors to use for controls on iOS. By default, the iOS player uses
colors sampled from the original iOS 11 designs.
final
- customControls → Widget?
-
Defines customised controls. Check
MaterialControls
orCupertinoControls
for reference.final -
deviceOrientationsAfterFullScreen
→ List<
DeviceOrientation> -
Defines the set of allowed device orientations after exiting fullscreen
final
- errorBuilder → Widget Function(BuildContext context, String errorMessage)?
-
When the video playback runs into an error, you can build a custom
error message.
final
- fullScreenByDefault → bool
-
Defines if the player will start in fullscreen when play is pressed
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isLive → bool
-
Defines if the controls should be for live stream video
final
- looping → bool
-
Whether or not the video should loop
final
- materialProgressColors → ChewieProgressColors?
-
The colors to use for the Material Progress Bar. By default, the Material
player uses the colors from your Theme.
final
- overlay → Widget?
-
A widget which is placed between the video and the controls
final
- placeholder → Widget?
-
The placeholder is displayed underneath the Video before it is initialized
or played.
final
- routePageBuilder → ChewieRoutePageBuilder?
-
Defines a custom RoutePageBuilder for the fullscreen
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- showControls → bool
-
Whether or not to show the controls at all
final
- showControlsOnInitialize → bool
-
Weather or not to show the controls when initializing the widget.
final
- startAt → Duration?
-
Start video at a certain position
final
-
systemOverlaysAfterFullScreen
→ List<
SystemUiOverlay> -
Defines the system overlays visible after exiting fullscreen
final
Methods
-
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