1
0
Fork 0
forked from 0x2620/oxjs

make 'censored' icon/link/tooltip configurable (fixes #252)

This commit is contained in:
rlx 2012-04-22 09:57:17 +00:00
commit f0d4043fd4
6 changed files with 89 additions and 42 deletions

View file

@ -18,6 +18,8 @@ Ox.VideoTimelinePanel = function(options, self) {
annotationsSize: 256,
annotationsSort: 'position',
censored: [],
censoredIcon: '',
censoredTooltip: '',
clickLink: null,
cuts: [],
duration: 0,
@ -65,6 +67,8 @@ Ox.VideoTimelinePanel = function(options, self) {
self.$player = Ox.VideoTimelinePlayer({
censored: self.options.censored,
censoredIcon: self.options.censoredIcon,
censoredTooltip: self.options.censoredTooltip,
cuts: self.options.cuts,
duration: self.options.duration,
followPlayer: self.options.followPlayer,
@ -85,6 +89,9 @@ Ox.VideoTimelinePanel = function(options, self) {
width: getPlayerWidth()
})
.bindEvent({
censored: function() {
that.triggerEvent('censored');
},
follow: function(data) {
that.triggerEvent('follow', data);
},