Mercurial > hg > webaudioevaluationtool
diff interfaces/mushra.js @ 1205:0e49d874ba97
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 | 29eaafbe6248 |
children | 943b0ba7ec83 |
line wrap: on
line diff
--- a/interfaces/mushra.js Mon Feb 22 15:05:39 2016 +0000 +++ b/interfaces/mushra.js Mon Feb 22 15:48:28 2016 +0000 @@ -343,6 +343,11 @@ { return true; }; + this.error = function() { + // audioObject has an error!! + this.playback.textContent = "Error"; + $(this.playback).addClass("error-colour"); + } } function outsideReferenceDOM(audioObject,index,inject) @@ -406,6 +411,11 @@ { return false; }; + this.error = function() { + // audioObject has an error!! + this.outsideReferenceHolder.textContent = "Error"; + $(this.outsideReferenceHolder).addClass("error-colour"); + } } function resizeWindow(event)