From 1e8edb838895375083a49522ca8db54d1091aa7d Mon Sep 17 00:00:00 2001 From: rlx <0x0073@0x2620.org> Date: Sat, 5 Nov 2011 15:16:36 +0000 Subject: [PATCH] in video player, set muted/volume of video element --- source/Ox.UI/js/Video/Ox.VideoPlayer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/Ox.UI/js/Video/Ox.VideoPlayer.js b/source/Ox.UI/js/Video/Ox.VideoPlayer.js index 44330f41..a23fedcb 100644 --- a/source/Ox.UI/js/Video/Ox.VideoPlayer.js +++ b/source/Ox.UI/js/Video/Ox.VideoPlayer.js @@ -293,7 +293,7 @@ Ox.VideoPlayer = function(options, self) { // and poster doesn't seem to work at all Ox.extend({ preload: self.options.preload, - src: self.video + src: self.video, }, !self.options.paused && !self.options.playInToOut ? { autoplay: 'autoplay' } : {}/*, self.options.poster ? { @@ -1570,6 +1570,7 @@ Ox.VideoPlayer = function(options, self) { //self.$video.currentTime(self.options.position); setPosition(self.options.position); + self.$video.muted(self.options.muted).volume(self.options.volume); // if not paused, but playInToOut, we haven't set autoplay before, // since autoplay seems to always play from the beginning