make subtitles on BlockVideoTimeline optional
This commit is contained in:
parent
73883cba11
commit
bd3ebf5e33
2 changed files with 3 additions and 1 deletions
|
@ -13,6 +13,7 @@ Ox.BlockVideoTimeline = function(options, self) {
|
|||
position: 0,
|
||||
results: [],
|
||||
showPointMarkers: false,
|
||||
showSubtitles: false,
|
||||
subtitles: [],
|
||||
width: 0
|
||||
})
|
||||
|
@ -52,7 +53,7 @@ Ox.BlockVideoTimeline = function(options, self) {
|
|||
'in': self.options['in'],
|
||||
out: self.options.out,
|
||||
results: self.options.results,
|
||||
subtitles: self.options.subtitles,
|
||||
subtitles: self.options.showSubtitles ? self.options.subtitles : [],
|
||||
timeline: self.options.getImageURL,
|
||||
width: Math.round(self.options.duration),
|
||||
type: self.options.type
|
||||
|
|
|
@ -242,6 +242,7 @@ Ox.VideoEditor = function(options, self) {
|
|||
out: self.options.out,
|
||||
position: self.options.position,
|
||||
showPointMarkers: true,
|
||||
showSubtitles: true,
|
||||
subtitles: self.options.subtitles,
|
||||
videoId: self.options.videoId,
|
||||
width: self.sizes.timeline[1].width
|
||||
|
|
Loading…
Reference in a new issue