some times dont work and send me this message
Red5 connection not available [publishLiveCast method]
any idea?
Red5 connection not available [publishLiveCast method]
Yes it is running
Yes it is running... how can i catch this error?
Red5 connection not available [subscribeLiveCast method]
like as
try{
var stream:NetStream = avCastMan.subscribeLiveCast(liveCast.id);
}catch(...){
}
or something like that
Red5 connection not available [subscribeLiveCast method]
like as
try{
var stream:NetStream = avCastMan.subscribeLiveCast(liveCast.id);
}catch(...){
}
or something like that
Maybe you're trying to subscribe for live cast before you're connected to Red 5.
When you create new AVCastManager instance it automatically calls initAVConnection(). So you have to listen for RedBoxCastEvent.onAVConnectionInited or RedBoxCastEvent.onAVConnectionError(the constructor returns before a connection with Red5 is established - the connection is established asynchronously). You can't do any action that requires connection with Red5 before onAVConnectionInited is dispatched. Of course if onAVConnectionError instead this means that error occurred while trying to connect to Red5.
The exception what is thrown when connection with Red 5 is not available( because currently is not connected, currently is connecting,connection attempt failed was connected and now it's not connected for some reason(network error for example)) is com.smartfoxserver.redbox.exceptions.NoAVConnectionException so you can catch it if you want.
p.s. The same apply for all managers - AVChatManager, AVCastManager and AVClipManager - the connection with Red 5 is established asynchronously - the constructor calls the initAVConnection method of the class so you have to listen for the corresponding onAVConnectionInited or onAVConnectionError. Also please note that onAVConnectionError is dispatched not only during the connection attempt but also for all other connection error that may occur during the communication with the Red 5 server.
When you create new AVCastManager instance it automatically calls initAVConnection(). So you have to listen for RedBoxCastEvent.onAVConnectionInited or RedBoxCastEvent.onAVConnectionError(the constructor returns before a connection with Red5 is established - the connection is established asynchronously). You can't do any action that requires connection with Red5 before onAVConnectionInited is dispatched. Of course if onAVConnectionError instead this means that error occurred while trying to connect to Red5.
The exception what is thrown when connection with Red 5 is not available( because currently is not connected, currently is connecting,connection attempt failed was connected and now it's not connected for some reason(network error for example)) is com.smartfoxserver.redbox.exceptions.NoAVConnectionException so you can catch it if you want.
p.s. The same apply for all managers - AVChatManager, AVCastManager and AVClipManager - the connection with Red 5 is established asynchronously - the constructor calls the initAVConnection method of the class so you have to listen for the corresponding onAVConnectionInited or onAVConnectionError. Also please note that onAVConnectionError is dispatched not only during the connection attempt but also for all other connection error that may occur during the communication with the Red 5 server.
Who is online
Users browsing this forum: No registered users and 30 guests