diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-04-29 17:22:25 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-04-29 17:22:25 -0400 |
| commit | 498069dec6ac9c1febf2da26b3d3f53f8bd1e1ef (patch) | |
| tree | 413b3fdc9380c48d072514a9080131b0439fb1bf | |
| parent | 1c5d52929bcec9dfe0b15cf57e85c7b2808614b3 (diff) | |
playAll/pauseAll/rewindAll
| -rw-r--r-- | public/assets/javascripts/mx/primitives/mx.vimeo.js | 2 | ||||
| -rw-r--r-- | public/assets/javascripts/rectangles/engine/scenery/_scenery.js | 16 |
2 files changed, 17 insertions, 1 deletions
diff --git a/public/assets/javascripts/mx/primitives/mx.vimeo.js b/public/assets/javascripts/mx/primitives/mx.vimeo.js index ccd0a13..e1a3b84 100644 --- a/public/assets/javascripts/mx/primitives/mx.vimeo.js +++ b/public/assets/javascripts/mx/primitives/mx.vimeo.js @@ -99,7 +99,7 @@ MX.Vimeo = MX.Object3D.extend({ return } - if (! this.started || n === 0) { + if (! this.started) { return } diff --git a/public/assets/javascripts/rectangles/engine/scenery/_scenery.js b/public/assets/javascripts/rectangles/engine/scenery/_scenery.js index 18d665f..e9be663 100644 --- a/public/assets/javascripts/rectangles/engine/scenery/_scenery.js +++ b/public/assets/javascripts/rectangles/engine/scenery/_scenery.js @@ -114,6 +114,22 @@ var Scenery = new function(){ return added } + base.rewindAll = function(){ + base.forEach(function(scenery){ + if (scenery.type == "video") scenery.seek(0) + }) + } + base.playAll = function(){ + base.forEach(function(scenery){ + if (scenery.type == "video") scenery.play() + }) + } + base.pauseAll = function(){ + base.forEach(function(scenery){ + if (scenery.type == "video") scenery.pause() + }) + } + return base } |
