From 39ccdc19f22d07d27ae5aca395206c8f965ff615 Mon Sep 17 00:00:00 2001 From: pabloFuente Date: Tue, 21 May 2019 14:18:57 +0200 Subject: [PATCH] openvidu-browser: add id to videos when no IE --- openvidu-browser/src/OpenVidu/StreamManager.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/openvidu-browser/src/OpenVidu/StreamManager.ts b/openvidu-browser/src/OpenVidu/StreamManager.ts index ec1961e0..b1bb12e8 100644 --- a/openvidu-browser/src/OpenVidu/StreamManager.ts +++ b/openvidu-browser/src/OpenVidu/StreamManager.ts @@ -362,6 +362,14 @@ export class StreamManager implements EventDispatcher { video.setAttribute('playsinline', 'true'); } + if (!video.id && !platform['isInternetExplorer']) { + video.id = (this.remote ? 'remote-' : 'local-') + 'video-' + this.stream.streamId; + // DEPRECATED property: assign once the property id if the user provided a valid targetElement + if (!this.id && !!this.targetElement) { + this.id = video.id; + } + } + if (!this.remote && !this.stream.displayMyRemote()) { video.muted = true; if (video.style.transform === 'rotateY(180deg)' && !this.stream.outboundStreamOpts.publisherProperties.mirror) {