Documentation for C-Werk 2.0.

Previous page API for video component operation  User Guide 2 Next page

Play live video:

sendMessage({ type: 'init', mode: 'live', origin: 'SERVER1/DeviceIpint.1/SourceEndpoint.video:0:0'});

Go to the archive mode:

sendMessage({type: 'archive'})

Go to the live mode:

sendMessage({type: 'live'})

Start the playback of archive video:

sendMessage({type: 'play'})

Stop the video:

sendMessage({type: 'stop'})

Go to a certain time in archive mode:

sendMessage({type: 'setTime', time: new Date("2019-07-25 09:00:00")});

Attention!

The date should be in ISO 8601 format.

  • No labels