Skip to content

video_source

Stable

Places a video at four coordinates for a raster layer to draw.

The events this component sends to the LiveView, as the library documents them. Each arrives in handle_event/3.

  • source:added

    Fired once, with source_id, the first time the source is on the map (not again when a style change, or a map rendered again with the same id, puts it back)

  • source:removed

    Fired, with source_id, once the source is gone after the component is removed, if source:added was fired

  • source:error

    Fired, with source_id and error, when MapLibre fails to add or replace the source