comparison interfaces/mushra.js @ 2113:d2abe3b139d2

Interfaces report error if audio cannot be loaded/decoded/played
author Nicholas Jillings <nickjillings@users.noreply.github.com>
date Mon, 22 Feb 2016 15:48:28 +0000
parents eba6139c6f85
children 943b0ba7ec83
comparison
equal deleted inserted replaced
2112:705025e30784 2113:d2abe3b139d2
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.