Canvas-Designer
Canvas-Designer copied to clipboard
Is it possible to display list of all connected users? Can we customize and allow the connecting user to put some friendly name.
Right now when a new user is connected we get to see a random string which tells us if user is connected and collaborating. Can we have a method to allow the connecting user to put his/her name and show the list of all connected users.
The demo file index.html
is using RTCMultiConnection, which is having this API:
- http://www.rtcmulticonnection.org/docs/extra/
connection.extra = {
fullname: prompt('Please enter your full name', 'Anonymous');
};
Place above snippet before invoking connection.open
or connection.join
.
Here is how to access fullname:
connection.onopen = function(event) {
alert('Connected with: ' + event.extra.fullname);
};