Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(96)

Side by Side Diff: chrome/test/data/media/mse_config_change.html

Issue 182113005: Update EME browser tests to include EME WD (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Cleanup Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/test/data/media/encrypted_media_utils.js ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <html> 1 <html>
2 <head> 2 <head>
3 <title>Test media source config changes.</title> 3 <title>Test media source config changes.</title>
4 </head> 4 </head>
5 <body onload="runTest();"> 5 <body onload="runTest();">
6 <video controls></video> 6 <video controls></video>
7 <script src="media_utils.js" type="text/javascript"></script> 7 <script src="media_utils.js" type="text/javascript"></script>
8 <script src="media_source_utils.js" type="text/javascript"></script> 8 <script src="media_source_utils.js" type="text/javascript"></script>
9 <script src="encrypted_media_utils.js" type="text/javascript"></script> 9 <script src="encrypted_media_utils.js" type="text/javascript"></script>
10 <script type="text/javascript"> 10 <script type="text/javascript">
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 console.log('video.currentTime = ' + video.currentTime + 113 console.log('video.currentTime = ' + video.currentTime +
114 ', video dimensions = ' + video.videoWidth + 'x' + 114 ', video dimensions = ' + video.videoWidth + 'x' +
115 video.videoHeight + '.'); 115 video.videoHeight + '.');
116 } 116 }
117 117
118 function runTest() { 118 function runTest() {
119 video.addEventListener('timeupdate', onTimeUpdate); 119 video.addEventListener('timeupdate', onTimeUpdate);
120 video.addEventListener('ended', failTest); 120 video.addEventListener('ended', failTest);
121 if (runEncrypted) { 121 if (runEncrypted) {
122 loadEncryptedMedia(video, MEDIA_1, keySystem, KEY, true, 122 loadEncryptedMedia(video, MEDIA_1, keySystem, KEY, true,
123 appendNextSource); 123 usePrefixedEME, appendNextSource);
124 } else { 124 } else {
125 var mediaSource = loadMediaSource(MEDIA_1, mediaType, 125 var mediaSource = loadMediaSource(MEDIA_1, mediaType,
126 appendNextSource); 126 appendNextSource);
127 video.src = window.URL.createObjectURL(mediaSource); 127 video.src = window.URL.createObjectURL(mediaSource);
128 } 128 }
129 } 129 }
130 </script> 130 </script>
131 </body> 131 </body>
132 </html> 132 </html>
OLDNEW
« no previous file with comments | « chrome/test/data/media/encrypted_media_utils.js ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698