Main features

The script allows to automate the receipt of a link to a video stream in HLS format.


Settings

User - the name of the user under which the sid will be requested

Password - user's password

Debug mode - debugging mode

API Request format:

https://server_ip:sdk_port/s/hls_api/get_video?channel=channel_guid&stream=main
  • server_ip - Server IP address
  • sdk_port - SDK port
  • channel - channel guid
  • stream - type of requested stream

The channel and stream parameters are required for this method, an additional parameter:

  • hw - a logical parameter that includes requesting an archive from the device:
    • true - the archive from the device (hardware built-in) will be in the stream;
    • false - the TRASSIR archive will be in the stream.

General information about receiving a video stream via the SDK - https://www.dssl.ru/files/trassir/manual/ru/sdk-examples-video.html


API response in JSON format:

{
    "token": "EHrWQ7UW",
    "hls": "https://192.168.0.10:8080/hls/EHrWQ7UW/master.m3u8",
    "sid": "YLsPdG24"
}

The received sid and token can be used in the future to work with the archive. - https://www.dssl.ru/files/trassir/manual/ru/sdk-examples-archive.html