Browse Source

Add participants

pull/29/head
Lukas Reschke 9 years ago
parent
commit
57942fa7fc
No known key found for this signature in database GPG Key ID: B9F6980CF6E759B1
  1. 3
      css/style.css
  2. 2
      js/webrtc.js

3
css/style.css

@ -1,3 +1,6 @@
.participants-2 {
background-color: red;
}
video {
width: 100%;
z-index: 0;

2
js/webrtc.js

@ -22,6 +22,8 @@ function openEventSource() {
users.forEach(function(user) {
currentUsersInRoom.push(user['userId']);
});
$('#app-content').attr('class','');
$('#app-content').addClass('participants-'+currentUsersInRoom.length);
var disconnectedUsers = previousUsersInRoom.diff(currentUsersInRoom);
disconnectedUsers.forEach(function(user) {

Loading…
Cancel
Save