1
0
Fork 0
forked from 0x2620/oxjs

cleanup VideoElement

This commit is contained in:
rolux 2014-03-13 18:53:02 +00:00
commit 03cbb92654
2 changed files with 7 additions and 16 deletions

View file

@ -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() {