Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Następujące typy komend są dostępne:

  1. Wybór kamery oraz jej trybu

The following types of commands are available:

  1. 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)).

  2. Switch between archive and live modePrzełączanie między trybem archiwum, a wideo na żywo.

    Code Block
    type SwitchMode = {type: 'live' | 'archive'}


  3. Play and stop the video in archive modeOdtwarzanie i zatrzymywanie wideo w trybie archiwum.

    Code Block
    type PlaybackCommand = {type: 'play' | 'stop'}


  4. Go to a certain time in archive modePrzechodzenie do określonego czasu w trybie archiwum.

    Code Block
    type SetTimeCommand = {type: 'setTime', time: Date}


  5. Change a selected cameraZmianę aktualnie wyselekcjonowanej kamery.

    Code Block
    type SetCameraCommand = {type: 'setCamera', origin: string}