repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 6cd596d0a4de762a3cfa98932be733e9577d3d0a:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 6cd596d0a4de762a3cfa98932be733e9577d3d0a
Author: James Baicoianu 
Date:   Thu Apr 28 03:38:17 2016 -0700

    Fix image looping

diff --git a/scripts/video.js b/scripts/video.js
index 4defa19e9ebf9791f10745ec410953681e5de679..
index ..da9b844528b4aabc3e87258f405a778507d1c1a7 100644
--- a/scripts/video.js
+++ b/scripts/video.js
@@ -32,7 +32,10 @@ elation.require(['engine.things.theaterscreen'], function() {
         if (this.asset.ou3d) {
           texture.repeat.y = 0.5;
         }
-        if (true || this.asset.auto_play) {
+        if (this.properties.loop) {
+          texture.image.loop = true;
+        }
+        if (this.asset.auto_play) {
           texture.image.play();
         }
         elation.events.add(texture, 'videoframe', elation.bind(this, this.refresh));

-----END OF PAGE-----