refactored video frame capture

pull/89/head
jmoenig 2019-05-15 12:58:45 +02:00
rodzic cf2d94cc51
commit dadf2996e7
2 zmienionych plików z 7 dodań i 1 usunięć

Wyświetl plik

@ -80,6 +80,7 @@
### 2019-05-15
* Objects, Treads: refactored videoLayer so it can also be used for other extensions (maps, 3d)
* Objects: refactored video frame capture
### 2019-05-14
* Objects: fixed originalCloneName reference when setting a new parent

Wyświetl plik

@ -7536,8 +7536,13 @@ StageMorph.prototype.step = function () {
}
// video frame capture
this.stepVideo();
};
StageMorph.prototype.stepVideo = function () {
var context;
if (this.videoElement) {
var context = this.projectionLayer().getContext('2d');
context = this.projectionLayer().getContext('2d');
context.save();
if (this.mirrorVideo) {
context.translate(this.dimensions.x, 0);