Go to documentation repository
Page History
Następujące typy komend są dostępne:
Wybór kamery oraz jej trybu
The following types of commands are available:
Select the video camera and its mode.
Code Block type InitMessage = {type: 'init', mode: 'live' | 'archive', origin: string, time: Date, options?: Options}
The options object allows you to control the archive panel - to hide it or to show itObiekt options pozwala na kontrolę panelu archiwum - jego ukrywanie oraz wyświetlanie.
Code Block type Options = {archivePane?: boolean}
The origin object corresponds to the VIDEOSOURCEID identifier (see Obiekt origin odpowiada identyfikatorowi VIDEOSOURCEID (zobacz: Pozyskaj listę źródeł wideo (kamer)).
Switch between archive and live modePrzełączanie między trybem archiwum, a wideo na żywo.
Code Block type SwitchMode = {type: 'live' | 'archive'}
Play and stop the video in archive modeOdtwarzanie i zatrzymywanie wideo w trybie archiwum.
Code Block type PlaybackCommand = {type: 'play' | 'stop'}
Go to a certain time in archive modePrzechodzenie do określonego czasu w trybie archiwum.
Code Block type SetTimeCommand = {type: 'setTime', time: Date}
Change a selected cameraZmianę aktualnie wyselekcjonowanej kamery.
Code Block type SetCameraCommand = {type: 'setCamera', origin: string}