RedBox not shared all videos
Posted: 30 Oct 2010, 21:52
Hi,
I'm trying use RedBox in my applications but I'm having many errors. The main of than it's my VideoContainer it's not loading videos from the others users.
Each user has 1 video (it's 8 on total). They can see the others webcans, but when called attachNetStream in my Video() reference, it's doesn't appears nothing.
Someone can help me ?
Im my flash tracer, all instances it's ok. And not dispatch error only not show video
Ohhh, one detail....In MY Computer, ALL works. Only in my...
The main code is:
Very thanks!
I'm trying use RedBox in my applications but I'm having many errors. The main of than it's my VideoContainer it's not loading videos from the others users.
Each user has 1 video (it's 8 on total). They can see the others webcans, but when called attachNetStream in my Video() reference, it's doesn't appears nothing.
Someone can help me ?
Im my flash tracer, all instances it's ok. And not dispatch error only not show video
Ohhh, one detail....In MY Computer, ALL works. Only in my...
The main code is:
Code: Select all
private function _join():void
{
for each(var liveCast:LiveCast in _avCastControl.getAvailableCasts())
{
_addLiveCast(liveCast);
}
var myStream:NetStream = _avCastControl.publishLiveCast();
if (myStream != null)
{
_video.attachCamera(Camera.getCamera(_doMacFix()));
}
}
private function _addLiveCast(liveCast:LiveCast):void
{
var stream:NetStream = _avCastControl.subscribeLiveCast(liveCast.id);
if (stream != null)
{
var player:PlayerGame = getPlayerById(liveCast.userId);
player.attachStream(stream);
}
}
// In Player.as:
public function attachStream(stream:NetStream):void
{
_video.attachNetStream(stream);
}
Very thanks!