forked from 0x2620/oxjs
make 'censored' icon/link/tooltip configurable (fixes #252)
This commit is contained in:
parent
bdab9b8a7d
commit
f0d4043fd4
6 changed files with 89 additions and 42 deletions
|
|
@ -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);
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue