Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- WebinarRTC.prototype.joinRoom = function () {
- var self = this;
- self.connection
- .join({name: self.roomName})
- .on(self.ROOM_EVENT.STATE, function (room) {
- self.room = room;
- var participants = room.getParticipants();
- if (participants.length > 0) {
- for (var i = 0; i < participants.length; i++) {
- console.log('Участник ' + participants[i].name());
- participants[i].getStreams().forEach(function (val) {
- var streamName = val.streamName();
- console.log(participants[i].name(), streamName);
- });
- }
- }
- });
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement