openvidu-browser bug fix: addVideoElement for displayedRemote streams

pull/127/head
pabloFuente 2018-09-26 12:09:34 +02:00
parent b44a84d992
commit 218a19ee06
1 changed files with 4 additions and 0 deletions

View File

@ -221,6 +221,10 @@ export class StreamManager implements EventDispatcher {
this.initializeVideoProperties(video); this.initializeVideoProperties(video);
if (this.stream.isLocal() && this.stream.displayMyRemote()) {
video.srcObject = this.stream.getMediaStream();
}
// If the video element is already part of this StreamManager do nothing // If the video element is already part of this StreamManager do nothing
for (const v of this.videos) { for (const v of this.videos) {
if (v.video === video) { if (v.video === video) {