diff options
| author | Jules Laplace <jules@okfoc.us> | 2014-11-05 12:39:16 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2014-11-05 12:39:16 -0500 |
| commit | 38721a909cf2fe2e809f08445c94321d8635c1c9 (patch) | |
| tree | 17962e29c3216cffc2c9ef4c99c500c339916210 /public/assets/javascripts/mx/primitives/mx.video.js | |
| parent | 4adaca22b5cafba9dcfd8fd147d44797ad267a77 (diff) | |
make video default at full volume and play from beginning
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 12d3dcb..333e1d2 100644 --- a/public/assets/javascripts/mx/primitives/mx.video.js +++ b/public/assets/javascripts/mx/primitives/mx.video.js @@ -45,6 +45,9 @@ MX.Video = MX.Object3D.extend({ if (this.media.mute) { this.mute() } + else { + this.unmute() + } if (this.media.autoplay) { this.play() @@ -74,11 +77,13 @@ MX.Video = MX.Object3D.extend({ mute: function(){ this.player.muted = true + this.player.volume = 0 this.muted = true }, unmute: function(){ this.player.muted = false + this.player.volume = 0.8 this.muted = false }, |
