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
|
|
@ -12,7 +12,7 @@ Ox.VideoTimelinePlayer = function(options, self) {
|
|||
find: '',
|
||||
followPlayer: false,
|
||||
getFrameURL: null,
|
||||
getTimelineImageURL: null,
|
||||
getLargeTimelineURL: null,
|
||||
height: 0,
|
||||
'in': 0,
|
||||
matches: [],
|
||||
|
|
@ -21,9 +21,9 @@ Ox.VideoTimelinePlayer = function(options, self) {
|
|||
paused: false,
|
||||
position: 0,
|
||||
showMilliseconds: false,
|
||||
smallTimelineURL: '',
|
||||
subtitles: [],
|
||||
timeline: '',
|
||||
timelineImageURL: '',
|
||||
timelines: [],
|
||||
video: '',
|
||||
videoRatio: 1,
|
||||
|
|
@ -79,7 +79,7 @@ Ox.VideoTimelinePlayer = function(options, self) {
|
|||
change: function(data) {
|
||||
var id = data.id;
|
||||
if (id == 'timeline') {
|
||||
// ...
|
||||
// data.checked[0].id
|
||||
} else if (id == 'followPlayer') {
|
||||
self.options.followPlayer = data.checked;
|
||||
if (!self.options.paused && self.options.followPlayer) {
|
||||
|
|
@ -385,11 +385,11 @@ Ox.VideoTimelinePlayer = function(options, self) {
|
|||
function getSmallTimeline() {
|
||||
var $timeline = Ox.SmallVideoTimeline({
|
||||
duration: self.options.duration,
|
||||
imageURL: self.options.smallTimelineURL,
|
||||
mode: 'player',
|
||||
paused: self.options.paused,
|
||||
position: self.options.position,
|
||||
showMilliseconds: self.options.showMilliseconds,
|
||||
timeline: self.options.timelineImageURL,
|
||||
type: 'player',
|
||||
width: getSmallTimelineWidth()
|
||||
})
|
||||
.css({float: 'left'})
|
||||
|
|
@ -506,7 +506,7 @@ Ox.VideoTimelinePlayer = function(options, self) {
|
|||
Ox.loop(self.tiles, function(i) {
|
||||
$('<img>')
|
||||
.attr({
|
||||
src: self.options.getTimelineImageURL(i)
|
||||
src: self.options.getLargeTimelineURL(self.options.type, i)
|
||||
})
|
||||
.css({
|
||||
position: 'absolute',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue