connected session button

61 views
Skip to first unread message

vendredi67

unread,
Sep 23, 2014, 3:05:26 PM9/23/14
to eas...@googlegroups.com
Hello,

How can I replace session button text of connected users in the demo (video + audio) by a cookie from a client side. 

example <button>user 1</button>
               <button>user 2</button>
               <button>user 3</button>

thank you!

Eric Davies

unread,
Sep 23, 2014, 5:10:12 PM9/23/14
to eas...@googlegroups.com
Typically, people use  setRoomApiField/getRoomApiField or setUsername/getUsername to associate names with a client connection. userNames are somewhat constrained in what they allow by default (no embedded spaces).

Getting a clients cookie to use as a name is left as an exercise for the developer.

vendredi67

unread,
Sep 24, 2014, 1:14:57 AM9/24/14
to eas...@googlegroups.com
Hello Eric 

Thank you for your quick reply. I used setUsername/getUsername and this works well :)
Reply all
Reply to author
Forward
0 new messages