Class: VideoRecorder

ol.control. VideoRecorder

Record map canvas as video


new VideoRecorder( [options])

Parameters:
Name Type Argument Description
options Object <optional>

Control options.

Properties
Name Type Argument Default Description
className String

class of the control

framerate number <optional>
30

framerate for the video

videoBitsPerSecond number <optional>
5000000

bitrate for the video

videoTarget DOMElement | string <optional>

video element or the container to add the video when finished or 'DIALOG' to show it in a dialog, default none

Extends

Members


tips

Default button tips

Methods


pause()

Pause recording


resume()

Resume recording after pause


setMap(map)

Remove the control from its current map and attach it to the new map. Subclasses may set up event handlers to get notified about changes to the map here.

Parameters:
Name Type Description
map ol.Map

Map.


setTooltip(button, title)

Set button title

Parameters:
Name Type Description
button string

button name (start, stop, pause or resume)

title string

start()

Start recording


stop()

Stop recording