mirror of https://github.com/OpenVidu/openvidu.git
openvidu-browser: srcObject defined before videoElementCreated
parent
c0cae92d13
commit
a728325c37
|
@ -313,7 +313,9 @@ export class Publisher extends StreamManager {
|
||||||
if (platform.name === 'Safari') {
|
if (platform.name === 'Safari') {
|
||||||
this.videoReference.setAttribute('playsinline', 'true');
|
this.videoReference.setAttribute('playsinline', 'true');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.stream.setMediaStream(mediaStream);
|
||||||
|
|
||||||
if (!!this.firstVideoElement) {
|
if (!!this.firstVideoElement) {
|
||||||
let video = this.createVideoElement(this.firstVideoElement.targetElement, <VideoInsertMode>this.properties.insertMode);
|
let video = this.createVideoElement(this.firstVideoElement.targetElement, <VideoInsertMode>this.properties.insertMode);
|
||||||
if (platform['isInternetExplorer']) {
|
if (platform['isInternetExplorer']) {
|
||||||
|
@ -331,8 +333,6 @@ export class Publisher extends StreamManager {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
this.stream.setMediaStream(mediaStream);
|
|
||||||
|
|
||||||
if (platform['isInternetExplorer']) {
|
if (platform['isInternetExplorer']) {
|
||||||
AdapterJS.webRTCReady(isUsingPlugin => {
|
AdapterJS.webRTCReady(isUsingPlugin => {
|
||||||
this.videoReference = this.customAttachMediaStreamIE(this.videoReference, mediaStream);
|
this.videoReference = this.customAttachMediaStreamIE(this.videoReference, mediaStream);
|
||||||
|
|
|
@ -362,13 +362,6 @@ export class StreamManager implements EventDispatcher {
|
||||||
video.setAttribute('playsinline', 'true');
|
video.setAttribute('playsinline', 'true');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!video.id) {
|
|
||||||
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