cam is frozen after I subscribe with AVCastManager
Posted: 29 May 2011, 02:30
I am using AVCastManager to subscribe to a streaming cam. The cam loads correctly using the below code, but only the first frame, then it just sits there. I'm guessing that it is being published correctly on the other end because the if I logout of Smartfox room and back in, subscribe to cam again, the frozen frame is updated to the current frame. here is my code for displaying the stream ("cam" refers to a video object contained in the "room_" clip) :
Code: Select all
for each (var liveCast:LiveCast in avCastMan.getAvailableCasts())
{
var stream:NetStream = avCastMan.subscribeLiveCast(liveCast.id);
var myRoom = getChildByName("room_"+sfsRoom_txt.text);
var cam = myRoom.getChildByName("cam");
cam.attachNetStream(stream);
}