forked from 0x2620/oxjs
cleanup VideoElement
This commit is contained in:
parent
b487da90a1
commit
03cbb92654
2 changed files with 7 additions and 16 deletions
|
|
@ -5,7 +5,7 @@ Ox.VideoElement <f> VideoElement Object
|
|||
options <o> Options object
|
||||
autoplay <b|false> autoplay
|
||||
items <a|[]> array of objects with src,in,out,duration
|
||||
look <b|false> loop playback
|
||||
loop <b|false> loop playback
|
||||
self <o> Shared private variable
|
||||
([options[, self]]) -> <o:Ox.Element> VideoElement Object
|
||||
loadedmetadata <!> loadedmetadata
|
||||
|
|
@ -109,7 +109,9 @@ Ox.VideoElement = function(options, self) {
|
|||
|
||||
loadItems(function() {
|
||||
setCurrentItem(0);
|
||||
self.options.autoplay && that.play();
|
||||
self.options.autoplay && setTimeout(function() {
|
||||
that.play();
|
||||
});
|
||||
});
|
||||
|
||||
function getCurrentTime() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue