Versions Compared

Key

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

...

  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 it.

    Code Block
    type Options = {archivePane?: boolean}

    The origin object corresponds to the VIDEOSOURCEID identifier (see Get list of video sources (cameras)cameras and information about them).

  2. Switch between archive and live mode.

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


  3. Play and stop the video in archive mode.

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


  4. Go to a certain time in archive mode.

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


  5. Change a selected camera.

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