[Red5] RV: How to execute some code (ServerSide) everytime a clientcreate a SharedObject??

Manuel R.G. info at vengava.com
Fri Nov 2 15:06:46 PDT 2007


You're right.

Depending on what you're doing maybe this API can help, since you can
register an ISharedObjectSecurity handler on the application itself not only
on SO's

http://dl.fancycode.com/red5/api/org/red5/server/api/so/ISharedObjectSecurity.html

http://www.joachim-bauch.de/tutorials/red5/HOWTO-Security.txt#shared-objects



2007/11/2, Juan Antonio Guzman Hidalgo < juanantonio.guzman at iavante.es>:
>
> 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??
>
>
>
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/red5_osflash.org/attachments/20071102/99300e49/attachment.html 


More information about the Red5 mailing list