forked from 0x2620/oxjs
change video resolution, trigger ended event in player
This commit is contained in:
parent
cf567e5608
commit
6e0ff7158c
4 changed files with 29 additions and 10 deletions
|
|
@ -30,6 +30,7 @@ Ox.VideoPanelPlayer = function(options, self) {
|
|||
playInToOut: false,
|
||||
position: 0,
|
||||
poster: '',
|
||||
resolution: 0,
|
||||
scaleToFill: false,
|
||||
showAnnotations: true,
|
||||
showTimeline: true,
|
||||
|
|
@ -77,6 +78,7 @@ Ox.VideoPanelPlayer = function(options, self) {
|
|||
out: self.options.out,
|
||||
paused: true,
|
||||
position: self.options.position,
|
||||
resolution: self.options.resolution,
|
||||
scaleToFill: self.options.scaleToFill,
|
||||
subtitles: self.options.subtitles,
|
||||
timeline: self.options.timeline,
|
||||
|
|
@ -103,6 +105,9 @@ Ox.VideoPanelPlayer = function(options, self) {
|
|||
setPosition(data);
|
||||
that.triggerEvent('position', data);
|
||||
},
|
||||
resolution: function(data) {
|
||||
that.triggerEvent('resolution', data);
|
||||
},
|
||||
scale: function(data) {
|
||||
that.triggerEvent('scale', data);
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue