VideoSource class final Style

A video source. The urls value is an array. For each URL in the array, a video element source will be created. To support the video across browsers, supply URLs in multiple formats.

The coordinates array contains longitude, latitude pairs for the video corners listed in clockwise order: top left, top right, bottom right, bottom left.

When rendered as a raster layer, the layer's raster-fade-duration property will cause the video to fade in. This happens when playback is started, paused and resumed, or when the video's coordinates are updated. To avoid this behavior, set the layer's raster-fade-duration property to 0.

Only supported on web.

https://maplibre.org/maplibre-style-spec/sources/#video

Inheritance

Constructors

VideoSource.new({required String id, required List<String> urls, required List<Position> coordinates})
The default constructor for a VideoSource object.
const

Properties

coordinates List<Position>
Corners of video specified in longitude, latitude pairs.
final
hashCode int
The hash code for this object.
no setterinherited
id String
The id of the source.
finalinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
urls List<String>
URLs to video content in order of preferred format.
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