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

@ -23,6 +23,8 @@ Ox.VideoPanel = function(options, self) {
annotationsSize: 256,
annotationsSort: 'position',
censored: [],
censoredIcon: '',
censoredTooltip: '',
clickLink: null,
cuts: [],
duration: 0,
@ -86,6 +88,8 @@ Ox.VideoPanel = function(options, self) {
self.$video = Ox.VideoPlayer({
annotations: getAnnotations(),
censored: self.options.censored,
censoredIcon: self.options.censoredIcon,
censoredTooltip: self.options.censoredTooltip,
controlsTop: ['fullscreen', 'title', 'find'],
controlsBottom: ['play', 'volume', 'scale', 'timeline', 'position', 'settings'],
enableDownload: self.options.enableDownload,
@ -112,6 +116,9 @@ Ox.VideoPanel = function(options, self) {
width: getPlayerWidth()
})
.bindEvent({
censored: function() {
that.triggerEvent('censored');
},
download: function(data) {
that.triggerEvent('downloadvideo', data);
},