Add 2 parameters to the request in order to get pre-authorized and signed links to video streams (both live and archive video):
Login and password are to be specified in order to receive token.
Sample:
http://127.0.0.1:8085/web2/secure/video/action.do?version=4.10.0.0&sessionid=FC126734&video_in=CAM:1&enable_token_auth=1&valid_token_hours=1&login=1&password=1
Response:
{ "path" : "action.do?hmac=GAqUa429sjY2E9jCTpuYeaMqReW3Y7HI" }
To get the video by this token, use a request like this:
http://example.com:[port]/action.do?hmac=GAqUa429sjY2E9jCTpuYeaMqReW3Y7HI
This link becomes disabled after the specified period of time. TheĀ [port] is the port number specified for HTTP Server connection on the Web server object settings panel (see Setting the parameters of connecting Clients to the Web-server).