changeset 56:9be81b43142b

Use an HTML5 audio element rather than an embed (works in Firefox/Chrome)
author Chris Cannam
date Mon, 03 Mar 2014 16:27:56 +0000
parents 2225ef49d9a0
children 438e14fb3e71 55ce07768e33
files WebContent/index.jsp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/WebContent/index.jsp	Mon Mar 03 15:37:09 2014 +0000
+++ b/WebContent/index.jsp	Mon Mar 03 16:27:56 2014 +0000
@@ -88,7 +88,7 @@
     <div class="player">
       <c:choose>
         <c:when test="${distSet==true}">
-          <embed src="/echoapp/HumanEcho?dist=<c:out value="${dist}"/>&amp;azim=<c:out value="${azim}"/>&amp;dirweight=<c:out value="${dirweight}"/>&amp;orient=<c:out value="${orient}"/>" type="audio/x-wav"/>
+          <audio src="/echoapp/HumanEcho?dist=<c:out value="${dist}"/>&amp;azim=<c:out value="${azim}"/>&amp;dirweight=<c:out value="${dirweight}"/>&amp;orient=<c:out value="${orient}"/>" id="generated" controls preload="yes" autobuffer></audio>
         </c:when>
         <c:otherwise>
           <c:out value="Please set the distance parameter and select 'Generate audio'"/>