diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-03-24 13:23:33 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-03-24 13:23:33 -0400 |
| commit | 3832685358c9d3ad3e0aead51228f29255702007 (patch) | |
| tree | 51351d62c6653cd5752ed79ab5bfd2d90ac9892d /public/assets/javascripts/mx/primitives/mx.video.js | |
| parent | bcf1904e0bdd64353e6d06f922112cf28b1bc87f (diff) | |
setVolume functions
Diffstat (limited to 'public/assets/javascripts/mx/primitives/mx.video.js')
| -rw-r--r-- | public/assets/javascripts/mx/primitives/mx.video.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/public/assets/javascripts/mx/primitives/mx.video.js b/public/assets/javascripts/mx/primitives/mx.video.js index c281f02..9138cdd 100644 --- a/public/assets/javascripts/mx/primitives/mx.video.js +++ b/public/assets/javascripts/mx/primitives/mx.video.js @@ -87,6 +87,11 @@ MX.Video = MX.Object3D.extend({ this.muted = false }, + setVolume: function(n){ + if (this.muted) return + this.player.volume = n + }, + setLoop: function(state){ this.media.loop = state }, |
