How change room without reconnection?

View: New views
11 Messages — Rating Filter:   Alert me  

How change room without reconnection?

by terbooter :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

If I connect to red5 like this:
"rtmp://127.0.0.1:1935/myApp/myRoom1"
I join myRoom1 and all works fine.

How can I change my room to another?

Re: How change room without reconnection?

by Dominick Accattato-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

http://gregoire.org/2009/04/07/on-demand-room-scope-creation/


On Mon, Oct 12, 2009 at 6:22 AM, terbooter <dmitry.zinovyev@...> wrote:

If I connect to red5 like this:
"rtmp://127.0.0.1:1935/myApp/myRoom1"
I join myRoom1 and all works fine.

How can I change my room to another?
--
View this message in context: http://www.nabble.com/How-change-room-without-reconnection--tp25853425p25853425.html
Sent from the Red5 - English mailing list archive at Nabble.com.


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

Re: How change room without reconnection?

by terbooter :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks for your reply.

But i still have problem with understanding scopes.

I want to do following:
Client connect to application scope.
After that client click button "room1" and make corresponding call to server application.
Now he join room1 scope.
Then client click another button "room2".
And he remove from room1 scope and join room2 scope.



Dominick Accattato-2 wrote:
http://gregoire.org/2009/04/07/on-demand-room-scope-creation/



On Mon, Oct 12, 2009 at 6:22 AM, terbooter <dmitry.zinovyev@gmail.com>wrote:

>
> If I connect to red5 like this:
> "rtmp://127.0.0.1:1935/myApp/myRoom1"
> I join myRoom1 and all works fine.
>
> How can I change my room to another?
> --
> View this message in context:
> http://www.nabble.com/How-change-room-without-reconnection--tp25853425p25853425.html
> Sent from the Red5 - English mailing list archive at Nabble.com.
>
>
> _______________________________________________
> 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

Re: How change room without reconnection?

by Thomas-128 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Taking Paul Gregoire's example of the crypted room id:
rtmp://server_ip/myapp/45sd2q45d6

Is it possible to destroy the fake room that gets created upon
creation? i.e: the room with name 45sd2q45d6. Where would that happen?


Regards,

--
VOD & visioconference - http://www.digiprof.tv

_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

Re: How change room without reconnection?

by Thomas-128 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ok I'm facing a little problem here. I have 2 clients, user1 connects to:
rtmp://.../visioconference/3_s4s5f8s6

And user2 connects to:
rtmp://.../visioconference/3_shq5d8

In "3_blabla", "3" is a room number, and blabla is an authentification token.

Using Paul Gregoire's trick, I can successfully have user1 create and
join room "3_s4s5f8s6", and create+join room "3", as well as user 2
who will create and join room "3_shq5d8", and join room "3".

My problem is that the current room in which both of them are is their
initial room, i.e:
- user1 is in "3_s4s5f8s6"
- user2 is in "3_shq5d8"

How can I force room "3" to be their current rooms so that they can
view each other's streams?


Best regards,


--
VOD & visioconference - http://www.digiprof.tv

_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

Re: How change room without reconnection?

by Thomas-128 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

In the blog comments at Paul Gregoire's I see a Filippo who ran
exactly in the same issue as me, so I'm not the only one. Anyone has
his contact info?

--
VOD & visioconference - http://www.digiprof.tv

_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

Re: How change room without reconnection?

by Dominick Accattato-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thomas, you are correct.  Even though a client can be connected to other scopes on the server, they do not have the ability to use that scopes remote SharedObjects and Streams.  In addition, calls made from the client would always be mapped to the initial scope that was connected to. This is definitely something we'd like to look into and I'll just confirm that you're not the only one.  Unfortunately, for the time being, you can only write code that adhere's to the rules I just gave which means that NetConnection calls would be the only conduit for communication between the client and server.

On Sat, Nov 7, 2009 at 6:44 AM, Thomas <iamkenzo@...> wrote:
In the blog comments at Paul Gregoire's I see a Filippo who ran
exactly in the same issue as me, so I'm not the only one. Anyone has
his contact info?

--
VOD & visioconference - http://www.digiprof.tv

_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

Re: How change room without reconnection?

by Thomas-128 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Thanks for the confirmation Dominick, I can now move on to something else.

Anyway I have another solution for my problem: I can simply use Red5's
ability to support infinite sub scopes, so instead of /visio/3_sd5s5s,
I can connect to: /visio/3/sd5s5s, and then fetch the authentication
token from the 'virtual' subscope name. Now the client is connected to
room with name "3", it all works as expected, and other clients can
connect to the same room using this same logic :-)

Cheers,

--
VOD & visioconference - http://www.digiprof.tv

_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

Re: How change room without reconnection?

by Dominick Accattato-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Right, using separate NetConnections has always been the conventional way of doing this, but requires more commication between the client and server to set this up.  Not such a bad thing,

On Sat, Nov 7, 2009 at 8:55 AM, Thomas <iamkenzo@...> wrote:
Thanks for the confirmation Dominick, I can now move on to something else.

Anyway I have another solution for my problem: I can simply use Red5's
ability to support infinite sub scopes, so instead of /visio/3_sd5s5s,
I can connect to: /visio/3/sd5s5s, and then fetch the authentication
token from the 'virtual' subscope name. Now the client is connected to
room with name "3", it all works as expected, and other clients can
connect to the same room using this same logic :-)

Cheers,

--
VOD & visioconference - http://www.digiprof.tv

_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

Re: How change room without reconnection?

by Walter Tak :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Could you please at least include the part of the message you are replying
to ? Your messages are pretty hard to understand without parts of the
original poster.

Also if you refer to a post or external website please do include that link
so other people can track back what you were trying to achieve. Would be
nice.

W.

----- Original Message -----
From: "Thomas" <iamkenzo@...>
To: <red5@...>
Sent: Saturday, 07 November 2009 14:55
Subject: Re: [Red5] How change room without reconnection?


> Thanks for the confirmation Dominick, I can now move on to something else.
>
> Anyway I have another solution for my problem: I can simply use Red5's
> ability to support infinite sub scopes, so instead of /visio/3_sd5s5s,
> I can connect to: /visio/3/sd5s5s, and then fetch the authentication
> token from the 'virtual' subscope name. Now the client is connected to
> room with name "3", it all works as expected, and other clients can
> connect to the same room using this same logic :-)
>
> Cheers,
>
> --
> VOD & visioconference - http://www.digiprof.tv
>
> _______________________________________________
> Red5 mailing list
> Red5@...
> http://osflash.org/mailman/listinfo/red5_osflash.org
>


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

Re: How change room without reconnection?

by Thomas-128 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Sat, Nov 7, 2009 at 3:07 PM, Walter Tak <walter@...> wrote:
> Could you please at least include the part of the message you are replying
> to ? Your messages are pretty hard to understand without parts of the
> original poster.
No problem following the discussion using nabble or gmail

Here is the link you might be wondering about:
http://gregoire.org/2009/04/07/on-demand-room-scope-creation/
--
VOD & visioconference - http://www.digiprof.tv

_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org