webstaff: console logging for debugging audio
authorJason Etheridge <jason@esilibrary.com>
Mon, 27 Mar 2017 20:00:11 +0000 (16:00 -0400)
committerMike Rylander <mrylander@gmail.com>
Mon, 17 Apr 2017 19:11:40 +0000 (15:11 -0400)
Signed-off-by: Jason Etheridge <jason@esilibrary.com>
Signed-off-by: Mike Rylander <mrylander@gmail.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]) {