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 |
new file mode 100644 |
index 0000000000000000000000000000000000000000..be7d91ec0207829febd34b441d1286e95792b587 |
--- /dev/null |
+++ b/android_webview/test/shell/assets/key-system-test.html |
@@ -0,0 +1,27 @@ |
+<!DOCTYPE html> |
+ |
+<html> |
+<script> |
+ |
+var result; |
+ |
+function success(keySystemAccess) { |
+ result = 'supported'; |
+} |
+ |
+function failure(error) { |
+ result = error.name; |
+} |
+ |
+function isKeySystemSupported(keySystem) { |
+ navigator.requestMediaKeySystemAccess(keySystem, [{}]) |
jrummell
2017/02/06 21:08:21
You might want to change the empty configuration t
xhwang
2017/02/06 21:51:01
Done.
|
+ .then(success, failure); |
+} |
+ |
+function areProprietaryCodecsSupported() { |
+ var video = document.createElement('video'); |
+ return video.canPlayType('video/mp4; codecs=\"avc1\"'); |
+} |
+ |
+</script> |
+</html> |