BlingVideoPlayer class
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.assets、
BlingVideoPlayer.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