<!doctype html><html><head><metacharset=utf-8><metaname="timeout"content="long"><title>Encrypted Media Extensions: Successful Playback, alternate Encrypted and Clear playbacks, Temporary, mp4, Clear Key</title><linkrel="help"href="https://w3c.github.io/encrypted-media/"><!-- Web Platform Test Harness scripts --><scriptsrc=/resources/testharness.js></script><scriptsrc=/resources/testharnessreport.js></script><!-- Helper scripts for Encrypted Media Extensions tests --><scriptsrc=/encrypted-media/util/utils.js></script><scriptsrc=/encrypted-media/util/testmediasource.js></script><scriptsrc=/encrypted-media/util/utf8.js></script><!-- Content metadata --><scriptsrc=/encrypted-media/content/content-metadata.js></script><!-- Message handler for Clear Key keysystem --><scriptsrc=/encrypted-media/util/clearkey-messagehandler.js></script><!-- The script for this specific test --><scriptsrc=/encrypted-media/scripts/playback-temporary-encrypted-clear-sources.js></script></head><body><divid='log'></div><divid='video'><videoid="videoelement"width="200px"></video></div><script>varencryptedcontentitem=content['mp4-basic'],clearcontentitem=content['mp4-clear'],handler=newMessageHandler('org.w3.clearkey',encryptedcontentitem),configEncrypted={video:document.getElementById('videoelement'),keysystem:'org.w3.clearkey',messagehandler:handler.messagehandler,audioPath:encryptedcontentitem.audio.path,videoPath:encryptedcontentitem.video.path,audioType:encryptedcontentitem.audio.type,videoType:encryptedcontentitem.video.type,initDataType:'keyids',initData:getInitData(encryptedcontentitem,'keyids'),},configClear={audioPath:clearcontentitem.audio.path,videoPath:clearcontentitem.video.path,audioType:clearcontentitem.audio.type,videoType:clearcontentitem.video.type,};runTest(configEncrypted,configClear);</script></body></html>