repo: janusweb action: commit revision: path_from: revision_from: 6cd596d0a4de762a3cfa98932be733e9577d3d0a: path_to: revision_to:
commit 6cd596d0a4de762a3cfa98932be733e9577d3d0a Author: James BaicoianuDate: Thu Apr 28 03:38:17 2016 -0700 Fix image looping diff --git a/scripts/video.js b/scripts/video.js
--- 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-----