tweaked video initialization

pull/89/head
jmoenig 2019-05-08 15:52:23 +02:00
rodzic 208c1ffd75
commit abcdecde51
1 zmienionych plików z 8 dodań i 7 usunięć

Wyświetl plik

@ -7282,14 +7282,15 @@ StageMorph.prototype.startVideo = function() {
myself.videoElement = null;
}
}
if (!this.videoElement) {
this.videoElement = document.createElement('video');
this.videoElement.width = this.dimensions.x;
this.videoElement.height = this.dimensions.y;
this.videoElement.hidden = true;
document.body.appendChild(this.videoElement);
if (this.videoElement) { // video capture has already been started
return;
}
this.videoElement = document.createElement('video');
this.videoElement.width = this.dimensions.x;
this.videoElement.height = this.dimensions.y;
this.videoElement.hidden = true;
document.body.appendChild(this.videoElement);
this.videoElement.isFlipped = !this.mirrorVideo;
if (!this.videoMotion) {
this.videoMotion = new VideoMotion(