webstaff: console logging for debugging audio
authorJason Etheridge <jason@esilibrary.com>
Mon, 27 Mar 2017 20:00:11 +0000 (16:00 -0400)
committerJason Etheridge <jason@esilibrary.com>
Mon, 27 Mar 2017 20:01:15 +0000 (16:01 -0400)
Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Open-ILS/web/js/ui/default/staff/services/audio.js

index 8cab872..82baa76 100644 (file)
@@ -39,6 +39,7 @@ angular.module('egCoreMod')
     }
 
     service.play_url = function(path, orig_path) {
+        console.log('audio: play_url('+path+','+orig_path+')');
 
         egHatch.getItem('eg.audio.disable').then(function(audio_disabled) {
             if (!audio_disabled) {
@@ -51,6 +52,7 @@ angular.module('egCoreMod')
                 player.onloadeddata = function() {
                     service.url_cache[orig_path] = url;
                     player.play();
+                    console.log('audio: ' + url);
                 };
 
                 if (service.url_cache[path]) {