in video player, set muted/volume of video element
This commit is contained in:
parent
49adfa57ae
commit
1e8edb8388
1 changed files with 2 additions and 1 deletions
|
@ -293,7 +293,7 @@ Ox.VideoPlayer = function(options, self) {
|
||||||
// and poster doesn't seem to work at all
|
// and poster doesn't seem to work at all
|
||||||
Ox.extend({
|
Ox.extend({
|
||||||
preload: self.options.preload,
|
preload: self.options.preload,
|
||||||
src: self.video
|
src: self.video,
|
||||||
}, !self.options.paused && !self.options.playInToOut ? {
|
}, !self.options.paused && !self.options.playInToOut ? {
|
||||||
autoplay: 'autoplay'
|
autoplay: 'autoplay'
|
||||||
} : {}/*, self.options.poster ? {
|
} : {}/*, self.options.poster ? {
|
||||||
|
@ -1570,6 +1570,7 @@ Ox.VideoPlayer = function(options, self) {
|
||||||
//self.$video.currentTime(self.options.position);
|
//self.$video.currentTime(self.options.position);
|
||||||
|
|
||||||
setPosition(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,
|
// if not paused, but playInToOut, we haven't set autoplay before,
|
||||||
// since autoplay seems to always play from the beginning
|
// since autoplay seems to always play from the beginning
|
||||||
|
|
Loading…
Reference in a new issue