1
0
Fork 0
forked from 0x2620/oxjs

implement 'follow player while playing'

This commit is contained in:
rlx 2012-04-17 13:42:46 +00:00
commit 3ecfcd0f3f
2 changed files with 69 additions and 21 deletions

View file

@ -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});