Hello.
As far as I know, .stream files contain rtsp-path to the video, then we can tell this file to wowza media server, for example (flowplayer):
clip: {
live: true,
url: '5.stream',
provider: 'rtmp',
},
plugins: {
rtmp: {
url: "/scripts/flowplayer/flowplayer.rtmp-3.2.13.swf",
netConnectionUrl: 'rtmp://host1/rtplive',
},
So complete path to the clip will be rtmp://host1/rtplive/5.stream
5.stream contains this:
rtsp://some_cam_path
So wowza reads content of the file and recieves stream described there. But what if we will tell wowza not just a file name from content directory, but complete http url to some destination which also contains just rtsp-path (just text), it could be even the same 5.stream file - this will give us great opportunity to completely hide real video source from user (security reason and requirement in my project). Particulary, such url will be a path to some php/jsp/what_ever page which will send back text rtsp-path after making some logic (user authorization/session vars/user cookies), for example it will be http://host1/get_cam_by_user_id.php:
<?php
if ($_SESSION['user_id'] == 1) {
echo "rtsp://cam1"
}
else {
echo "rtsp://cam0"
}
?>
flowplayer’s code will be:
clip: {
live: true,
url: '[B]http://host1/get_cam_by_user_id.php[/B]',
provider: 'rtmp',
},
plugins: {
rtmp: {
url: "/scripts/flowplayer/flowplayer.rtmp-3.2.13.swf",
netConnectionUrl: 'rtmp://host1/rtplive',
},
Is there any way to make wowza server work like I describe?
Thaks in advance.