Mercurial > hg > human-echolocation-java-webapp
comparison WebContent/index.jsp @ 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 | 65a26b38bf43 |
children | 55ce07768e33 |
comparison
equal
deleted
inserted
replaced
55:2225ef49d9a0 | 56:9be81b43142b |
---|---|
86 </form> | 86 </form> |
87 | 87 |
88 <div class="player"> | 88 <div class="player"> |
89 <c:choose> | 89 <c:choose> |
90 <c:when test="${distSet==true}"> | 90 <c:when test="${distSet==true}"> |
91 <embed src="/echoapp/HumanEcho?dist=<c:out value="${dist}"/>&azim=<c:out value="${azim}"/>&dirweight=<c:out value="${dirweight}"/>&orient=<c:out value="${orient}"/>" type="audio/x-wav"/> | 91 <audio src="/echoapp/HumanEcho?dist=<c:out value="${dist}"/>&azim=<c:out value="${azim}"/>&dirweight=<c:out value="${dirweight}"/>&orient=<c:out value="${orient}"/>" id="generated" controls preload="yes" autobuffer></audio> |
92 </c:when> | 92 </c:when> |
93 <c:otherwise> | 93 <c:otherwise> |
94 <c:out value="Please set the distance parameter and select 'Generate audio'"/> | 94 <c:out value="Please set the distance parameter and select 'Generate audio'"/> |
95 </c:otherwise> | 95 </c:otherwise> |
96 </c:choose> | 96 </c:choose> |