The script allows to automate the receipt of a link to a video stream in HLS format.
User - the name of the user under which the sid will be requested
Password - user's password
Debug mode - debugging mode
https://server_ip:sdk_port/s/hls_api/get_video?channel=channel_guid&stream=main
The channel and stream parameters are required for this method, an additional parameter:
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