Hi!
I have red how to program new applications guide from jwamicha and the
Migration Guide by Bauch but I still have problems porting a basic FMS
app to Red5.

I have this client code:

function initUsers() {
        users_so = SharedObject.getRemote("users", nc.uri);
        users_so.onSync = function(infoList) {
                trace("onSync called");
                for (var i in infoList) {
                        var info = infoList[i];
                        trace("info.code: "+info.code);
                        switch (info.code) {
                        case "delete" :
                                var id = info.name;
                                var mc = _root[id];
                                mc.ns.close();
                                mc.nameInput.text = "";
                                mc.video.clear();
                                break;
                        }
                }
        };
        users_so.connect(nc);
}

initusers() is called succesfully from:

nc.setID = function(id) {
        myID = id;
        statusInput.text = "Online. Your client's ID is: "+myID;
        ns = new NetStream(nc);
        ns.attachAudio(Microphone.get());
        var cam = Camera.get();
        ns.attachVideo(cam);
        ns.publish(id);
        _root[id].video.attachVideo(cam);
        initUsers(); // <-----------------------
};

But "delete" onSync is never called and I need it to clear the
videomovieclip. I have some other basic problems but I would like to
now first how onSync runs on Red5.

_______________________________________________
Red5 mailing list
[email protected]
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to