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?
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'. {
trace( "FME connects: " +(newClient.agent.indexOf("FME/1.0") == 0) );
}
Maybe this will help someone.


referrer for FME connections