Skip to content

Commit

Permalink
Add type annotation & example for README about fps
Browse files Browse the repository at this point in the history
  • Loading branch information
AknEp committed May 1, 2020
1 parent 9721bcc commit 7f08b50
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,19 @@ You can control the license and certificate request processes by providing the f
getCertificate: function(emeOptions, callback) {
// request certificate
// if err, callback(err)
// if success, callback(null, certificate)
// if success, callback(null, certificate) as Uint8Array

// example:
videojs.xhr({
uri: "<CERTIFICATE_URL>",
responseType: 'arraybuffer',
}, function (err, response, responseBody) {
if (err) {
callback(err);
return;
}
callback(null, new Uint8Array(responseBody));
});
},
getContentId: function(emeOptions, initData) {
// return content ID
Expand Down

0 comments on commit 7f08b50

Please sign in to comment.