BlingVideoPlayer class

Inheritance

Constructors

BlingVideoPlayer({Key? key, BlingVideoPlayerController? controller, double? width, double? height, Alignment? alignment, BoxFit? fit, BlingVideoBuilder? indicatorBuilder, BlingVideoBuilder? placeholderBuilder, BlingVideoBuilder? bufferBuilder, Color? color, PanelBuilder? panelBuilder, AsyncErrorWidgetBuilder? errorWidgetBuilder, InitializedBuilder? initializedBuilder, bool? delayInit})
Creates a widget that displays an videoPlayer. If you're just playing a video and not doing too much,you might want to use a convenience constructor BlingVideoPlayer.assetsBlingVideoPlayer.file or BlingVideoPlayer.network
const
BlingVideoPlayer.assets(String dataSource, {Key? key, bool? mixWithOthers, String? package, Future<ClosedCaptionFile>? closedCaptionFile, bool? isLooping, double? width, double? height, Alignment? alignment, BoxFit? fit, BlingVideoBuilder? indicatorBuilder, BlingVideoBuilder? placeholderBuilder, Color? color, PanelBuilder? panelBuilder, AsyncErrorWidgetBuilder? errorWidgetBuilder, InitializedBuilder? initializedBuilder, bool? delayInit})
const
BlingVideoPlayer.file(String dataSource, {Key? key, bool? mixWithOthers, String? package, Future<ClosedCaptionFile>? closedCaptionFile, bool? isLooping, double? width, double? height, Alignment? alignment, BoxFit? fit, BlingVideoBuilder? indicatorBuilder, BlingVideoBuilder? placeholderBuilder, Color? color, PanelBuilder? panelBuilder, AsyncErrorWidgetBuilder? errorWidgetBuilder, InitializedBuilder? initializedBuilder, bool? delayInit})
const
BlingVideoPlayer.network(String dataSource, {Key? key, bool? mixWithOthers, String? package, Future<ClosedCaptionFile>? closedCaptionFile, bool? isLooping, double? width, double? height, Alignment? alignment, BoxFit? fit, BlingVideoBuilder? indicatorBuilder, BlingVideoBuilder? placeholderBuilder, BlingVideoBuilder? bufferBuilder, Color? color, PanelBuilder? panelBuilder, AsyncErrorWidgetBuilder? errorWidgetBuilder, InitializedBuilder? initializedBuilder, bool? delayInit})
const

Properties

alignment Alignment?
Just like the properties of the Image.alignment, default value is Alignment.center
finalinherited
bufferBuilder → BlingVideoBuilder?
you can use bufferBuilder when video is buffering
finalinherited
color Color?
video background color
finalinherited
controller BlingVideoPlayerController?
The placeholderBuilder is displayed if controller == null
finalinherited
errorWidgetBuilder → AsyncErrorWidgetBuilder?
When playing an exception, you can customize the exception style using errorWidgetBuilder
finalinherited
fit BoxFit?
Just like the properties of the Image.fit, default value is BoxFit.contain
finalinherited
hashCode int
The hash code for this object.
no setterinherited
height double?
Just like the properties of the Image.height
finalinherited
indicatorBuilder → BlingVideoBuilder?
you can use indicatorBuilder when the video is initializing or buffering
finalinherited
initializedBuilder → InitializedBuilder?
The initializedBuilder is executed when the video is successfully initialized
finalinherited
key Key?
Controls how one widget replaces another widget in the tree.
finalinherited
panelBuilder → PanelBuilder?
You can customize the player style, such as pause, play, progress bar, etc
finalinherited
placeholderBuilder → BlingVideoBuilder?
You can use a placeholderBuilder when the video has not yet initialize
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
width double?
Just like the properties of the Image.width
finalinherited

Methods

createElement() StatefulElement
Creates a StatefulElement to manage this widget's location in the tree.
inherited
createState() → _BlingVideoPlayerState
Creates the mutable state for this widget at a given location in the tree.
override
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children.
inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep.
inherited
toString({DiagnosticLevel minLevel = DiagnosticLevel.info}) String
A string representation of this object.
inherited
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants.
inherited
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object.
inherited
toStringShort() String
A short, textual description of this widget.
inherited

Operators

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