some more fixes
This commit is contained in:
parent
32f4626a50
commit
a7c94a8019
1 changed files with 8 additions and 3 deletions
|
@ -28,7 +28,8 @@ Ox.VideoElement = function(options, self) {
|
||||||
return $('<video>')
|
return $('<video>')
|
||||||
.css({position: 'absolute'})
|
.css({position: 'absolute'})
|
||||||
.bind({
|
.bind({
|
||||||
ended: function() {
|
ended: function(e) {
|
||||||
|
alert(e);
|
||||||
if (i < self.parts - 1) {
|
if (i < self.parts - 1) {
|
||||||
setCurrentPart(self.currentPart + 1);
|
setCurrentPart(self.currentPart + 1);
|
||||||
self.video.play();
|
self.video.play();
|
||||||
|
@ -49,6 +50,9 @@ Ox.VideoElement = function(options, self) {
|
||||||
Ox.print('s.o', self.offsets)
|
Ox.print('s.o', self.offsets)
|
||||||
that.triggerEvent('loadedmetadata');
|
that.triggerEvent('loadedmetadata');
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
progress: function() {
|
||||||
|
|
||||||
},
|
},
|
||||||
seeked: function() {
|
seeked: function() {
|
||||||
that.triggerEvent('seeked');
|
that.triggerEvent('seeked');
|
||||||
|
@ -56,8 +60,9 @@ Ox.VideoElement = function(options, self) {
|
||||||
seeking: function() {
|
seeking: function() {
|
||||||
that.triggerEvent('seeking');
|
that.triggerEvent('seeking');
|
||||||
},
|
},
|
||||||
progress: function() {
|
stop: function() {
|
||||||
|
self.video.pause();
|
||||||
|
that.triggerEvent('ended');
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.attr(Ox.extend({
|
.attr(Ox.extend({
|
||||||
|
|
Loading…
Reference in a new issue