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

Unified Diff: android_webview/test/shell/assets/key-system-test.html

Issue 2741943003: Fix KeySystemTests on Android (Closed)
Patch Set: changes (+rebase) Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « android_webview/javatests/src/org/chromium/android_webview/test/KeySystemTest.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: android_webview/test/shell/assets/key-system-test.html
diff --git a/android_webview/test/shell/assets/key-system-test.html b/android_webview/test/shell/assets/key-system-test.html
index 0de0b9f6ebc57c788e130487c938ab9826f10640..337b77de4e8da4ba3f421a88f5083bfcf2367c2b 100644
--- a/android_webview/test/shell/assets/key-system-test.html
+++ b/android_webview/test/shell/assets/key-system-test.html
@@ -14,20 +14,15 @@ function failure(error) {
}
function isKeySystemSupported(keySystem) {
- // requestMediaKeySystemAccess() provides 2 different configurations
- // as encrypted webm is only supported on Lollipop+. mp4 is proprietary,
- // and may not be supported on all Android devices.
+ // requestMediaKeySystemAccess() checks for video/mp4 support, so this
+ // is only available if proprietary codecs are enabled.
navigator
.requestMediaKeySystemAccess(
keySystem,
[
{
- audioCapabilities :
- [ {contentType : 'audio/webm; codec=\"vorbis\"'} ]
- },
- {
videoCapabilities :
- [ {contentType : 'video/mp4; codecs=\"avc1.4D000C\"'} ]
+ [ {contentType : 'video/mp4; codecs=avc1.4D000C'} ]
}
])
.then(success, failure);
@@ -35,7 +30,7 @@ function isKeySystemSupported(keySystem) {
function areProprietaryCodecsSupported() {
var video = document.createElement('video');
- return video.canPlayType('video/mp4; codecs=\"avc1\"');
+ return video.canPlayType('video/mp4; codecs=avc1');
}
</script>
« no previous file with comments | « android_webview/javatests/src/org/chromium/android_webview/test/KeySystemTest.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698