The following types of commands are available:
Select the video camera and its mode.
type InitMessage = {type: 'init', mode: 'live' | 'archive', origin: string, time: Date, options?: Options}
The options object allows you to control the archive panel — hide it or show it.
type Options = {archivePane?: boolean}
The origin object corresponds to the VIDEOSOURCEID identifier (see Get list of video cameras and information about them).
Select a different video camera in the video component. Usually used after the init command to change a video camera.
type RelnitMessage = {type: 'relnit', mode: 'live' | 'archive', origin: string, time: Date, options?: Options}
Switch between the archive and live video.
type SwitchMode = {type: 'live' | 'archive'}
Start and stop the video playback from the archive.
type PlaybackCommand = {type: 'play' | 'stop'}
Go to a certain time in the archive.
type SetTimeCommand = {type: 'setTime', time: Date}
Focus on the selected camera.
type SetCameraCommand = {type: 'setCamera', origin: string}