Please Edmond,
Read Joachim's tutorial about creating sharedobjects.

http://www.joachim-bauch.de/tutorials/red5/MigrationGuide.txt#sharedobjects

The point is in creation SharedObject in roomStart.

Tom


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf
Of Edmond Lee
Sent: Monday, May 29, 2006 7:42 AM
To: [email protected]
Subject: [Red5] About ShareObjectListener,how can I build a ShareObject
listener on server side

hello everyone:
i have use the Red5 with the trunk version (0.5 dev) to my Application ,and
i want to change the SharedObject with the JAVA at the ServerSide when the 
SharedObject is changed by the Client ,i means that ,if the Client changed
the SharedObject and the ServerSide how to know the Event,i have my code is:


import org.red5.server.adapter.ApplicationAdapter;
import org.red5.server.api.so.ISharedObject;
import org.red5.server.api.so.ISharedObjectListener;

public class Application extends ApplicationAdapter implements
ISharedObjectListener{
        public void onSharedObjectConnect(ISharedObject so){
                log.info("----------"+so.toString() +"
onSharedObjectConnect");
        }
        public void onSharedObjectDisconnect(ISharedObject so){
                log.info("----------"+so.toString() +"
onSharedObjectDisconnect");
        }
        public void onSharedObjectUpdate(ISharedObject so, String key,
Object value){
                log.info("----------"+so.toString() +" key:"+key+" value:"+
value+" onSharedObjectUpdate");
        }
        public void onSharedObjectUpdate(ISharedObject so, IAttributeStore
values){
                log.info("----------"+so.toString()+" IAttributeStore
values"+ values +" onSharedObjectUpdate");
        }
        public void onSharedObjectUpdate(ISharedObject so, Map<String,
Object> values){
                log.info("----------"+so.toString() +" Map<String,
Object>values"+ values+" onSharedObjectUpdate");
        }
        public void onSharedObjectDelete(ISharedObject so, String key){
                log.info("----------"+so.toString() +" key:"+key+"
onSharedObjectDelete");
        }
        public void onSharedObjectClear(ISharedObject so){
                log.info("----------"+so.toString() +"
onSharedObjectClear");
        }
        public void onSharedObjectSend(ISharedObject so, String method, List
params){
                log.info("----------"+so.toString()+" method:"+method + "
params:"+params +" onSharedObjectSend");
        }
}

but it dosen't work ,and what shoud i do for my idea , I hope someone can
help me!!!!!thanks



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


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

Reply via email to