Mercurial > hg > webaudioevaluationtool
comparison interfaces/ape.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 | da8b22838465 |
children | aa55372146a0 |
comparison
equal
deleted
inserted
replaced
545:ada2ec131505 | 546:df2d916fd9cf |
---|---|
642 }; | 642 }; |
643 this.canMove = function() | 643 this.canMove = function() |
644 { | 644 { |
645 return true; | 645 return true; |
646 }; | 646 }; |
647 this.error = function() { | |
648 // audioObject has an error!! | |
649 this.playback.textContent = "Error"; | |
650 $(this.playback).addClass("error-colour"); | |
651 } | |
647 } | 652 } |
648 | 653 |
649 function outsideReferenceDOM(audioObject,index,inject) | 654 function outsideReferenceDOM(audioObject,index,inject) |
650 { | 655 { |
651 this.parent = audioObject; | 656 this.parent = audioObject; |
711 }; | 716 }; |
712 this.canMove = function() | 717 this.canMove = function() |
713 { | 718 { |
714 return false; | 719 return false; |
715 }; | 720 }; |
721 this.error = function() { | |
722 // audioObject has an error!! | |
723 this.outsideReferenceHolder.textContent = "Error"; | |
724 $(this.outsideReferenceHolder).addClass("error-colour"); | |
725 } | |
716 } | 726 } |
717 | 727 |
718 function buttonSubmitClick() | 728 function buttonSubmitClick() |
719 { | 729 { |
720 var checks = []; | 730 var checks = []; |