[Red5] RV: How to execute some code (ServerSide) everytime a clientcreate a SharedObject??
JuanGuzman
juanantonio.guzman at iavante.es
Sun Nov 4 23:57:08 PST 2007
Hi Manuel. Thankyou very much. I have implemented ISharedObjectSecurity
Interface and it's work!!.
I use the method isConnectionAllowed to register the SharedObject. This
method run after the method isCreationAllowed return "True". And is perferct
for my purposes. Every sharedobject that conects to my aplication is
registered now.
Thanyou again.
juanantonio.guzman at iavante.es
Manuel R.G. wrote:
>
> 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
>>
>>
>>
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
--
View this message in context: http://www.nabble.com/RV%3A-How-to-execute-some-code-%28ServerSide%29-everytime-a-clientcreate-a-SharedObject---tf4738994.html#a13582553
Sent from the Red5 - English mailing list archive at Nabble.com.
More information about the Red5
mailing list