1
0
Fork 0
forked from 0x2620/oxjs

change video resolution, trigger ended event in player

This commit is contained in:
j 2011-12-20 18:39:26 +05:30
commit 6e0ff7158c
4 changed files with 29 additions and 10 deletions

View file

@ -418,12 +418,12 @@ Ox.VideoElement = function(options, self) {
ret = self.video.src;
} else {
self.options.src = Ox.isArray(arguments[0]) ? arguments[0] : [arguments[0]];
self.videos[currentPart].src = self.options.src[currentPart];
self.videos.forEach(function(video, i) {
if (i != currentPart) {
self.$video[self.currentPart].src = self.options.src[self.currentPart];
self.$video.each(function(video, i) {
if (i != self.currentPart) {
video.src = self.options.src[i];
}
})
});
ret = that;
}
return ret;