salur.webdev
New Member
1. How can I make a broadcast one to one?
2. How can I protect the server to allow webrtc stream only from my VPS (ip)
2. How can I protect the server to allow webrtc stream only from my VPS (ip)
If you want to broadcast a stream to only one subscriber, you can:1. How can I make a broadcast one to one?
You can allow (or deny) streaming by domain using REST hooks as described here (with full backend script source code).2. How can I protect the server to allow webrtc stream only from my VPS (ip)
When you create a session and connect to WCS, it sends REST hook /connect to the backend (by default it is embedded EchoApp).For example, using js executes Flashphoner.createSession ({urlServer: 'wss: //wcs1.my-domain.com: 8443'}) i.e. create stream, at this point the WCS server sends me a response to my webhook?
You should implement /playStream REST hook. Then, your backend server can count /playStream requests for certain stream by its name.Is it possible to check how many people are currently watching the broadcast? I would like to do an online counter.