1 <!-- Used by audio_playback_perf to verify audio recorded. -->
5 <title>Playback Test
</title>
8 <audio autoplay preload controls
></audio>
10 <script type=
"text/javascript">
12 function startTest(src
) {
13 var audio
= document
.querySelector('audio');
14 audio
.addEventListener('ended', function(evt
) {
17 audio
.addEventListener('error', function(evt
) {
18 error
= 'Error playing audio, code ' + evt
.target
.error
.code
;
21 // High volume can produce sound noise on some audio devices. This value
22 // may not be significant if audio device volume is controlled externally.
27 function end(status
) {
28 window
.domAutomationController
.send(status
);