Answer the question
In order to leave comments, you need to log in
How to block access to the camera to everyone except the site?
Hello. In general, the essence is this. I'm broadcasting the stream from the camera through the rtsp.me service. I'm making a pay-per-view cam site. Everything seems to be working. But the problem is that you can watch the cameras without paying. Those. take a link to rtsp.me from the site element code; it looks something like this: https://rtsp.me/embed/id. How to make the user have access to the camera only through my site. I'm thinking of somehow masking the link in the code or something else. What do you think?
Answer the question
In order to leave comments, you need to log in
Masking is useless. We open the developer tools in the browser and see what and where the site takes.
Raise your entire broadcast.
You can contact the technical support of the Line, they can make broadcasts that will work only on your site. But this service is paid.
1. rtsp.me has an API
https://github.com/infoqrakz/rtsp.me/blob/master/a...
you can create unique broadcasts for each user.
2. Rent a VPS in a data center. Install the demo version https://devline.ru/beta_version_linux/ .
Connect cameras. Install nginx + nginx.org/ru/docs/http/ngx_http_secure_link_module.html . Create your own player with https://github.com/video-dev/hls.js/ .
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question