diff interfaces/horizontal-sliders.js @ 546:df2d916fd9cf Dev_main

Interfaces report error if audio cannot be loaded/decoded/played
author Nicholas Jillings <n.g.r.jillings@se14.qmul.ac.uk>
date Mon, 22 Feb 2016 15:48:28 +0000
parents 8d01d2bf4b8f
children aa55372146a0
line wrap: on
line diff
--- a/interfaces/horizontal-sliders.js	Mon Feb 22 15:05:39 2016 +0000
+++ b/interfaces/horizontal-sliders.js	Mon Feb 22 15:48:28 2016 +0000
@@ -331,6 +331,11 @@
         node.textContent = this.slider.value;
         return node;
 	};
+    this.error = function() {
+            // audioObject has an error!!
+        this.playback.textContent = "Error";
+        $(this.playback).addClass("error-colour");
+    }
 };
 
 function outsideReferenceDOM(audioObject,index,inject)
@@ -394,6 +399,11 @@
 	{
 		return false;
 	};
+    this.error = function() {
+            // audioObject has an error!!
+        this.outsideReferenceHolder.textContent = "Error";
+        $(this.outsideReferenceHolder).addClass("error-colour");
+    }
 }
 
 function resizeWindow(event)