[Red5] RV: How to execute some code (ServerSide) everytime a clientcreate a SharedObject??
Juan Antonio Guzman Hidalgo
juanantonio.guzman at iavante.es
Fri Nov 2 10:34:10 PDT 2007
Hi Manuel.
I have been workin on this and I'm still in the same point.
I have implemented the ISharedObjectListener and now I have, my implementation. Like this:
---------------------------------------------------------------------
package org.red5.server.webapp.oflaDemo;
import java.util.List;
import java.util.Map;
import org.red5.server.api.IAttributeStore;
import org.red5.server.api.so.ISharedObject;
import org.red5.server.api.so.ISharedObjectBase;
import org.red5.server.api.so.ISharedObjectListener;
public class MySharedObjectListener implements ISharedObjectListener {
public void onSharedObjectUpdate(ISharedObject so,
String key, Object value) {
public void onSharedObjectDelete(ISharedObject so, String key) {
[...]
---------------------------------------------------------------
The next step in the MigrationGuide is :
[...]
Additionally, the listener must get registered at the shared object:
ISharedObject so = getSharedObject(scope, "sampleSO");
so.addSharedObjectListener(new SampleSharedObjectListener())
[...]
But I have now the same problem as the beginning
How could I excecute the register code every time a client create a SharedObject??
I don't know an alternative way than the straigth one... jejeje
editing the src/org/red5/server/so/SharedObject.java file and registering the listener in the constructor of SharedObjects....
So.... now the problem is quite similar:
>From my webapp aplicaction... How can I register every SharedObjects the Clients have created??
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: ATT362509.txt
Url: http://osflash.org/pipermail/red5_osflash.org/attachments/20071102/f489d5ec/attachment.txt
More information about the Red5
mailing list