some more fixes

This commit is contained in:
rlx 2011-08-19 20:55:16 +00:00
parent 32f4626a50
commit a7c94a8019

View file

@ -28,7 +28,8 @@ Ox.VideoElement = function(options, self) {
return $('<video>')
.css({position: 'absolute'})
.bind({
ended: function() {
ended: function(e) {
alert(e);
if (i < self.parts - 1) {
setCurrentPart(self.currentPart + 1);
self.video.play();
@ -49,6 +50,9 @@ Ox.VideoElement = function(options, self) {
Ox.print('s.o', self.offsets)
that.triggerEvent('loadedmetadata');
}
},
progress: function() {
},
seeked: function() {
that.triggerEvent('seeked');
@ -56,8 +60,9 @@ Ox.VideoElement = function(options, self) {
seeking: function() {
that.triggerEvent('seeking');
},
progress: function() {
stop: function() {
self.video.pause();
that.triggerEvent('ended');
}
})
.attr(Ox.extend({