-
-
Save peaBerberian/d3e700dae4422b6c7c81d6fec4d32c6e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| navigator.requestMediaKeySystemAccess("com.microsoft.playready", [ | |
| { | |
| "initDataTypes":["cenc"], | |
| "videoCapabilities": [ | |
| { "contentType": "video/mp4;codecs=\"avc1.4d401e\"" }, | |
| { "contentType":"video/mp4;codecs=\"avc1.42e01e\"" }, | |
| { "contentType":"video/webm;codecs=\"vp8\"" } | |
| ], | |
| "audioCapabilities": [ | |
| { "contentType":"audio/mp4;codecs=\"mp4a.40.2\"" }, | |
| { "contentType":"audio/webm;codecs=opus" } | |
| ], | |
| "distinctiveIdentifier":"optional", | |
| "persistentState":"optional", | |
| "sessionTypes":["temporary"] | |
| }, | |
| ]).then( | |
| () => { console.log("com.microsoft.playready: it works"); }, | |
| () => { console.log("com.microsoft.playready: it failed"); } | |
| ); | |
| navigator.requestMediaKeySystemAccess("com.microsoft.playready.software", [ | |
| { | |
| "initDataTypes":["cenc"], | |
| "videoCapabilities": [ | |
| { "contentType": "video/mp4;codecs=\"avc1.4d401e\"" }, | |
| { "contentType":"video/mp4;codecs=\"avc1.42e01e\"" }, | |
| { "contentType":"video/webm;codecs=\"vp8\"" } | |
| ], | |
| "audioCapabilities": [ | |
| { "contentType":"audio/mp4;codecs=\"mp4a.40.2\"" }, | |
| { "contentType":"audio/webm;codecs=opus" } | |
| ], | |
| "distinctiveIdentifier":"optional", | |
| "persistentState":"optional", | |
| "sessionTypes":["temporary"] | |
| }, | |
| ]).then( | |
| () => { console.log("com.microsoft.playready.software: it works"); }, | |
| () => { console.log("com.microsoft.playready.software: it failed"); } | |
| ); | |
| navigator.requestMediaKeySystemAccess("com.chromecast.playready", [ | |
| { | |
| "initDataTypes":["cenc"], | |
| "videoCapabilities": [ | |
| { "contentType": "video/mp4;codecs=\"avc1.4d401e\"" }, | |
| { "contentType":"video/mp4;codecs=\"avc1.42e01e\"" }, | |
| { "contentType":"video/webm;codecs=\"vp8\"" } | |
| ], | |
| "audioCapabilities": [ | |
| { "contentType":"audio/mp4;codecs=\"mp4a.40.2\"" }, | |
| { "contentType":"audio/webm;codecs=opus" } | |
| ], | |
| "distinctiveIdentifier":"optional", | |
| "persistentState":"optional", | |
| "sessionTypes":["temporary"] | |
| }, | |
| ]).then( | |
| () => { console.log("com.chromecast.playready: it works"); }, | |
| () => { console.log("com.chromecast.playready: it failed"); } | |
| ); | |
| navigator.requestMediaKeySystemAccess("com.youtube.playready", [ | |
| { | |
| "initDataTypes":["cenc"], | |
| "videoCapabilities": [ | |
| { "contentType": "video/mp4;codecs=\"avc1.4d401e\"" }, | |
| { "contentType":"video/mp4;codecs=\"avc1.42e01e\"" }, | |
| { "contentType":"video/webm;codecs=\"vp8\"" } | |
| ], | |
| "audioCapabilities": [ | |
| { "contentType":"audio/mp4;codecs=\"mp4a.40.2\"" }, | |
| { "contentType":"audio/webm;codecs=opus" } | |
| ], | |
| "distinctiveIdentifier":"optional", | |
| "persistentState":"optional", | |
| "sessionTypes":["temporary"] | |
| }, | |
| ]).then( | |
| () => { console.log("com.youtube.playready: it works"); }, | |
| () => { console.log("com.youtube.playready: it failed"); } | |
| ); | |
| navigator.requestMediaKeySystemAccess("com.widevine.alpha", [ | |
| { | |
| "initDataTypes":["cenc"], | |
| "videoCapabilities": [ | |
| { "contentType": "video/mp4;codecs=\"avc1.4d401e\"" }, | |
| { "contentType":"video/mp4;codecs=\"avc1.42e01e\"" }, | |
| { "contentType":"video/webm;codecs=\"vp8\"" } | |
| ], | |
| "audioCapabilities": [ | |
| { "contentType":"audio/mp4;codecs=\"mp4a.40.2\"" }, | |
| { "contentType":"audio/webm;codecs=opus" } | |
| ], | |
| "distinctiveIdentifier":"optional", | |
| "persistentState":"optional", | |
| "sessionTypes":["temporary"] | |
| }, | |
| ]).then( | |
| () => { console.log("com.widevine.alpha: it works"); }, | |
| () => { console.log("com.widevine.alpha: it failed"); } | |
| ); | |
| navigator.requestMediaKeySystemAccess("com.widevine.alpha", [ | |
| { | |
| "initDataTypes":["cenc"], | |
| "videoCapabilities": [], | |
| "audioCapabilities": [], | |
| "distinctiveIdentifier":"optional", | |
| "persistentState":"optional", | |
| "sessionTypes":["temporary"] | |
| }, | |
| ]).then( | |
| () => { console.log("com.widevine.alpha legacy: it works"); }, | |
| () => { console.log("com.widevine.alpha legacy: it failed"); } | |
| ); | |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Si ils sont tous en mode "NAME: it failed" -> EME non supporte
Si au moins un est en mode "NAME: it works" -> EME supporte