W
W
windf1n2019-04-26 08:16:06
Video broadcast
windf1n, 2019-04-26 08:16:06

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

4 answer(s)
R
Rsa97, 2019-04-26
@windf1n

Masking is useless. We open the developer tools in the browser and see what and where the site takes.
Raise your entire broadcast.

N
nrgian, 2019-04-26
@nrgian

Through your server only if you relay.
On the client - it is useless.

S
Safehouse, 2019-05-07
@Safehouse

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.

Q
QraKz, 2019-05-07
@QraKz

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 question

Ask a Question

731 491 924 answers to any question