|
@@ -219,6 +219,10 @@
|
|
this.$selfView.height(this.$selfView.width() * 0.75); // 4x3 mode
|
|
this.$selfView.height(this.$selfView.width() * 0.75); // 4x3 mode
|
|
this.myVideo.play(this.$selfView[0], {fit: 'contain'});
|
|
this.myVideo.play(this.$selfView[0], {fit: 'contain'});
|
|
|
|
|
|
|
|
+ // show own name-bar
|
|
|
|
+ this.$selfView.find('.name-bar').remove();
|
|
|
|
+ this.$selfView.append($('<div class="name-bar"></div>').text(this.myName));
|
|
|
|
+
|
|
// start listening to events
|
|
// start listening to events
|
|
this.initMediaEvents();
|
|
this.initMediaEvents();
|
|
|
|
|
|
@@ -417,6 +421,22 @@
|
|
}
|
|
}
|
|
element.height(element.width() * 0.75); // 4x3 mode
|
|
element.height(element.width() * 0.75); // 4x3 mode
|
|
user.videoTrack.play(element[0], {fit: 'contain'});
|
|
user.videoTrack.play(element[0], {fit: 'contain'});
|
|
|
|
+
|
|
|
|
+ // refreshState & show user's name over video
|
|
|
|
+ this.getMeetingInfo(false, () => {
|
|
|
|
+ let participant = null;
|
|
|
|
+ for (let i = 0; i < this.meetingData.otherParticipants.length; i++) {
|
|
|
|
+ if (this.meetingData.otherParticipants[i].mediaServiceIdentifier === ('' + user.uid)) {
|
|
|
|
+ participant = this.meetingData.otherParticipants[i];
|
|
|
|
+ break;
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ if (participant) {
|
|
|
|
+ element.find('.name-bar').remove();
|
|
|
|
+ element.append($('<div class="name-bar"></div>').text(participant.displayName));
|
|
|
|
+ }
|
|
|
|
+ });
|
|
|
|
+
|
|
}
|
|
}
|
|
else if(mediaType === 'audio') {
|
|
else if(mediaType === 'audio') {
|
|
user.audioTrack.play();
|
|
user.audioTrack.play();
|