getAvailableCasts() always returns 0 length array
Posted: 01 Jun 2011, 20:00
I am not sure what i am doing wrong. But getAvailableCasts() function always returns array with 0 length.
Lapo please comment
Piece of my code :
private function onLiveCastPublished(ev:RedBoxCastEvent):void
{
var liveCast:LiveCast = ev.params.liveCast
// Subscribe live cast
var stream:NetStream = avCastMan.subscribeLiveCast(liveCast.id);
...... //Some other code
}
private function onAVCastConnectionInited(ev:RedBoxCastEvent):void {
/*Listen for live broadcasts*/
var castsArray:Array = avCastMan.getAvailableCasts();
trace("LENGTH :", castsArray.length); //ALWAYS 0
.... //Some other code
}
public function publishLiveCast():void
{
try{
avCastMan.publishLiveCast(true, true);
}
catch(e:NoAVConnectionException)
{
/*Show Error Popup to the user*/
dispatchEvent(new Event("RedBoxConnectionError"));
}
}
Lapo please comment
Piece of my code :
private function onLiveCastPublished(ev:RedBoxCastEvent):void
{
var liveCast:LiveCast = ev.params.liveCast
// Subscribe live cast
var stream:NetStream = avCastMan.subscribeLiveCast(liveCast.id);
...... //Some other code
}
private function onAVCastConnectionInited(ev:RedBoxCastEvent):void {
/*Listen for live broadcasts*/
var castsArray:Array = avCastMan.getAvailableCasts();
trace("LENGTH :", castsArray.length); //ALWAYS 0
.... //Some other code
}
public function publishLiveCast():void
{
try{
avCastMan.publishLiveCast(true, true);
}
catch(e:NoAVConnectionException)
{
/*Show Error Popup to the user*/
dispatchEvent(new Event("RedBoxConnectionError"));
}
}