openvidu-browser: add id to videos when no IE

pull/261/head
pabloFuente 2019-05-21 14:18:57 +02:00
parent 536cc07747
commit 39ccdc19f2
1 changed files with 8 additions and 0 deletions

View File

@ -362,6 +362,14 @@ export class StreamManager implements EventDispatcher {
video.setAttribute('playsinline', 'true'); 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()) { if (!this.remote && !this.stream.displayMyRemote()) {
video.muted = true; video.muted = true;
if (video.style.transform === 'rotateY(180deg)' && !this.stream.outboundStreamOpts.publisherProperties.mirror) { if (video.style.transform === 'rotateY(180deg)' && !this.stream.outboundStreamOpts.publisherProperties.mirror) {