I'm trying to create game rooms where people are added to the conference automatically as soon as they join. The problem I'm having is that events for onLiveCastPublished and onLiveCastUnpublished are not being fired. My assumption is because I'm running the avCastMan.getAvailableCasts() method before Redbox is done initializing live casts.
this function runs as soon as the user joins a room.
Code: Select all
public function joinConference():void
{
// Retrieve live casts already available
for each (var liveCast:LiveCast in avCastMan.getAvailableCasts())
{
// Subscribe live cast
addLiveCast(liveCast)
}
}
Or am I missing something here?