How to hide RTSP URL from clients browser

Intergon

New Member
It is possible to pass rtsp URL from my server-side php script so this URL will be hidden from clients browser? I need something like this:
- Client (Viewer) select stream number from dropdown select menu, then I am calling some ajax function to my php to determine RTSP URL and then I am returning video stream from wcs5?
 

Max

Administrator
Staff member
There are two ways to hide real RTSP stream name
1) Re-publishing
https://docs.flashphoner.com/display/WCS52EN/To+another+WCS+server+via+WebRTC
You can re-publish RTSP stream to localhost with a new name, i.e. stream1.
2) REST Hooks
You can pass name stream1 in session.createStream({name:"stream1"}).play(); and then overwrite this name to real RTSP URL using REST Hook /playStream
See REST Hook docs for more information
https://docs.flashphoner.com/display/WCS52EN/REST+Hooks
If you go with REST Hooks, you have to setup and configure at least two hooks
http://yourdomain/rest-hook/connect
http://yourdomain/rest-hook/playStream
 
Top