From 4da506408edc02607ac3827c7c09ab6a6c8cf0b8 Mon Sep 17 00:00:00 2001 From: Alex Xu Date: Tue, 25 Mar 2014 22:36:42 -0400 Subject: bleh --- www/js/api.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'www/js') diff --git a/www/js/api.js b/www/js/api.js index 04d8c5a..b8c2f28 100644 --- a/www/js/api.js +++ b/www/js/api.js @@ -56,7 +56,7 @@ window.html5ks.api = { }; setTimeout(function () { - if (el.oncanplaythrough) { + if (el.src && el.oncanplaythrough) { console.warn("video not playing after 3 seconds"); el.oncanplaythrough(); } @@ -161,6 +161,7 @@ window.html5ks.api = { video.volume = html5ks.persistent.musicVolume; var done = function () { video.style.display = "none"; + video.onerror = null; video.src = ""; deferred.resolve(); }; -- cgit v1.2.3-70-g09d2