blob: b9cd37f5f076d1242672b2aa6dd311ce17164ce8 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<title>audio-session-category-track-change</title>
<script src="../../../media/video-test.js"></script>
<script src="../../../media/media-file.js"></script>
<script>
function go() {
audio = video = mediaElement = document.querySelector('audio');
run('internals.settings.setShouldManageAudioSessionCategory(true)');
run('audio.autoplay = true');
run('audio.src = findMediaFile("audio", "../../../media/content/test")');
waitForEvent('playing', playing);
}
async function playing() {
await testExpectedEventually('internals.audioSessionCategory()', 'MediaPlayback');
endTest();
}
</script>
</head>
<body onload="go()">
<audio controls></audio>
</body>
</html>