We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
licenseXhrSetup
1 parent 6623ec2 commit c6d7b52Copy full SHA for c6d7b52
docs/API.md
@@ -1234,9 +1234,12 @@ var config = {
1234
xhr.setRequestHeader('Content-Type', 'application/octet-stream');
1235
}
1236
1237
- // Return the desired payload or a Promise<Uint8Array|void>
1238
- // return Promise.resolve(payload);
1239
- return payload;
+ // Return the desired payload or a Promise<Uint8Array>.
+ // Not returning a value, or returning `undefined` or` Promise<void>` will result in the `licenseChallenge` being used.
+ return fetchDRMToken(this.authData).then((result) => {
1240
+ xhr.setRequestHeader('token', token);
1241
+ return payload;
1242
+ });
1243
},
1244
};
1245
```
0 commit comments