summaryrefslogtreecommitdiff
path: root/www/js/api.js
diff options
context:
space:
mode:
authorAlex Xu <alex_y_xu@yahoo.ca>2014-02-17 17:14:54 -0500
committerAlex Xu <alex_y_xu@yahoo.ca>2014-02-17 17:14:54 -0500
commit8d6546824d87e90d2e9bc95277e23f5a8b49dfe2 (patch)
tree455d86578bd3fde43a145387fa1cd197d5dc5e03 /www/js/api.js
parent6c26d2c37d9e2bf9c9f4bfb95078486d0c9d2c4c (diff)
downloadhtml5ks-8d6546824d87e90d2e9bc95277e23f5a8b49dfe2.tar.xz
html5ks-8d6546824d87e90d2e9bc95277e23f5a8b49dfe2.zip
stuff
Diffstat (limited to 'www/js/api.js')
-rw-r--r--www/js/api.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/www/js/api.js b/www/js/api.js
index 79b735e..12e8ecc 100644
--- a/www/js/api.js
+++ b/www/js/api.js
@@ -58,8 +58,10 @@ window.html5ks.api = {
el.onerror = function (e) {
if (e.code === e.MEDIA_ERR_SRC_NOT_SUPPORTED) {
- if (!_nextType()) {
- console.log("no audio formats supported");
+ if (_nextType()) {
+ console.warn("browser claimed support for " + types[i-1] + " but failed");
+ } else {
+ console.error("no media formats supported");
}
} else {
console.error("unknown audio error");