Issue with allowedHTMLdomains.txt in Live App
Hi,
My Purpose is to record live streams on server side and play recorded files later.
What i have done is -
1. Copied All files of applications/live in some safe location.
2. Copied all files from samples/applications/live to applications/live folder. (Deleted main.far from live folder)
3. Restricted SWF and HTML to mydomain in these files - allowedHTMLdomains.txt and allowedSWFdomains.txt
4. In main.asc i added these line in the end
var mystream;
var intervalID;
application.onConnect = function(clientobj)
{
return true;
}
application.onPublish = function(clientObj,streamObj){
trace("In app pub:");
mystream = Stream.get(streamObj.name);
mystream.onStatus = function(info)
{
trace("mystream onstatus:"+ info.code);
}
mystream.record();
trace("Got it via FMLE = " + streamObj.name);
}
application.onUnpublish = function(clientObj,streamObj){
mystream.record(false);
}
5. Then i restarted FMS and tried streaming using FLash Media Encoder. I was able to live stream and then i stopped it.
6. A FLV File was recorded in application/live folder with the stream name that i used in encoder.
Now the issues i have, i am able to view live video on my domain as well as some other domain, that means allowedHTMLdomains.txt and allowedSWFdomains.txt did not worked. Another issue is that i am not able to view recorded video after i stopped encoder but i was able see live video before stopping. i am using jwplayer to view the video and using flashvars streamer(rtmp://xx.xx.xx.xxx/live) and file(abc) to view the live and recorded video.
