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

Unified Diff: android_webview/javatests/src/org/chromium/android_webview/test/KeySystemTest.java

Issue 2652373002: EME: Fail requestMediaKeySystemAccess if no capabilities specified (Closed)
Patch Set: multiple Android codecs Created 3 years, 11 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
Index: android_webview/javatests/src/org/chromium/android_webview/test/KeySystemTest.java
diff --git a/android_webview/javatests/src/org/chromium/android_webview/test/KeySystemTest.java b/android_webview/javatests/src/org/chromium/android_webview/test/KeySystemTest.java
index 69e1ce416fd7a642bb954a7347a7c4ecbafcc148..2db7d592cc164ce206ddfcc985ebac8b7a37dd65 100644
--- a/android_webview/javatests/src/org/chromium/android_webview/test/KeySystemTest.java
+++ b/android_webview/javatests/src/org/chromium/android_webview/test/KeySystemTest.java
@@ -64,8 +64,13 @@ public class KeySystemTest extends AwTestBase {
+ " result = error.name;"
+ "}"
+ "function isKeySystemSupported(keySystem) {"
- + " navigator.requestMediaKeySystemAccess(keySystem, [{}]).then("
- + " success, failure);"
+ + " navigator.requestMediaKeySystemAccess("
+ + " keySystem, "
+ + " [{audioCapabilities:"
+ + " [{contentType: 'audio/webm; codec=\"vorbis\"'}]}, "
+ + " {videoCapabilities:"
+ + " [{contentType: 'video/mp4; codecs=\"avc1.4D000C\"'}]}])"
+ + " .then(success, failure);"
xhwang 2017/02/02 18:31:20 Please add a comment why we need two here. I'll be
jrummell 2017/02/02 20:03:24 Done.
+ "}"
+ "function areProprietaryCodecsSupported() {"
+ " var video = document.createElement('video');"
« no previous file with comments | « no previous file | media/blink/key_system_config_selector.cc » ('j') | media/blink/key_system_config_selector_unittest.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698