make subtitles on BlockVideoTimeline optional

This commit is contained in:
rlx 2011-10-20 13:04:04 +00:00
parent 73883cba11
commit bd3ebf5e33
2 changed files with 3 additions and 1 deletions

View file

@ -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

View file

@ -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