repo: janusweb action: commit revision: path_from: revision_from: 2e72e2eceadd004b74bf03541dc85ed2cda58dbd: path_to: revision_to:
commit 2e72e2eceadd004b74bf03541dc85ed2cda58dbd Author: James BaicoianuDate: Fri Apr 6 13:37:22 2018 -0700 Update renderer on video/gif frames diff --git a/scripts/object.js b/scripts/object.js
--- a/scripts/object.js
+++ b/scripts/object.js
@@ -141,6 +141,10 @@ elation.require(['janusweb.janusbase', 'janusweb.websurface'], function() {
texture.image.play();
});
}
+
+ // Refresh this object whenever the video has a new frame for us to display
+ texture.onUpdate = (e) => this.refresh();
+
this.video = texture.image;
elation.events.add(this, 'click', elation.bind(this, this.handleVideoClick));
this.room.videos[videoid] = this;
-----END OF PAGE-----