We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9721bcc commit 7f08b50Copy full SHA for 7f08b50
1 file changed
README.md
@@ -142,7 +142,19 @@ You can control the license and certificate request processes by providing the f
142
getCertificate: function(emeOptions, callback) {
143
// request certificate
144
// if err, callback(err)
145
- // if success, callback(null, certificate)
+ // if success, callback(null, certificate) as Uint8Array
146
+
147
+ // example:
148
+ videojs.xhr({
149
+ uri: "<CERTIFICATE_URL>",
150
+ responseType: 'arraybuffer',
151
+ }, function (err, response, responseBody) {
152
+ if (err) {
153
+ callback(err);
154
+ return;
155
+ }
156
+ callback(null, new Uint8Array(responseBody));
157
+ });
158
},
159
getContentId: function(emeOptions, initData) {
160
// return content ID
0 commit comments