forked from 0x2620/oxjs
misc updates; add geo demo
This commit is contained in:
parent
09a3537dc1
commit
34753cb2ed
9 changed files with 219 additions and 81 deletions
|
|
@ -1664,16 +1664,6 @@ Ox.VideoPlayer = function(options, self) {
|
|||
}
|
||||
}
|
||||
|
||||
function parsePositionInput(str) {
|
||||
var split = str.split(':').reverse();
|
||||
while (split.length > 3) {
|
||||
split.pop();
|
||||
}
|
||||
return split.reduce(function(prev, curr, i) {
|
||||
return prev + (parseFloat(curr) || 0) * Math.pow(60, i);
|
||||
}, 0);
|
||||
}
|
||||
|
||||
function playing() {
|
||||
var minute,
|
||||
previousMinute = parseInt(self.options.position / 60);
|
||||
|
|
@ -2141,8 +2131,7 @@ Ox.VideoPlayer = function(options, self) {
|
|||
function submitPositionInput() {
|
||||
self.$positionInput.hide();
|
||||
self.$position.html('').show();
|
||||
//Ox.Log('Video', '###', parsePositionInput(self.$positionInput.value()))
|
||||
setPosition(parsePositionInput(self.$positionInput.value()));
|
||||
setPosition(Ox.parseDuration(self.$positionInput.value()));
|
||||
if (self.playOnSubmit) {
|
||||
togglePaused();
|
||||
self.$video.play();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue