forked from 0x2620/oxjs
rename various options of video widgets to allow for different timeline types
This commit is contained in:
parent
baa9e9be61
commit
132e8d2207
10 changed files with 90 additions and 67 deletions
|
|
@ -30,6 +30,7 @@ Ox.VideoPanel = function(options, self) {
|
|||
enableSubtitles: false,
|
||||
find: '',
|
||||
fullscreen: false,
|
||||
getLargeTimelineURL: null,
|
||||
height: 0,
|
||||
'in': 0,
|
||||
layers: [],
|
||||
|
|
@ -49,7 +50,9 @@ Ox.VideoPanel = function(options, self) {
|
|||
showLayers: {},
|
||||
showTimeline: true,
|
||||
showUsers: false,
|
||||
smallTimelineURL: '',
|
||||
subtitles: [],
|
||||
timeline: '',
|
||||
tooltips: false,
|
||||
video: '',
|
||||
volume: 1,
|
||||
|
|
@ -103,7 +106,7 @@ Ox.VideoPanel = function(options, self) {
|
|||
resolution: self.options.resolution,
|
||||
scaleToFill: self.options.scaleToFill,
|
||||
subtitles: self.options.subtitles,
|
||||
timeline: self.options.timeline,
|
||||
timeline: self.options.smallTimelineURL,
|
||||
video: self.options.video,
|
||||
volume: self.options.volume,
|
||||
width: getPlayerWidth()
|
||||
|
|
@ -159,10 +162,11 @@ Ox.VideoPanel = function(options, self) {
|
|||
self.$timeline = Ox.LargeVideoTimeline({
|
||||
duration: self.options.duration,
|
||||
find: self.options.find,
|
||||
getImageURL: self.options.getTimelineImageURL,
|
||||
getImageURL: self.options.getLargeTimelineURL,
|
||||
position: self.options.position,
|
||||
subtitles: self.options.enableSubtitles ? self.options.subtitles : [],
|
||||
videoId: self.options.videoId,
|
||||
type: self.options.timeline,
|
||||
width: getTimelineWidth()
|
||||
})
|
||||
.css({left: '4px', top: '4px'})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue