Documentation for C-Werk 2.0.

Previous page General information about video component  Examples of commands Next page

The following types of commands are available:

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

  2. 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}
  3. Switch between the archive and live video.

    type SwitchMode = {type: 'live' | 'archive'}
  4. Start and stop the video playback from the archive.

    type PlaybackCommand = {type: 'play' | 'stop'}
  5. Go to a certain time in the archive.

    type SetTimeCommand = {type: 'setTime', time: Date}
  6. Focus on the selected camera.

    type SetCameraCommand = {type: 'setCamera', origin: string}
  • No labels