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

Side by Side Diff: media/test/data/test_key_system_instantiation.html

Issue 1837963004: Make CanPlayType return "probably" for HI10P h264 videos. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments addressed Created 4 years, 8 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
OLDNEW
1 <html> 1 <html>
2 <body> 2 <body>
3 <script type="text/javascript"> 3 <script type="text/javascript">
4 // Since promises run asynchronously, use the pages title to keep track 4 // Since promises run asynchronously, use the pages title to keep track
5 // of the result. 5 // of the result.
6 function setResultInTitle(title) { 6 function setResultInTitle(title) {
7 document.title = title; 7 if (title == "" || title == "success" ||
8 title == "Unsupported keySystem" ||
9 title == "None of the requested configurations were supported.") {
10 document.title = title;
11 } else {
12 console.log("Result: " + title);
13 document.title = "failure";
14 }
8 }; 15 };
9 16
10 // Compares 2 arrays of MediaKeySystemMediaCapability, comparing only 17 // Compares 2 arrays of MediaKeySystemMediaCapability, comparing only
11 // |contentType|. This assumes the order is the same. Returns "success" 18 // |contentType|. This assumes the order is the same. Returns "success"
12 // if they match, an error message if they don't. 19 // if they match, an error message if they don't.
13 function verifyCapabilitiesAreEqual(actual, expected) { 20 function verifyCapabilitiesAreEqual(actual, expected) {
14 if (actual.length != expected.length) 21 if (actual.length != expected.length)
15 return "mismatched lengths"; 22 return "mismatched lengths";
16 for (var i = 0; i < actual.length; i++) { 23 for (var i = 0; i < actual.length; i++) {
17 // Only compare |contentType|. Other properties are ignored. 24 // Only compare |contentType|. Other properties are ignored.
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 88
82 function checkKeySystemWithMediaMimeType(keySystem, initDataType, 89 function checkKeySystemWithMediaMimeType(keySystem, initDataType,
83 audioCodecList, videoCodecList) { 90 audioCodecList, videoCodecList) {
84 setResultInTitle(""); 91 setResultInTitle("");
85 requestMediaKeySystemAccessAndVerifyConfiguration( 92 requestMediaKeySystemAccessAndVerifyConfiguration(
86 keySystem, initDataType, audioCodecList, videoCodecList); 93 keySystem, initDataType, audioCodecList, videoCodecList);
87 }; 94 };
88 </script> 95 </script>
89 </body> 96 </body>
90 </html> 97 </html>
OLDNEW
« media/base/mime_util_internal.cc ('K') | « media/base/mime_util_internal.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698