salma_salma wrote: Thanks Janaki but how can I add a new application? I tried to do it using Flash Media Administration Console but it doesn't work |
Hi Salma,
To add an application to FMS follow the below steps
1. Create a folder "my_app" under "$InstallRoot\applications" directory.
2. For simple server side code... add "main.asc" file inside "$InstallRoot\applications\my_app" directory which has the content like
application.onConnect = function(clientObj){
trace('onConnect function");
return true;
}
3. To add streams to the application, creates 'streams' folder inside "$InstallRoot\applications\my_app" directory, within that create '_definst_' folder and then place your FMS supported streams within the directory. So your streams for the 'my_app' application will be at "$InstallRoot\applications\my_app\streams\_definst_\mystream.flv".
You can connect to this application using the url "rtmp://your_server_name/my_app". To play the stream mystream.flv using video player, use the url "rtmp://your_server_name/my_app/mystream.flv".
Regards,
Janaki L