VideoLoadOptions class
The VideoLoadOptions class contains different options to configure how videos are loaded from the server.
The Video.defaultLoadOptions object is the default for all loading operations if no VideoLoadOptions are provided to the Video.load function.
Constructors
Properties
-
alternativeUrls
↔ List<
String> ? -
A list of alternative urls for video files in the case where the
primary url does not work or the file type is not supported by the
browser. If this value is null, the alternative urls are calcualted
automatically based on the mp3, mp4, ogg, ac3 and wav properties.
getter/setter pair
- corsEnabled ↔ bool
-
Use CORS to download the video. This is often necessary when you have
to download video from a third party server.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- loadData ↔ bool
-
Do not stream the video but download the video file as a whole.
A DataUrl string will be used for the VideoElement source.
getter/setter pair
- mp4 ↔ bool
-
The application provides mp4 files as an option to load video files.
getter/setter pair
- ogg ↔ bool
-
The application provides ogg files as an option to load video files.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- webm ↔ bool
-
The application provides webm files as an option to load video files.
getter/setter pair
Methods
-
clone(
) → VideoLoadOptions - Create a deep clone of this VideoLoadOptions.
-
getOptimalVideoUrls(
String primaryUrl) → List< String> - Determine which video files is the most likely to play smoothly, based on the supported types and formats available.
-
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