|
Indentify user session
|
|
02-02-2011, 03:59 AM
Post: #1
|
|||
|
|||
|
Indentify user session
I have identified this piece of code where the netstream connect users. but i need to understand how peerId is associated with user id in the user session objects in red5?
I want to record user stream. Please suggest. Thanks Pavan |
|||
|
02-03-2011, 03:22 AM
Post: #2
|
|||
|
|||
|
RE: Indentify user session
The userId in the the user session is a 64 chars string randomly generated for the current user (to match the p2p id’s when used with Cirrus).
When connected to a peer, the peerId is stored in the chats table – (userId, peerId) form a unique key. I chatroulette
|
|||
|
02-03-2011, 03:38 AM
(This post was last modified: 02-03-2011 03:42 AM by pavanshinde.)
Post: #3
|
|||
|
|||
|
RE: Indentify user session
I understand the userids are randomly generated and the pair of user ids that have chat, are stored in the chat table. How can I use those ids and link then with ids from netstream object? I am trying to understand how to use users ids to get access to the red5 stream from the user x?
I need to record stream from user x and y both. when i connect i see two cameras user x and y i need to have access to those two cams, not just my own cam. Please help. Thanks |
|||
|
02-04-2011, 12:41 AM
Post: #4
|
|||
|
|||
|
RE: Indentify user session
Moderator please help
|
|||
|
02-04-2011, 03:48 AM
(This post was last modified: 02-04-2011 03:48 AM by RVC Video Chat.)
Post: #5
|
|||
|
|||
|
RE: Indentify user session
Check the "Connect me to user ID" method in the source code ... that connects you to a given user ID if exists/online.
I chatroulette
|
|||
|
02-04-2011, 05:45 AM
Post: #6
|
|||
|
|||
| RE: Indentify user session | |||
|
02-07-2011, 02:24 AM
Post: #7
|
|||
|
|||
| RE: Indentify user session | |||
|
02-08-2011, 12:06 AM
Post: #8
|
|||
|
|||
|
RE: Indentify user session
The streams are named exactly as their user's id (userId)
in the code: stream.publish(userId) - refer to onPeerConnect method (the one labeled as Red5 only) I chatroulette
|
|||
|
02-08-2011, 05:11 AM
Post: #9
|
|||
|
|||
|
RE: Indentify user session
Ok Thanks, i am running the application using red 5 server, does it have anything to do with the function.php file and the database?
I mean when i run the application using red 5.. then does the application use the function.php file and database? OR the function.php file is only used when server is Stratus? Please reply to this. This will resolve my issue. Many thanks again. (02-07-2011 02:24 AM)pavanshinde Wrote: Moderator help.. |
|||
|
02-08-2011, 05:59 AM
Post: #10
|
|||
|
|||
|
RE: Indentify user session
When you are using Red5, the connections and database are handled by the java application for Red5 (the app you installed in /webapps)
I chatroulette
|
|||
|
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)





