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

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

Issue 2678433003: media: Require SecureContext for EME APIs (Closed)
Patch Set: Created 3 years, 10 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
(Empty)
1 <!DOCTYPE html>
2
3 <html>
4 <script>
5
6 var result;
7
8 function success(keySystemAccess) {
9 result = 'supported';
10 }
11
12 function failure(error) {
13 result = error.name;
14 }
15
16 function isKeySystemSupported(keySystem) {
17 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.
18 .then(success, failure);
19 }
20
21 function areProprietaryCodecsSupported() {
22 var video = document.createElement('video');
23 return video.canPlayType('video/mp4; codecs=\"avc1\"');
24 }
25
26 </script>
27 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698