List Info

Thread: SharedObjectListener, anyone succesfully implemented?




SharedObjectListener, anyone succesfully implemented?
user name
2006-06-21 17:27:40
Hi Joachim,

I've tried all possibilities with no luck, also your code
on the migration
site:


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

public class SampleApplication extends ApplicationAdapter {

  public boolean roomStart(IScope room) {
      if (!super.roomStart(room))
          return false;
      
      createSharedObject(room, "sampleSO",
true);
      ISharedObject so = getSharedObject(room,
"sampleSO");
    
      // Now you could do something with the shared
object...
    
      return true;            
  }
  
}


Eclipse complains about the method
"createSharedObject": not applicable for
the arguments (IScope, String, boolean)......
I really don't have a clue... (maybe I'm too novice)



> -----Oorspronkelijk bericht-----
> Van: Red5-bouncesosflash.org [mailto:Red5-bouncesosflash.org] Namens
> Joachim Bauch
> Verzonden: woensdag 21 juni 2006 17:53
> Aan: Red5osflash.org
> Onderwerp: Re: [Red5] SharedObjectListener, anyone
succesfully
> implemented?
> 
> Hi Ruben,
> 
> Ruben Waitz / Amtex wrote:
> > Based on Joachim's tutorial
> > (http://www.joachim-
>
bauch.de/tutorials/red5/MigrationGuide.txt#serverside-ch
> > ange-listeners) I've tried to implement a
SharedObjectListener.
> >
> > I'am trying the same as Edmond did on 29/05/06
but without any success.
> >
> > I think it's a small issue somewhere. Any ideas?
> 
> The problem surely is related to the fact that you
register the listener
> in
> the SO of the application scope and not a room of it. 
Use the method
> "roomStart" for this.
> 
> Joachim



_______________________________________________
Red5 mailing list
Red5osflash.org

http://osflash.org/mailman/listinfo/red5_osflash.org
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )