add tooltip option to Ox.VideoPreview
This commit is contained in:
parent
4d9be17e6c
commit
c0e4dc6e01
1 changed files with 3 additions and 1 deletions
|
@ -20,6 +20,7 @@ Ox.VideoPreview = function(options, self) {
|
||||||
position: void 0,
|
position: void 0,
|
||||||
scaleToFill: false,
|
scaleToFill: false,
|
||||||
timeline: '',
|
timeline: '',
|
||||||
|
tooltip: '',
|
||||||
width: 256
|
width: 256
|
||||||
})
|
})
|
||||||
.options(options || {})
|
.options(options || {})
|
||||||
|
@ -74,7 +75,8 @@ Ox.VideoPreview = function(options, self) {
|
||||||
self.timeout = setTimeout(function() {
|
self.timeout = setTimeout(function() {
|
||||||
self.$frame.attr({src: self.options.getFrame(position)});
|
self.$frame.attr({src: self.options.getFrame(position)});
|
||||||
}, 250);
|
}, 250);
|
||||||
return Ox.formatDuration(position, 2);
|
return (self.options.tooltip ? self.options.tooltip + '<br>' : '')
|
||||||
|
+ Ox.formatDuration(position, 2);
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.addClass('OxInterface')
|
.addClass('OxInterface')
|
||||||
|
|
Loading…
Reference in a new issue