timeline is optional

This commit is contained in:
j 2012-01-02 19:25:15 +05:30
parent 7ca9a4a9e7
commit 4600cd9134

View file

@ -1956,7 +1956,7 @@ Ox.VideoPlayer = function(options, self) {
setSize(self.$spaceTop, getCSS('spaceTop'), animate); setSize(self.$spaceTop, getCSS('spaceTop'), animate);
setSize(self.$controlsBottom, getCSS('controlsBottom'), animate); setSize(self.$controlsBottom, getCSS('controlsBottom'), animate);
setSize(self.$timeline, getCSS('timeline'), animate, function() { setSize(self.$timeline, getCSS('timeline'), animate, function() {
self.$timeline.options({ self.$timeline && self.$timeline.options({
width: self.timelineWidth width: self.timelineWidth
}); });
}); });
@ -2326,7 +2326,7 @@ Ox.VideoPlayer = function(options, self) {
setSizes(); setSizes();
} else if (key == 'in' || key == 'out') { } else if (key == 'in' || key == 'out') {
self.options.paused && setMarkers(); self.options.paused && setMarkers();
self.$timeline.options(key, value); self.$timeline && self.$timeline.options(key, value);
} else if (key == 'muted') { } else if (key == 'muted') {
toggleMuted(); toggleMuted();
} else if (key == 'paused') { } else if (key == 'paused') {