Jump to content
  • 0

send username in conference room


Rajesh GS
 Share

Question

Hi

I am trying to add a simple addon to the conference.html demo. I want to send the username along with the stream when the user joins a room. 

I am capturing the username before they join the room. I am assuming it should be sent along with the joinRoom command to the server

thanks

Link to comment
Share on other sites

  • Answers 3
  • Created
  • Last Reply

Top Posters For This Question

Popular Days

Top Posters For This Question

3 answers to this question

Recommended Posts

  • 0

Hi,

If you are trying to send the username to your application server, yes you can do that in joinRoom method ( even in joined_room callback ).

If you are trying to send the username to Ant Media Server, you need to customize the Ant Media Server web socket handler in such way first ( back end adjustment ). Of course you can do that also, but I didn't really understand what you are trying to achieve since stream IDs are unique like usernames, you can match the username with stream ID in front end easily.

I hope this will help you
Thanks

Link to comment
Share on other sites

  • 0
Hi Tahir

in a conference - a user selects a name before joining the room. I want to send the user's name so that it can be shown on other users' screens as well along with the video. Hope I made sense this time.

I was trying to figure out if I can use getStreamInfo or something like that to fetch user information.  Otherwise, the only way left for me would be to send username over datachannel. I can USERNAME_SET handleEvent and store it along with the streamId

Regards

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share


×
×
  • Create New...