comparison 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
comparison
equal deleted inserted replaced
1204:96acb21e1cd5 1205:0e49d874ba97
341 }; 341 };
342 this.canMove = function() 342 this.canMove = function()
343 { 343 {
344 return true; 344 return true;
345 }; 345 };
346 this.error = function() {
347 // audioObject has an error!!
348 this.playback.textContent = "Error";
349 $(this.playback).addClass("error-colour");
350 }
346 } 351 }
347 352
348 function outsideReferenceDOM(audioObject,index,inject) 353 function outsideReferenceDOM(audioObject,index,inject)
349 { 354 {
350 this.parent = audioObject; 355 this.parent = audioObject;
404 }; 409 };
405 this.canMove = function() 410 this.canMove = function()
406 { 411 {
407 return false; 412 return false;
408 }; 413 };
414 this.error = function() {
415 // audioObject has an error!!
416 this.outsideReferenceHolder.textContent = "Error";
417 $(this.outsideReferenceHolder).addClass("error-colour");
418 }
409 } 419 }
410 420
411 function resizeWindow(event) 421 function resizeWindow(event)
412 { 422 {
413 // Function called when the window has been resized. 423 // Function called when the window has been resized.