protect video streaming to client

kelvin

Member
Hi,

how can get protect using Websocket video stream to client.
is have any secure token I can insert ?

thanks.
 

Max

Administrator
Staff member
You can pass a token or password:
Code:
Flashphoner.createSession({custom:{"token","123"}});
WCS will send REST/HTTP/JSON request to your web server
Code:
http://yourserver.com/connect
{
custom:{"token","123"}
}
You can authenticate this connection sending 200 OK response.
Or reject connection sending 403 Forbidden response.

Please read more these two threads:
Help getting started with secure IP Cam streaming
Stream Restriction by authorize domains or ip addresses?

Here you can find REST hooks documentation:
https://flashphoner.com/docs/wcs5/wcs_docs/html/en/wcs-rest-methods
 

kelvin

Member
Flashphoner.createSession({custom:{"token","123"}});

on WCS5 config file where i can set the setting for the token/password?
 

Max

Administrator
Staff member
on WCS5 config file where i can set the setting for the token/password?
WCS does not keep token or password.
As you can see from my previous message, WCS will send request to your server http://yourserver.com/connect and you have to match token and password on your web server.
Please read by links above. It is how authentication works.
 

kelvin

Member
i saw the token_keys.properties is that on there can setting the token ?

I been try for
streamname = token

but is not working?
 

Max

Administrator
Staff member
i saw the token_keys.properties is that on there can setting the token ?
These settings are out of date and will be removed.
Please use REST hooks as described above.
 
Top