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

VideoLoadOptions()

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.
read / write
corsEnabled ↔ bool
Use CORS to download the video. This is often necessary when you have to download video from a third party server.
read / write
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.
read / write
mp4 ↔ bool
The application provides mp4 files as an option to load video files.
read / write
ogg ↔ bool
The application provides ogg files as an option to load video files.
read / write
webm ↔ bool
The application provides webm files as an option to load video files.
read / write
hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

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 non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited