Rajesh GS Posted October 28, 2020 Share Posted October 28, 2020 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 More sharing options...
0 Tahir Posted October 28, 2020 Share Posted October 28, 2020 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 More sharing options...
0 Rajesh GS Posted October 28, 2020 Author Share Posted October 28, 2020 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 More sharing options...
0 Tahir Posted October 28, 2020 Share Posted October 28, 2020 Hi, You are welcome to contribute to the back end too( blessings of open source ). If you are willing to do it, I can help with your first steps to start development and clarify some questions if you have them. Thanks. Link to comment Share on other sites More sharing options...
Question
Rajesh GS
Link to comment
Share on other sites
Top Posters For This Question
2
2
Popular Days
Oct 28
4
Top Posters For This Question
Tahir 2 posts
Rajesh GS 2 posts
Popular Days
Oct 28 2020
4 posts
3 answers to this question
Recommended Posts