forked from 0x2620/oxjs
implement 'follow player while playing'
This commit is contained in:
parent
0e8bfd1348
commit
3ecfcd0f3f
2 changed files with 69 additions and 21 deletions
|
|
@ -85,6 +85,9 @@ Ox.VideoTimelinePanel = function(options, self) {
|
|||
width: getPlayerWidth()
|
||||
})
|
||||
.bindEvent({
|
||||
follow: function(data) {
|
||||
that.triggerEvent('follow', data);
|
||||
},
|
||||
muted: function(data) {
|
||||
that.triggerEvent('muted', data);
|
||||
},
|
||||
|
|
@ -255,7 +258,9 @@ Ox.VideoTimelinePanel = function(options, self) {
|
|||
}
|
||||
|
||||
self.setOption = function(key, value) {
|
||||
if (key == 'showAnnotations') {
|
||||
if (key == 'height') {
|
||||
self.$player.options({height: value});
|
||||
} else if (key == 'showAnnotations') {
|
||||
that.$element.toggle(1);
|
||||
} else if (key == 'width') {
|
||||
self.$player.options({width: value});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue