CustomVideoPlayerWebSettings class
Constructors
- CustomVideoPlayerWebSettings({Key? key, required String src, double? aspectRatio, double startAt = 0, bool autoplay = false, bool enableControls = true, String? backgroundColor, bool enterFullscreenOnStart = false, bool exitFullscreenOnEnd = false, bool preventSeeking = false, bool hideDownloadButton = false, bool disablePictureInPicture = false, String? thumbnailPath})
-
const
Properties
- aspectRatio → double?
-
optional aspect ratio for video. must be known or found out before
final
- autoplay → bool
-
set autoplay
final
- backgroundColor → String?
-
set background color of video element. seen if video doesnt fit in the defined width & height
final
- disablePictureInPicture → bool
-
It will disable PIP Mode
final
- enableControls → bool
-
set controls available or not
final
- enterFullscreenOnStart → bool
-
set if video should enter fullscreen on start
final
- exitFullscreenOnEnd → bool
-
set if video should exit fullscreen on end
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- hideDownloadButton → bool
-
on chrome browser the more menu contains a download button which can be hidden when this is set to true
final
- key → Key?
-
Key
final
- preventSeeking → bool
-
set if video should be prevented from seeking. use with caution (ui is jumpin but it works)
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- src → String
-
video url
final
- startAt → double
-
video startig position in seconds
final
- thumbnailPath → String?
-
online url to the image that should be shown when the video is not playing
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