When I connect to the Red5 server using the AVCastManager class, I don't get the event RedBoxConnectionEvent.AV_CONNECTION_INITIALIZED. I subscribed to the events like this :
Code: Select all
AVCManager = new AVCastManager(smartFox, SERVER_IP+":"+REDBOX_PORT);
AVCManager.addEventListener(RedBoxConnectionEvent.AV_CONNECTION_INITIALIZED, onAVConnectionInited);
AVCManager.addEventListener(RedBoxConnectionEvent.AV_CONNECTION_ERROR, onAVConnectionError);
AVCManager.addEventListener(RedBoxCastEvent.LIVE_CAST_PUBLISHED, onLiveCastPublished);
I don't get any RedBoxConnectionEvent events but I get the LIVE_CAST_PUBLISHED event (I can receive LiveCast).
Furthermore, the attribute isConnected of AVCastManager is always at false. So if I do something like this :
Code: Select all
if (AVCManager.isConnected)
{
for each (var liveCast:LiveCast in AVCManager.getAvailableCasts())
{
AVCManager.subscribeLiveCast(liveCast.id);
}
}
I don't get any LiveCast. But if I remove the isConnected test, I get the LiveCast.