Skip to content

Commit 7bb395d

Browse files
wvanhaevretvanlaerhoven
authored andcommitted
Add MediaKindDRMConfiguration
1 parent ad0926f commit 7bb395d

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
import type { DRMConfiguration } from 'react-native-theoplayer';
2+
3+
/**
4+
* The identifier of the MediaKind integration.
5+
*/
6+
export type MediaKindIntegrationID = 'customMediaKindDrm';
7+
8+
/**
9+
* Describes the configuration of the MediaKind DRM integration.
10+
*
11+
* ```
12+
* const drmConfiguration = {
13+
* integration : 'mediakind',
14+
* fairplay: {
15+
* certificateURL: 'yourMediaKindCertificateUrl',
16+
* licenseAcquisitionURL: 'yourMediaKindLicenseAcquisitionURL'
17+
* }
18+
* }
19+
* ```
20+
*/
21+
export interface MediaKindDrmConfiguration extends DRMConfiguration {
22+
/**
23+
* The identifier of the DRM integration.
24+
*/
25+
integration: MediaKindIntegrationID;
26+
}

0 commit comments

Comments
 (0)