FlashComGuru Home Imediasee Influxis Uvault Akamai
                                                                                       Forum Index | Active Topics | Register
                                                                                                          List Overview | List Archives
                                                                                                                           About this site | Advertise
 

home

Adobe AIR (8)
Applications (32)
Books & Training (9)
Collaboration (8)
Components (6)
Events (49)
Flash Player (8)
Flex (28)
FMS (67)
General (107)
Hosting (5)
Jobs (13)
Off topic (31)
Press Releases (7)
Site Check (7)
Tools (39)
Videos & Players (50)

Flash On the Beach

Alltop, all the cool kids (and me)

 
If you are using Flash Media Encoder to stream the live video portion of your application but you also need to accpt 'normal' user connections in the same app then this code snippet may be helpful to you.
This code checks the Client.agent property of a connecting client in serverside ActionScript (typically in your main.asc file) and determines if FME 1.0 connects. You can base the rest of your connection logic around that. Likewise if it's a normal user connecting you may run other logic. Take for example a Peoplelist: you wouldn't want FME to show up in there as an undefined user would you?
application.onConnect = function(newClient)
{
   trace( "FME connects: " +(newClient.agent.indexOf("FME/1.0") == 0) );
}
This will trace either 'FME connects: true' or 'FME connects: false'.

Maybe this will help someone.

Comments
[Add Comment]
yup, the referrer for FMS connections check il not return anything useful!
# Posted By Naicu Octavian | 3/30/07 12:00 AM
>referrer for FMS connections
referrer for FME connections
# Posted By Naicu Octavian | 3/30/07 12:05 AM