add playbackRate to video elements
This commit is contained in:
parent
da08120ff4
commit
f2e7c75d2c
5 changed files with 32 additions and 3 deletions
|
|
@ -78,6 +78,7 @@ Ox.VideoAnnotationPanel = function(options, self) {
|
|||
muted: false,
|
||||
out: 0,
|
||||
paused: true,
|
||||
playbackRate: 1,
|
||||
position: 0,
|
||||
posterFrame: 0,
|
||||
resolution: 0,
|
||||
|
|
@ -119,6 +120,11 @@ Ox.VideoAnnotationPanel = function(options, self) {
|
|||
paused: self.options.paused
|
||||
});
|
||||
},
|
||||
playbackRate: function() {
|
||||
self.$player[0].options({
|
||||
playbackRate: self.options.playbackRate
|
||||
});
|
||||
},
|
||||
position: function() {
|
||||
setPosition(self.options.position);
|
||||
},
|
||||
|
|
@ -397,6 +403,7 @@ Ox.VideoAnnotationPanel = function(options, self) {
|
|||
muted: self.options.muted,
|
||||
out: self.options.out,
|
||||
paused: self.options.paused,
|
||||
playbackRate: self.options.playbackRate,
|
||||
position: type == 'play' ? self.options.position : self.options[type],
|
||||
posterFrame: self.options.posterFrame,
|
||||
resolution: self.options.resolution,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue