forked from 0x2620/oxjs
add showInToOut option to LargeVideoTimeline
This commit is contained in:
parent
aef603bf66
commit
2fc340d9bd
2 changed files with 31 additions and 5 deletions
|
|
@ -21,6 +21,7 @@ Ox.LargeVideoTimeline = function(options, self) {
|
|||
matches: [],
|
||||
out: 0,
|
||||
position: 0,
|
||||
showInToOut: false,
|
||||
subtitles: [],
|
||||
type: '',
|
||||
width: 0
|
||||
|
|
@ -64,6 +65,28 @@ Ox.LargeVideoTimeline = function(options, self) {
|
|||
|
||||
setSubtitles();
|
||||
|
||||
if (self.options.showInToOut) {
|
||||
if (self.options['in']) {
|
||||
$('<div>')
|
||||
.addClass('OxOverlay')
|
||||
.css({
|
||||
left: 0,
|
||||
width: self.options['in'] * self.fps + 'px',
|
||||
})
|
||||
.appendTo(self.$timeline);
|
||||
}
|
||||
if (self.options.out) {
|
||||
$('<div>')
|
||||
.addClass('OxOverlay')
|
||||
.css({
|
||||
left: self.options.out * self.fps + 'px',
|
||||
width: (self.options.duration - self.options.out) * self.fps + 'px',
|
||||
height: self.height + 'px',
|
||||
})
|
||||
.appendTo(self.$timeline);
|
||||
}
|
||||
}
|
||||
|
||||
self.options.cuts.forEach(function(v, i) {
|
||||
self.$cuts[i] = $('<img>')
|
||||
.addClass('OxCut')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue