repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 2e72e2eceadd004b74bf03541dc85ed2cda58dbd:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 2e72e2eceadd004b74bf03541dc85ed2cda58dbd
Author: James Baicoianu 
Date:   Fri Apr 6 13:37:22 2018 -0700

    Update renderer on video/gif frames

diff --git a/scripts/object.js b/scripts/object.js
index 9488a316da0b12a5b1b37fa8ac518e31f86d257e..
index ..4ee13a9495948c2b947dcf92f1f185e746efeb8a 100644
--- 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-----