mirror of https://github.com/OpenVidu/openvidu.git
openvidu-browser: add id to videos when no IE
parent
536cc07747
commit
39ccdc19f2
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue