Add a video source to a Mapbox GL or Maplibre GL map
add_video_source(map, id, urls, coordinates)
The modified map object with the new source added.
A map object created by the mapboxgl
or maplibre
function.
A unique ID for the source.
A vector of URLs pointing to the video sources.
A list of coordinates specifying the video corners in clockwise order: top left, top right, bottom right, bottom left.