View Single Post
  #2 (permalink)  
Old 08-22-2007, 04:32 AM
Karpagarajan Karpagarajan is offline
D-Web Analyst
 
Join Date: Mar 2007
Posts: 299
Karpagarajan is on a distinguished road
Default Re: Adobe Flex Tips & Tricks

Hi guys,

Here is the tips for using Flash Media Server in flex. While trying to connect with the flex to FMS, I have faced the problem of connecting to the FMS server. Here I have given the solution for that. I just modified the connectivity string in flex action script.

see the below example...
nc = new NetConnection();
nc.objectEncoding = ObjectEncoding.AMF0;
//Note that the above statement to intimate the FMS to use action script Message format ver 1.0
//Because the FMS will not support for AMF2 or AMF3
nc.addEventListener( NetStatusEvent.NET_STATUS, netStatusHandler );
nc.connect( "rtmp:/flex_videoconference:1935/testvideo");
Please note the above connection statement, you need to specify the FMS server name and the FMS port number(1935), after that you need to give the FMS server application name where the shared objects will be used.

Hope it will be useful for your video streaming flex application
__________________
Karpagarajan. R
Necessity is the mother of invention
Reply With Quote