MTVideoSource

class MTVideoSource(var identifier: String, var urls: List<URL>, var coordinates: List<LngLat>) : MTSource

A video source.

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

Constructors

constructor(identifier: String, urls: List<URL>, coordinates: List<LngLat>)

Properties

Corners of the video in clockwise order starting at top-left.

open override var identifier: String

Unique identifier of a source.

open override val type: MTSourceType

Type of the source.

open override var url: URL?

URL pointing to the source resource.

var urls: List<URL>

URLs pointing to the video in preferred order (format variants).

Functions

fun setCoordinates(coordinates: List<LngLat>, mapViewController: MTMapViewController)

Updates the video corners.