in video player, set muted/volume of video element

This commit is contained in:
rlx 2011-11-05 15:16:36 +00:00
parent 49adfa57ae
commit 1e8edb8388

View file

@ -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