react-native-theoplayer
Version:
A THEOplayer video component for react-native.
11 lines (8 loc) • 641 B
text/typescript
import type { ContentProtectionAPI, ContentProtectionIntegrationFactory, KeySystemId } from 'react-native-theoplayer';
import { registerContentProtectionIntegration, KeySystemId as NativeKeySystemId } from 'theoplayer';
export class WebContentProtectionRegistry implements ContentProtectionAPI {
registerContentProtectionIntegration(integrationId: string, keySystem: KeySystemId, integrationFactory: ContentProtectionIntegrationFactory): void {
registerContentProtectionIntegration(integrationId, keySystem as NativeKeySystemId, integrationFactory);
}
}
export const ContentProtectionRegistry = new WebContentProtectionRegistry();