multirtc
Version:
1) It is a skype-like demo using WebRTC for realtime connections! 2) It allows you enable/disable webcams; and join with or without webcams! 3) It allows you share screen using existing peer connections! 4) It allows you share files with preview and downl
21 lines (16 loc) • 673 B
JavaScript
// Muaz Khan - www.MuazKhan.com
// MIT License - www.WebRTC-Experiment.com/licence
// Experiments - github.com/muaz-khan/WebRTC-Experiment
var usersList = getElement('.users-list');
var numbersOfUsers = getElement('.numbers-of-users');
numbersOfUsers.innerHTML = 1;
var usersContainer = getElement('.users-container');
usersList.onclick = function() {
if (usersList.className.indexOf('selected') != -1) {
usersList.className = usersList.className.replace( / selected/g , '');
usersContainer.style.display = 'none';
} else {
usersList.className += ' selected';
usersContainer.style.display = 'block';
}
};