Chromium Code Reviews| OLD | NEW |
|---|---|
| (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> | |
| OLD | NEW |