The code is part of the connection object on the server.

Red5.getConnectionLocal().connect(newScope);

- Luke

On 9/8/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
> This looks like the code I've started with.
> The single trick I've missed is
> oldScope.disconnect(this);
> Does this go in the main app class (ApplicationAdapter). Iscope.disconnect
> needs a connection as parameter.
> Mike please send some feedback if this works for you.
>
> cosmin
>
> > Hi Mike,
> >
> > Here is the code for switching scopes on the connection object.
> > You can only be in one sub-scope at a time.
> >
> > /**
> >      * Connect to another scope on server with given parameters
> >      * @param newScope        New scope
> >      * @param params          Parameters to connect with
> >      * @return                true on success, false otherwise
> >      */
> >     public boolean connect(IScope newScope, Object[] params) {
> >         final Scope oldScope = scope;
> >         scope = (Scope) newScope;
> >         if (scope.connect(this, params)) {
> >             if (oldScope != null) {
> >                 oldScope.disconnect(this);
> >             }
> >             return true;
> >         } else {
> >             scope = oldScope;
> >             return false;
> >         }
> >     }
> >
> > If you are having issues please add a ticket with example to jira.
> >
> > Regards,
> > Luke
> >
> > On 9/8/07, Joachim Bauch <[EMAIL PROTECTED]> wrote:
> >>
> >> Hi Mike,
> >>
> >> Mike schrieb:
> >> > I just thought that I would repost this as there is no answer
> anywhere
> >> > in the mail list:
> >> >
> >> > On the server side, how do you take a connection and change the
> scope?
> >> > Can this even be done at all?
> >>
> >> as the code involving scope changes on the server was written by Luke
> >> and I haven't tried it yet, I don't know what it should do and if it
> >> works as expected. Given that there seem to be some issues, probably
> >> not ;)
> >>
> >> I can try to take a look when I get some time... In the meantime,
> please
> >> add a ticket to http://jira.red5.org and attach a little example of the
> >> code you are using (client + server) so I have something to play around
> >> with.
> >>
> >> Joachim
> >>
> >>
> >> _______________________________________________
> >> Red5 mailing list
> >> Red5@osflash.org
> >> http://osflash.org/mailman/listinfo/red5_osflash.org
> >>
> >
> >
> >
> > --
> > Luke Hubbard
> > codegent | coding for the people
> > http://www.codegent.com
> >
> > NMA Top 100 Interactive Agencies - Ones to watch!
> > http://www.codegent.com/top100/
> >
> > want to know more?
> > http://www.codegent.com/showreel/
> >
> > This e-mail may contain information which is privileged, confidential
> and
> > protected from disclosure. If you are not the intended recipient of this
> > e-mail, or any part of it, please delete this email and any attachments
> > immediately on receipt. You should not disclose the contents to any
> other
> > person or take copies. Any views expressed in this message are those of
> > the
> > individual sender, except where the sender specifically states them to
> be
> > the views of codegent limited.
> > _______________________________________________
> > Red5 mailing list
> > Red5@osflash.org
> > http://osflash.org/mailman/listinfo/red5_osflash.org
> >
>
>
> _______________________________________________
> Red5 mailing list
> Red5@osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>



-- 
Luke Hubbard
codegent | coding for the people
http://www.codegent.com

NMA Top 100 Interactive Agencies - Ones to watch!
http://www.codegent.com/top100/

want to know more?
http://www.codegent.com/showreel/

This e-mail may contain information which is privileged, confidential and
protected from disclosure. If you are not the intended recipient of this
e-mail, or any part of it, please delete this email and any attachments
immediately on receipt. You should not disclose the contents to any other
person or take copies. Any views expressed in this message are those of the
individual sender, except where the sender specifically states them to be
the views of codegent limited.
_______________________________________________
Red5 mailing list
Red5@osflash.org
http://osflash.org/mailman/listinfo/red5_osflash.org

Reply via email to