Advertisement
Guest User

Untitled

a guest
Feb 17th, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. WebinarRTC.prototype.joinRoom = function () {
  2.   var self = this;
  3.   self.connection
  4.     .join({name: self.roomName})
  5.     .on(self.ROOM_EVENT.STATE, function (room) {
  6.       self.room = room;
  7.       var participants = room.getParticipants();
  8.       if (participants.length > 0) {
  9.         for (var i = 0; i < participants.length; i++) {
  10.           console.log('Участник ' + participants[i].name());
  11.           participants[i].getStreams().forEach(function (val) {
  12.             var streamName = val.streamName();
  13.             console.log(participants[i].name(), streamName);
  14.           });
  15.         }
  16.       }
  17.     });
  18. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement