VideoSourceSpecification

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.

See MapLibre Style Spec.

Properties

Link copied to clipboard
abstract var coordinates: Array<Array<Double>>

Corners of video specified in longitude, latitude pairs. Corners order: topLeft, topRight, bottomRight, bottomLeft Each corner is longitude, latitude

Link copied to clipboard
abstract var type: String

The source type: "geojson", "vector", "raster", "raster-dem", "image", or "video".

Link copied to clipboard
abstract var urls: Array<String>

URLs to video content in order of preferred format.