forked from 0x2620/oxjs
change video resolution, trigger ended event in player
This commit is contained in:
parent
cf567e5608
commit
6e0ff7158c
4 changed files with 29 additions and 10 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue