diff options
author | Alex Xu <alex_y_xu@yahoo.ca> | 2014-02-17 09:28:14 -0500 |
---|---|---|
committer | Alex Xu <alex_y_xu@yahoo.ca> | 2014-02-17 09:28:14 -0500 |
commit | 6c26d2c37d9e2bf9c9f4bfb95078486d0c9d2c4c (patch) | |
tree | 8ff5ee0dc07a92caa69dbd8d67acdb106c991f76 | |
parent | 4f1398e0a5a8dd23dd5d2cc9bd73f7af70c1d440 (diff) | |
download | html5ks-6c26d2c37d9e2bf9c9f4bfb95078486d0c9d2c4c.tar.xz html5ks-6c26d2c37d9e2bf9c9f4bfb95078486d0c9d2c4c.zip |
attach event handlers before setting src in loadMedia
-rw-r--r-- | www/js/api.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/www/js/api.js b/www/js/api.js index 4eef78a..79b735e 100644 --- a/www/js/api.js +++ b/www/js/api.js @@ -51,8 +51,6 @@ window.html5ks.api = { html5ks.spin(1); - _nextType(); - el.oncanplaythrough = function () { el.play(); html5ks.spin(-1); @@ -67,6 +65,8 @@ window.html5ks.api = { console.error("unknown audio error"); } }; + + _nextType(); }, play: function (channel, name, ignore, fade) { |