react-native-theoplayer 11.6.0 → 11.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +38 -0
- package/README.md +69 -0
- package/android/build.gradle +3 -2
- package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/android/gradle/wrapper/gradle-wrapper.properties +1 -1
- package/android/gradlew +176 -110
- package/android/gradlew.bat +23 -18
- package/android/src/main/java/com/theoplayer/PlayerConfigAdapter.kt +6 -0
- package/android/src/main/java/com/theoplayer/PlayerEventEmitter.kt +2 -2
- package/android/src/main/java/com/theoplayer/ReactTHEOplayerContext.kt +37 -8
- package/android/src/main/java/com/theoplayer/ReactTHEOplayerPackage.kt +3 -0
- package/android/src/main/java/com/theoplayer/ReactTHEOplayerView.kt +51 -3
- package/android/src/main/java/com/theoplayer/ads/AdEventAdapter.kt +4 -0
- package/android/src/main/java/com/theoplayer/ads/AdsModule.kt +6 -6
- package/android/src/main/java/com/theoplayer/drm/ContentProtectionAdapter.kt +17 -5
- package/android/src/main/java/com/theoplayer/drm/ContentProtectionModule.kt +61 -7
- package/android/src/main/java/com/theoplayer/drm/ProxyContentProtectionIntegration.kt +12 -5
- package/android/src/main/java/com/theoplayer/drm/ProxyContentProtectionIntegrationFactory.kt +3 -1
- package/android/src/main/java/com/theoplayer/integration/Integration.kt +72 -0
- package/android/src/main/java/com/theoplayer/integration/IntegrationRegistration.kt +68 -0
- package/android/src/main/java/com/theoplayer/integration/PlayerFacade.kt +187 -0
- package/android/src/main/java/com/theoplayer/integration/PlayerFacadeAdState.kt +19 -0
- package/android/src/main/java/com/theoplayer/integration/PlayerFacadeAds.kt +73 -0
- package/android/src/main/java/com/theoplayer/integration/PlayerFacadeAdsBridge.kt +112 -0
- package/android/src/main/java/com/theoplayer/integration/PlayerFacadeEventSubscription.kt +11 -0
- package/android/src/main/java/com/theoplayer/integration/PlayerFacadeEvents.kt +139 -0
- package/android/src/main/java/com/theoplayer/metrics/MetricsModule.kt +37 -0
- package/android/src/main/java/com/theoplayer/theoads/THEOadsModule.kt +1 -1
- package/android/src/main/java/com/theoplayer/theolive/EndpointAdapter.kt +33 -0
- package/android/src/test/java/com/theoplayer/integration/PlayerFacadeAdsBridgeTest.kt +250 -0
- package/android/src/test/java/com/theoplayer/integration/PlayerFacadeConfigurationTest.kt +30 -0
- package/android/src/test/java/com/theoplayer/integration/PlayerFacadeTest.kt +507 -0
- package/android/src/test/java/com/theoplayer/integration/PlayerFacadeTestHost.kt +104 -0
- package/ios/THEOplayerRCTBridge.m +19 -0
- package/ios/THEOplayerRCTPlayerAPI.swift +31 -0
- package/ios/Theoplayer-Bridging-Header.h +0 -1
- package/ios/contentprotection/THEOplayerRCTContentProtectionAPI.swift +39 -9
- package/ios/contentprotection/THEOplayerRCTContentProtectionAggregator.swift +15 -11
- package/ios/contentprotection/THEOplayerRCTProxyContentProtectionIntegration.swift +12 -7
- package/ios/metrics/THEOplayerRCTMetricsAPI.swift +31 -0
- package/ios/theolive/THEOplayerRCTTHEOliveEventAdapter.swift +21 -0
- package/lib/commonjs/api/barrel.js +31 -20
- package/lib/commonjs/api/barrel.js.map +1 -1
- package/lib/commonjs/api/metrics/MetricsAPI.js +2 -0
- package/lib/commonjs/api/metrics/MetricsAPI.js.map +1 -0
- package/lib/commonjs/api/metrics/barrel.js +17 -0
- package/lib/commonjs/api/metrics/barrel.js.map +1 -0
- package/lib/commonjs/api/player/Integration.js +2 -0
- package/lib/commonjs/api/player/Integration.js.map +1 -0
- package/lib/commonjs/api/player/PlayerEventMap.js +1 -1
- package/lib/commonjs/api/player/THEOplayer.js.map +1 -1
- package/lib/commonjs/api/player/barrel.js +11 -0
- package/lib/commonjs/api/player/barrel.js.map +1 -1
- package/lib/commonjs/api/track/MediaTrack.js +16 -0
- package/lib/commonjs/api/track/MediaTrack.js.map +1 -1
- package/lib/commonjs/internal/THEOplayerView.js +2 -0
- package/lib/commonjs/internal/THEOplayerView.js.map +1 -1
- package/lib/commonjs/internal/THEOplayerView.web.js +3 -1
- package/lib/commonjs/internal/THEOplayerView.web.js.map +1 -1
- package/lib/commonjs/internal/adapter/DefaultNativePlayerState.js +1 -0
- package/lib/commonjs/internal/adapter/DefaultNativePlayerState.js.map +1 -1
- package/lib/commonjs/internal/adapter/THEOplayerAdapter.js +18 -0
- package/lib/commonjs/internal/adapter/THEOplayerAdapter.js.map +1 -1
- package/lib/commonjs/internal/adapter/THEOplayerWebAdapter.js +21 -4
- package/lib/commonjs/internal/adapter/THEOplayerWebAdapter.js.map +1 -1
- package/lib/commonjs/internal/adapter/WebEventForwarder.js +62 -11
- package/lib/commonjs/internal/adapter/WebEventForwarder.js.map +1 -1
- package/lib/commonjs/internal/adapter/metrics/MetricsNativeAdapter.js +18 -0
- package/lib/commonjs/internal/adapter/metrics/MetricsNativeAdapter.js.map +1 -0
- package/lib/commonjs/internal/adapter/metrics/MetricsWebAdapter.js +16 -0
- package/lib/commonjs/internal/adapter/metrics/MetricsWebAdapter.js.map +1 -0
- package/lib/commonjs/internal/adapter/web/IntegrationRegistration.js +6 -0
- package/lib/commonjs/internal/adapter/web/IntegrationRegistration.js.map +1 -0
- package/lib/commonjs/internal/adapter/web/PlayerFacade.js +258 -0
- package/lib/commonjs/internal/adapter/web/PlayerFacade.js.map +1 -0
- package/lib/commonjs/internal/adapter/web/PlayerFacadeAPI.js +6 -0
- package/lib/commonjs/internal/adapter/web/PlayerFacadeAPI.js.map +1 -0
- package/lib/commonjs/internal/adapter/web/PlayerFacadeAdsEvents.js +114 -0
- package/lib/commonjs/internal/adapter/web/PlayerFacadeAdsEvents.js.map +1 -0
- package/lib/commonjs/internal/adapter/web/PlayerFacadeIntegration.js +6 -0
- package/lib/commonjs/internal/adapter/web/PlayerFacadeIntegration.js.map +1 -0
- package/lib/commonjs/internal/adapter/web/PlayerFacadeTypes.js +6 -0
- package/lib/commonjs/internal/adapter/web/PlayerFacadeTypes.js.map +1 -0
- package/lib/commonjs/internal/drm/ContentProtectionRegistry.js +38 -12
- package/lib/commonjs/internal/drm/ContentProtectionRegistry.js.map +1 -1
- package/lib/commonjs/manifest.json +1 -1
- package/lib/commonjs/plugins/typedoc-platform-icons/package-lock.json +200 -58
- package/lib/commonjs/plugins/typedoc-platform-icons/package.json +1 -1
- package/lib/commonjs/plugins/typedoc-platform-icons/tsconfig.json +2 -1
- package/lib/module/api/barrel.js +1 -0
- package/lib/module/api/barrel.js.map +1 -1
- package/lib/module/api/metrics/MetricsAPI.js +2 -0
- package/lib/module/api/metrics/MetricsAPI.js.map +1 -0
- package/lib/module/api/metrics/barrel.js +4 -0
- package/lib/module/api/metrics/barrel.js.map +1 -0
- package/lib/module/api/player/Integration.js +2 -0
- package/lib/module/api/player/Integration.js.map +1 -0
- package/lib/module/api/player/PlayerEventMap.js +1 -1
- package/lib/module/api/player/THEOplayer.js.map +1 -1
- package/lib/module/api/player/barrel.js +1 -0
- package/lib/module/api/player/barrel.js.map +1 -1
- package/lib/module/api/track/MediaTrack.js +16 -0
- package/lib/module/api/track/MediaTrack.js.map +1 -1
- package/lib/module/internal/THEOplayerView.js +2 -0
- package/lib/module/internal/THEOplayerView.js.map +1 -1
- package/lib/module/internal/THEOplayerView.web.js +3 -1
- package/lib/module/internal/THEOplayerView.web.js.map +1 -1
- package/lib/module/internal/adapter/DefaultNativePlayerState.js +1 -0
- package/lib/module/internal/adapter/DefaultNativePlayerState.js.map +1 -1
- package/lib/module/internal/adapter/THEOplayerAdapter.js +18 -0
- package/lib/module/internal/adapter/THEOplayerAdapter.js.map +1 -1
- package/lib/module/internal/adapter/THEOplayerWebAdapter.js +21 -4
- package/lib/module/internal/adapter/THEOplayerWebAdapter.js.map +1 -1
- package/lib/module/internal/adapter/WebEventForwarder.js +62 -11
- package/lib/module/internal/adapter/WebEventForwarder.js.map +1 -1
- package/lib/module/internal/adapter/metrics/MetricsNativeAdapter.js +13 -0
- package/lib/module/internal/adapter/metrics/MetricsNativeAdapter.js.map +1 -0
- package/lib/module/internal/adapter/metrics/MetricsWebAdapter.js +11 -0
- package/lib/module/internal/adapter/metrics/MetricsWebAdapter.js.map +1 -0
- package/lib/module/internal/adapter/web/IntegrationRegistration.js +4 -0
- package/lib/module/internal/adapter/web/IntegrationRegistration.js.map +1 -0
- package/lib/module/internal/adapter/web/PlayerFacade.js +253 -0
- package/lib/module/internal/adapter/web/PlayerFacade.js.map +1 -0
- package/lib/module/internal/adapter/web/PlayerFacadeAPI.js +4 -0
- package/lib/module/internal/adapter/web/PlayerFacadeAPI.js.map +1 -0
- package/lib/module/internal/adapter/web/PlayerFacadeAdsEvents.js +109 -0
- package/lib/module/internal/adapter/web/PlayerFacadeAdsEvents.js.map +1 -0
- package/lib/module/internal/adapter/web/PlayerFacadeIntegration.js +4 -0
- package/lib/module/internal/adapter/web/PlayerFacadeIntegration.js.map +1 -0
- package/lib/module/internal/adapter/web/PlayerFacadeTypes.js +4 -0
- package/lib/module/internal/adapter/web/PlayerFacadeTypes.js.map +1 -0
- package/lib/module/internal/drm/ContentProtectionRegistry.js +38 -12
- package/lib/module/internal/drm/ContentProtectionRegistry.js.map +1 -1
- package/lib/module/manifest.json +1 -1
- package/lib/module/plugins/typedoc-platform-icons/package-lock.json +200 -58
- package/lib/module/plugins/typedoc-platform-icons/package.json +1 -1
- package/lib/module/plugins/typedoc-platform-icons/tsconfig.json +2 -1
- package/lib/typescript/__tests__/ContentProtectionRegistry.test.d.ts +2 -0
- package/lib/typescript/__tests__/ContentProtectionRegistry.test.d.ts.map +1 -0
- package/lib/typescript/__tests__/PlayerFacade.test.d.ts +2 -0
- package/lib/typescript/__tests__/PlayerFacade.test.d.ts.map +1 -0
- package/lib/typescript/__tests__/PlayerFacadeWebAdapter.test.d.ts +2 -0
- package/lib/typescript/__tests__/PlayerFacadeWebAdapter.test.d.ts.map +1 -0
- package/lib/typescript/__tests__/index.test.d.ts +13 -0
- package/lib/typescript/__tests__/index.test.d.ts.map +1 -1
- package/lib/typescript/api/THEOplayerView.d.ts +4 -0
- package/lib/typescript/api/THEOplayerView.d.ts.map +1 -1
- package/lib/typescript/api/barrel.d.ts +1 -0
- package/lib/typescript/api/barrel.d.ts.map +1 -1
- package/lib/typescript/api/config/PlayerConfiguration.d.ts +15 -0
- package/lib/typescript/api/config/PlayerConfiguration.d.ts.map +1 -1
- package/lib/typescript/api/error/ChromecastError.d.ts +2 -2
- package/lib/typescript/api/event/AdEvent.d.ts +1 -1
- package/lib/typescript/api/metrics/MetricsAPI.d.ts +21 -0
- package/lib/typescript/api/metrics/MetricsAPI.d.ts.map +1 -0
- package/lib/typescript/api/metrics/barrel.d.ts +2 -0
- package/lib/typescript/api/metrics/barrel.d.ts.map +1 -0
- package/lib/typescript/api/player/Integration.d.ts +88 -0
- package/lib/typescript/api/player/Integration.d.ts.map +1 -0
- package/lib/typescript/api/player/PlayerEventMap.d.ts +1 -1
- package/lib/typescript/api/player/THEOplayer.d.ts +19 -0
- package/lib/typescript/api/player/THEOplayer.d.ts.map +1 -1
- package/lib/typescript/api/player/barrel.d.ts +1 -0
- package/lib/typescript/api/player/barrel.d.ts.map +1 -1
- package/lib/typescript/api/theoads/interstitial/Interstitial.d.ts +1 -1
- package/lib/typescript/api/theolive/TheoLiveEndpoint.d.ts +23 -5
- package/lib/typescript/api/theolive/TheoLiveEndpoint.d.ts.map +1 -1
- package/lib/typescript/api/theolive/WebrtcOptions.d.ts +1 -1
- package/lib/typescript/api/track/MediaTrack.d.ts +21 -4
- package/lib/typescript/api/track/MediaTrack.d.ts.map +1 -1
- package/lib/typescript/internal/adapter/DefaultNativePlayerState.d.ts +1 -0
- package/lib/typescript/internal/adapter/DefaultNativePlayerState.d.ts.map +1 -1
- package/lib/typescript/internal/adapter/NativePlayerState.d.ts +1 -0
- package/lib/typescript/internal/adapter/NativePlayerState.d.ts.map +1 -1
- package/lib/typescript/internal/adapter/THEOplayerAdapter.d.ts +6 -1
- package/lib/typescript/internal/adapter/THEOplayerAdapter.d.ts.map +1 -1
- package/lib/typescript/internal/adapter/THEOplayerWebAdapter.d.ts +6 -1
- package/lib/typescript/internal/adapter/THEOplayerWebAdapter.d.ts.map +1 -1
- package/lib/typescript/internal/adapter/WebEventForwarder.d.ts +3 -0
- package/lib/typescript/internal/adapter/WebEventForwarder.d.ts.map +1 -1
- package/lib/typescript/internal/adapter/metrics/MetricsNativeAdapter.d.ts +7 -0
- package/lib/typescript/internal/adapter/metrics/MetricsNativeAdapter.d.ts.map +1 -0
- package/lib/typescript/internal/adapter/metrics/MetricsWebAdapter.d.ts +8 -0
- package/lib/typescript/internal/adapter/metrics/MetricsWebAdapter.d.ts.map +1 -0
- package/lib/typescript/internal/adapter/web/IntegrationRegistration.d.ts +53 -0
- package/lib/typescript/internal/adapter/web/IntegrationRegistration.d.ts.map +1 -0
- package/lib/typescript/internal/adapter/web/PlayerFacade.d.ts +26 -0
- package/lib/typescript/internal/adapter/web/PlayerFacade.d.ts.map +1 -0
- package/lib/typescript/internal/adapter/web/PlayerFacadeAPI.d.ts +33 -0
- package/lib/typescript/internal/adapter/web/PlayerFacadeAPI.d.ts.map +1 -0
- package/lib/typescript/internal/adapter/web/PlayerFacadeAdsEvents.d.ts +21 -0
- package/lib/typescript/internal/adapter/web/PlayerFacadeAdsEvents.d.ts.map +1 -0
- package/lib/typescript/internal/adapter/web/PlayerFacadeIntegration.d.ts +43 -0
- package/lib/typescript/internal/adapter/web/PlayerFacadeIntegration.d.ts.map +1 -0
- package/lib/typescript/internal/adapter/web/PlayerFacadeTypes.d.ts +13 -0
- package/lib/typescript/internal/adapter/web/PlayerFacadeTypes.d.ts.map +1 -0
- package/lib/typescript/internal/drm/ContentProtectionRegistry.d.ts +3 -1
- package/lib/typescript/internal/drm/ContentProtectionRegistry.d.ts.map +1 -1
- package/lib/typescript/internal/drm/NativeContentProtectionEvent.d.ts +5 -0
- package/lib/typescript/internal/drm/NativeContentProtectionEvent.d.ts.map +1 -1
- package/package.json +5 -6
- package/react-native-theoplayer.podspec +7 -7
- package/src/__tests__/ContentProtectionRegistry.test.ts +239 -0
- package/src/__tests__/PlayerFacade.test.ts +579 -0
- package/src/__tests__/PlayerFacadeWebAdapter.test.ts +193 -0
- package/src/__tests__/index.test.tsx +15 -1
- package/src/api/THEOplayerView.ts +5 -0
- package/src/api/barrel.ts +1 -0
- package/src/api/config/PlayerConfiguration.ts +16 -0
- package/src/api/error/ChromecastError.ts +2 -2
- package/src/api/event/AdEvent.ts +1 -1
- package/src/api/metrics/MetricsAPI.ts +20 -0
- package/src/api/metrics/barrel.ts +1 -0
- package/src/api/player/Integration.ts +97 -0
- package/src/api/player/PlayerEventMap.ts +1 -1
- package/src/api/player/THEOplayer.ts +21 -0
- package/src/api/player/barrel.ts +1 -0
- package/src/api/theoads/interstitial/Interstitial.ts +1 -1
- package/src/api/theolive/TheoLiveEndpoint.ts +24 -5
- package/src/api/theolive/WebrtcOptions.ts +1 -1
- package/src/api/track/MediaTrack.ts +21 -4
- package/src/internal/THEOplayerView.tsx +2 -2
- package/src/internal/THEOplayerView.web.tsx +2 -2
- package/src/internal/adapter/DefaultNativePlayerState.ts +1 -0
- package/src/internal/adapter/NativePlayerState.ts +1 -0
- package/src/internal/adapter/THEOplayerAdapter.ts +24 -0
- package/src/internal/adapter/THEOplayerWebAdapter.ts +27 -4
- package/src/internal/adapter/WebEventForwarder.ts +74 -13
- package/src/internal/adapter/metrics/MetricsNativeAdapter.ts +12 -0
- package/src/internal/adapter/metrics/MetricsWebAdapter.ts +14 -0
- package/src/internal/adapter/web/IntegrationRegistration.ts +57 -0
- package/src/internal/adapter/web/PlayerFacade.ts +281 -0
- package/src/internal/adapter/web/PlayerFacadeAPI.ts +35 -0
- package/src/internal/adapter/web/PlayerFacadeAdsEvents.ts +119 -0
- package/src/internal/adapter/web/PlayerFacadeIntegration.ts +45 -0
- package/src/internal/adapter/web/PlayerFacadeTypes.ts +14 -0
- package/src/internal/drm/ContentProtectionRegistry.ts +35 -17
- package/src/internal/drm/NativeContentProtectionEvent.ts +5 -0
- package/src/manifest.json +1 -1
- package/src/plugins/typedoc-platform-icons/package-lock.json +200 -58
- package/src/plugins/typedoc-platform-icons/package.json +1 -1
- package/src/plugins/typedoc-platform-icons/tsconfig.json +2 -1
- package/lib/typescript/plugins/expo/Common.d.ts +0 -13
- package/lib/typescript/plugins/expo/Common.d.ts.map +0 -1
- package/lib/typescript/plugins/expo/withCustomPod.d.ts +0 -2
- package/lib/typescript/plugins/expo/withCustomPod.d.ts.map +0 -1
- package/lib/typescript/plugins/expo/withTHEOplayer.d.ts +0 -4
- package/lib/typescript/plugins/expo/withTHEOplayer.d.ts.map +0 -1
- package/lib/typescript/plugins/expo/withTHEOplayerAndroid.d.ts +0 -4
- package/lib/typescript/plugins/expo/withTHEOplayerAndroid.d.ts.map +0 -1
- package/lib/typescript/plugins/expo/withTHEOplayerIOS.d.ts +0 -4
- package/lib/typescript/plugins/expo/withTHEOplayerIOS.d.ts.map +0 -1
- package/lib/typescript/plugins/typedoc-platform-icons/src/index.d.ts +0 -3
- package/lib/typescript/plugins/typedoc-platform-icons/src/index.d.ts.map +0 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { AdEvent, Ads, AdsEventMap, EventDispatcher, PlayerEventMap } from 'theoplayer';
|
|
2
|
+
export type { IntegrationRegistration } from './IntegrationRegistration';
|
|
3
|
+
export type { PlayerFacadeAPI as PlayerFacade } from './PlayerFacadeAPI';
|
|
4
|
+
export type { PlayerFacadeIntegration } from './PlayerFacadeIntegration';
|
|
5
|
+
/** Advertising events supported by the facade, including integration-generated clicks. */
|
|
6
|
+
export type PlayerFacadeAdsEventMap = AdsEventMap & {
|
|
7
|
+
adclicked: AdEvent<'adclicked'>;
|
|
8
|
+
};
|
|
9
|
+
/** The Web Ads API with event subscriptions extended to support facade advertising events. */
|
|
10
|
+
export type PlayerFacadeAds = Omit<Ads, 'addEventListener' | 'removeEventListener'> & EventDispatcher<PlayerFacadeAdsEventMap>;
|
|
11
|
+
/** A native Web player or advertising event that an integration can dispatch through its registration. */
|
|
12
|
+
export type PlayerFacadeEvent = PlayerEventMap[keyof PlayerEventMap] | PlayerFacadeAdsEventMap[keyof PlayerFacadeAdsEventMap];
|
|
13
|
+
//# sourceMappingURL=PlayerFacadeTypes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PlayerFacadeTypes.d.ts","sourceRoot":"","sources":["../../../../../src/internal/adapter/web/PlayerFacadeTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,WAAW,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE7F,YAAY,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AACzE,YAAY,EAAE,eAAe,IAAI,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACzE,YAAY,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEzE,0FAA0F;AAC1F,MAAM,MAAM,uBAAuB,GAAG,WAAW,GAAG;IAAE,SAAS,EAAE,OAAO,CAAC,WAAW,CAAC,CAAA;CAAE,CAAC;AAExF,8FAA8F;AAC9F,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,GAAG,EAAE,kBAAkB,GAAG,qBAAqB,CAAC,GAAG,eAAe,CAAC,uBAAuB,CAAC,CAAC;AAE/H,0GAA0G;AAC1G,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,MAAM,cAAc,CAAC,GAAG,uBAAuB,CAAC,MAAM,uBAAuB,CAAC,CAAC"}
|
|
@@ -4,10 +4,11 @@ import type { ContentProtectionIntegrationFactory } from 'react-native-theoplaye
|
|
|
4
4
|
export declare class NativeContentProtectionRegistry implements ContentProtectionAPI {
|
|
5
5
|
private emitter;
|
|
6
6
|
private registeredFactories;
|
|
7
|
-
private
|
|
7
|
+
private integrations;
|
|
8
8
|
constructor();
|
|
9
9
|
registerContentProtectionIntegration(integrationId: string, keySystemId: KeySystemId, integrationFactory: ContentProtectionIntegrationFactory): void;
|
|
10
10
|
private getFactory;
|
|
11
|
+
private integrationKey;
|
|
11
12
|
private getIntegration;
|
|
12
13
|
private onBuildIntegrationRequest;
|
|
13
14
|
private onCertificateRequest;
|
|
@@ -15,6 +16,7 @@ export declare class NativeContentProtectionRegistry implements ContentProtectio
|
|
|
15
16
|
private onLicenseRequest;
|
|
16
17
|
private onLicenseResponse;
|
|
17
18
|
private onExtractFairplayContentId;
|
|
19
|
+
private onIntegrationDisposed;
|
|
18
20
|
}
|
|
19
21
|
/**
|
|
20
22
|
* The registry for adding custom content protection (DRM) integrations.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ContentProtectionRegistry.d.ts","sourceRoot":"","sources":["../../../../src/internal/drm/ContentProtectionRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAsB,oBAAoB,EAAoC,MAAM,yBAAyB,CAAC;AAC1H,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,yBAAyB,CAAC;AAgCnF,qBAAa,+BAAgC,YAAW,oBAAoB;IAC1E,OAAO,CAAC,OAAO,CAAqB;IACpC,OAAO,CAAC,mBAAmB,CAAoD;IAC/E,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"ContentProtectionRegistry.d.ts","sourceRoot":"","sources":["../../../../src/internal/drm/ContentProtectionRegistry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAsB,oBAAoB,EAAoC,MAAM,yBAAyB,CAAC;AAC1H,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,KAAK,EAAE,mCAAmC,EAAE,MAAM,yBAAyB,CAAC;AAgCnF,qBAAa,+BAAgC,YAAW,oBAAoB;IAC1E,OAAO,CAAC,OAAO,CAAqB;IACpC,OAAO,CAAC,mBAAmB,CAAoD;IAC/E,OAAO,CAAC,YAAY,CAA+D;;IAanF,oCAAoC,CAAC,aAAa,EAAE,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,kBAAkB,EAAE,mCAAmC;IAc7I,OAAO,CAAC,UAAU;IAQlB,OAAO,CAAC,cAAc;IAItB,OAAO,CAAC,cAAc;IAMtB,OAAO,CAAC,yBAAyB,CAiB/B;IAEF,OAAO,CAAC,oBAAoB,CAiB1B;IAEF,OAAO,CAAC,qBAAqB,CAY3B;IAEF,OAAO,CAAC,gBAAgB,CAkBtB;IAEF,OAAO,CAAC,iBAAiB,CAYvB;IAEF,OAAO,CAAC,0BAA0B,CAiBhC;IAEF,OAAO,CAAC,qBAAqB,CAE3B;CACH;AAED;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,EAAE,oBAA4D,CAAC"}
|
|
@@ -2,5 +2,10 @@ export interface NativeContentProtectionEvent {
|
|
|
2
2
|
requestId: string;
|
|
3
3
|
integrationId: string;
|
|
4
4
|
keySystemId: string;
|
|
5
|
+
/**
|
|
6
|
+
* Unique identifier of the native content protection integration instance that emitted the event.
|
|
7
|
+
* Absent on events emitted by native builds predating per-instance routing.
|
|
8
|
+
*/
|
|
9
|
+
integrationInstanceId?: string;
|
|
5
10
|
}
|
|
6
11
|
//# sourceMappingURL=NativeContentProtectionEvent.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NativeContentProtectionEvent.d.ts","sourceRoot":"","sources":["../../../../src/internal/drm/NativeContentProtectionEvent.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,4BAA4B;IAC3C,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"NativeContentProtectionEvent.d.ts","sourceRoot":"","sources":["../../../../src/internal/drm/NativeContentProtectionEvent.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,4BAA4B;IAC3C,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB;;;OAGG;IACH,qBAAqB,CAAC,EAAE,MAAM,CAAC;CAChC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-theoplayer",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.8.0",
|
|
4
4
|
"description": "A THEOplayer video component for react-native.",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -70,17 +70,16 @@
|
|
|
70
70
|
"react": "^19.2.3",
|
|
71
71
|
"react-native": "^0.86.2",
|
|
72
72
|
"react-native-builder-bob": "^0.39.1",
|
|
73
|
-
"theoplayer": "^11.
|
|
74
|
-
"typedoc": "^0.
|
|
75
|
-
"typedoc-plugin-
|
|
76
|
-
"typedoc-plugin-mdn-links": "^3.3.4",
|
|
73
|
+
"theoplayer": "^11.14.0",
|
|
74
|
+
"typedoc": "^0.28.20",
|
|
75
|
+
"typedoc-plugin-mdn-links": "^5.1.1",
|
|
77
76
|
"typescript": "5.1.6",
|
|
78
77
|
"typescript-eslint": "^8.30.1"
|
|
79
78
|
},
|
|
80
79
|
"peerDependencies": {
|
|
81
80
|
"react": "*",
|
|
82
81
|
"react-native": "*",
|
|
83
|
-
"theoplayer": "^11.
|
|
82
|
+
"theoplayer": "^11.14.0"
|
|
84
83
|
},
|
|
85
84
|
"peerDependenciesMeta": {
|
|
86
85
|
"theoplayer": {
|
|
@@ -35,7 +35,7 @@ Pod::Spec.new do |s|
|
|
|
35
35
|
s.platforms = { :ios => "15.0", :tvos => "15.0" }
|
|
36
36
|
s.source = { :git => "https://www.theoplayer.com/.git", :tag => "#{s.version}" }
|
|
37
37
|
|
|
38
|
-
s.source_files = 'ios/*.{h,m,swift}', 'ios/ads/*.swift', 'ios/casting/*.swift', 'ios/contentprotection/*.swift', 'ios/pip/*.swift', 'ios/backgroundAudio/*.swift', 'ios/cache/*.swift', 'ios/sideloadedMetadata/*.swift', 'ios/eventBroadcasting/*.swift' , 'ios/ui/*.swift', 'ios/presentationMode/*.swift', 'ios/viewController/*.swift', 'ios/THEOlive/*.swift', 'ios/THEOads/*.swift', 'ios/millicast/*.swift', 'ios/cmcd/*.swift', 'ios/mediaControl/*.swift'
|
|
38
|
+
s.source_files = 'ios/*.{h,m,swift}', 'ios/ads/*.swift', 'ios/casting/*.swift', 'ios/contentprotection/*.swift', 'ios/pip/*.swift', 'ios/backgroundAudio/*.swift', 'ios/cache/*.swift', 'ios/sideloadedMetadata/*.swift', 'ios/eventBroadcasting/*.swift' , 'ios/ui/*.swift', 'ios/presentationMode/*.swift', 'ios/viewController/*.swift', 'ios/THEOlive/*.swift', 'ios/THEOads/*.swift', 'ios/millicast/*.swift', 'ios/cmcd/*.swift', 'ios/mediaControl/*.swift', 'ios/metrics/*.swift'
|
|
39
39
|
s.resources = ['ios/*.css']
|
|
40
40
|
|
|
41
41
|
# ReactNative Dependency
|
|
@@ -43,31 +43,31 @@ Pod::Spec.new do |s|
|
|
|
43
43
|
|
|
44
44
|
# THEOplayer Dependency
|
|
45
45
|
puts "Adding THEOplayerSDK-core"
|
|
46
|
-
s.dependency "THEOplayerSDK-core", "~> 11.
|
|
46
|
+
s.dependency "THEOplayerSDK-core", "~> 11.14"
|
|
47
47
|
|
|
48
48
|
# THEOlive Dependency
|
|
49
49
|
puts "Adding THEOplayer-Integration-THEOlive"
|
|
50
|
-
s.dependency "THEOplayer-Integration-THEOlive", "~> 11.
|
|
50
|
+
s.dependency "THEOplayer-Integration-THEOlive", "~> 11.14"
|
|
51
51
|
|
|
52
52
|
# Feature based integration dependencies
|
|
53
53
|
if theofeatures.include?("GOOGLE_IMA")
|
|
54
54
|
puts "Adding THEOplayer-Integration-GoogleIMA"
|
|
55
|
-
s.dependency "THEOplayer-Integration-GoogleIMA", "~> 11.
|
|
55
|
+
s.dependency "THEOplayer-Integration-GoogleIMA", "~> 11.14"
|
|
56
56
|
end
|
|
57
57
|
|
|
58
58
|
if theofeatures.include?("CHROMECAST")
|
|
59
59
|
puts "Adding THEOplayer-Integration-GoogleCast"
|
|
60
|
-
s.ios.dependency "THEOplayer-Integration-GoogleCast", "~> 11.
|
|
60
|
+
s.ios.dependency "THEOplayer-Integration-GoogleCast", "~> 11.14"
|
|
61
61
|
end
|
|
62
62
|
|
|
63
63
|
if theofeatures.include?("THEO_ADS")
|
|
64
64
|
puts "Adding THEOplayer-Integration-THEOads"
|
|
65
|
-
s.dependency "THEOplayer-Integration-THEOads", "~> 11.
|
|
65
|
+
s.dependency "THEOplayer-Integration-THEOads", "~> 11.14"
|
|
66
66
|
end
|
|
67
67
|
|
|
68
68
|
if theofeatures.include?("MILLICAST")
|
|
69
69
|
puts "Adding THEOplayer-Integration-Millicast"
|
|
70
|
-
s.dependency "THEOplayer-Integration-Millicast", "~> 11.
|
|
70
|
+
s.dependency "THEOplayer-Integration-Millicast", "~> 11.14"
|
|
71
71
|
end
|
|
72
72
|
|
|
73
73
|
# Feature based connector dependencies
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
import assert from 'node:assert/strict';
|
|
2
|
+
import { test } from 'node:test';
|
|
3
|
+
import { readFileSync } from 'node:fs';
|
|
4
|
+
import path from 'node:path';
|
|
5
|
+
import ts from 'typescript';
|
|
6
|
+
|
|
7
|
+
const nativeModuleCalls: { method: string; args: unknown[] }[] = [];
|
|
8
|
+
const createdEmitters: { listeners: Map<string, (event: never) => void> }[] = [];
|
|
9
|
+
|
|
10
|
+
const reactNativeStub = {
|
|
11
|
+
NativeEventEmitter: class {
|
|
12
|
+
listeners = new Map<string, (event: never) => void>();
|
|
13
|
+
constructor() {
|
|
14
|
+
createdEmitters.push(this);
|
|
15
|
+
}
|
|
16
|
+
addListener(eventType: string, listener: (event: never) => void) {
|
|
17
|
+
this.listeners.set(eventType, listener);
|
|
18
|
+
return { remove: () => this.listeners.delete(eventType) };
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
NativeModules: {
|
|
22
|
+
THEORCTContentProtectionModule: new Proxy({} as Record<string, (...args: unknown[]) => void>, {
|
|
23
|
+
get: (target, method: string) =>
|
|
24
|
+
(target[method] ??= (...args: unknown[]) => {
|
|
25
|
+
nativeModuleCalls.push({ method, args });
|
|
26
|
+
}),
|
|
27
|
+
}),
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
const theoplayerStub = {
|
|
32
|
+
fromBase64StringToUint8Array: (str: string) => new Uint8Array(Buffer.from(str, 'base64')),
|
|
33
|
+
fromUint8ArrayToBase64String: (array: Uint8Array) => Buffer.from(array).toString('base64'),
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
function loadSource(file: string): object {
|
|
37
|
+
const compiled = ts.transpileModule(readFileSync(file, 'utf8'), {
|
|
38
|
+
compilerOptions: { target: ts.ScriptTarget.ES2020, module: ts.ModuleKind.CommonJS },
|
|
39
|
+
});
|
|
40
|
+
const exports = {};
|
|
41
|
+
new Function('exports', 'require', compiled.outputText)(exports, (specifier: string) => {
|
|
42
|
+
if (specifier === 'react-native') {
|
|
43
|
+
return reactNativeStub;
|
|
44
|
+
}
|
|
45
|
+
if (specifier === 'react-native-theoplayer') {
|
|
46
|
+
return theoplayerStub;
|
|
47
|
+
}
|
|
48
|
+
assert.ok(specifier.startsWith('.'), 'Registry runtime imports must remain local');
|
|
49
|
+
return loadSource(path.resolve(path.dirname(file), `${specifier}.ts`));
|
|
50
|
+
});
|
|
51
|
+
return exports;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
const { NativeContentProtectionRegistry } = loadSource(
|
|
55
|
+
path.resolve('src/internal/drm/ContentProtectionRegistry.ts'),
|
|
56
|
+
) as typeof import('../internal/drm/ContentProtectionRegistry');
|
|
57
|
+
|
|
58
|
+
function setup() {
|
|
59
|
+
nativeModuleCalls.length = 0;
|
|
60
|
+
createdEmitters.length = 0;
|
|
61
|
+
const registry = new NativeContentProtectionRegistry();
|
|
62
|
+
const emitter = createdEmitters[createdEmitters.length - 1];
|
|
63
|
+
const buildIntegration = (integrationId: string, keySystemId: string, integrationInstanceId?: string) =>
|
|
64
|
+
emitter.listeners.get('onBuildIntegration')?.({ requestId: '1', integrationId, keySystemId, integrationInstanceId, drmConfig: {} } as never);
|
|
65
|
+
const emit = (eventType: string, event: object): Promise<void> | void => emitter.listeners.get(eventType)?.(event as never) as Promise<void> | void;
|
|
66
|
+
return { registry, emitter, buildIntegration, emit };
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
const licenseRequest = (integrationId: string, keySystemId: string, integrationInstanceId?: string) => ({
|
|
70
|
+
requestId: 'req-1',
|
|
71
|
+
integrationId,
|
|
72
|
+
keySystemId,
|
|
73
|
+
integrationInstanceId,
|
|
74
|
+
url: 'https://license.server/',
|
|
75
|
+
method: 'GET',
|
|
76
|
+
headers: {},
|
|
77
|
+
base64body: null,
|
|
78
|
+
useCredentials: false,
|
|
79
|
+
fairplaySkdUrl: undefined,
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
test('registerContentProtectionIntegration replaces a factory registered for the same integration and key system', () => {
|
|
83
|
+
const { registry, buildIntegration } = setup();
|
|
84
|
+
const built: string[] = [];
|
|
85
|
+
registry.registerContentProtectionIntegration('drm', 'widevine' as never, {
|
|
86
|
+
build: () => {
|
|
87
|
+
built.push('first');
|
|
88
|
+
return {};
|
|
89
|
+
},
|
|
90
|
+
});
|
|
91
|
+
registry.registerContentProtectionIntegration('drm', 'widevine' as never, {
|
|
92
|
+
build: () => {
|
|
93
|
+
built.push('second');
|
|
94
|
+
return {};
|
|
95
|
+
},
|
|
96
|
+
});
|
|
97
|
+
|
|
98
|
+
buildIntegration('drm', 'widevine');
|
|
99
|
+
|
|
100
|
+
// The stale factory must not handle the build request.
|
|
101
|
+
assert.deepEqual(built, ['second']);
|
|
102
|
+
});
|
|
103
|
+
|
|
104
|
+
test('re-registering one key system does not affect factories for other key systems', () => {
|
|
105
|
+
const { registry, buildIntegration } = setup();
|
|
106
|
+
const built: string[] = [];
|
|
107
|
+
registry.registerContentProtectionIntegration('drm', 'widevine' as never, {
|
|
108
|
+
build: () => {
|
|
109
|
+
built.push('widevine-1');
|
|
110
|
+
return {};
|
|
111
|
+
},
|
|
112
|
+
});
|
|
113
|
+
registry.registerContentProtectionIntegration('drm', 'fairplay' as never, {
|
|
114
|
+
build: () => {
|
|
115
|
+
built.push('fairplay');
|
|
116
|
+
return {};
|
|
117
|
+
},
|
|
118
|
+
});
|
|
119
|
+
registry.registerContentProtectionIntegration('drm', 'widevine' as never, {
|
|
120
|
+
build: () => {
|
|
121
|
+
built.push('widevine-2');
|
|
122
|
+
return {};
|
|
123
|
+
},
|
|
124
|
+
});
|
|
125
|
+
|
|
126
|
+
buildIntegration('drm', 'fairplay');
|
|
127
|
+
buildIntegration('drm', 'widevine');
|
|
128
|
+
|
|
129
|
+
assert.deepEqual(built, ['fairplay', 'widevine-2']);
|
|
130
|
+
});
|
|
131
|
+
|
|
132
|
+
test('each registration is still forwarded to the native module', () => {
|
|
133
|
+
const { registry } = setup();
|
|
134
|
+
registry.registerContentProtectionIntegration('drm', 'widevine' as never, { build: () => ({}) });
|
|
135
|
+
registry.registerContentProtectionIntegration('drm', 'widevine' as never, { build: () => ({}) });
|
|
136
|
+
|
|
137
|
+
const registrations = nativeModuleCalls.filter((c) => c.method === 'registerContentProtectionIntegration');
|
|
138
|
+
assert.equal(registrations.length, 2);
|
|
139
|
+
});
|
|
140
|
+
|
|
141
|
+
test('callbacks are routed to the integration instance matching the event instance identifier', async () => {
|
|
142
|
+
const { registry, buildIntegration, emit } = setup();
|
|
143
|
+
const calls: string[] = [];
|
|
144
|
+
const handledRequest = (tag: string) => () => {
|
|
145
|
+
calls.push(tag);
|
|
146
|
+
return { url: `handled-by-${tag}`, method: 'GET', headers: {}, body: null, useCredentials: false };
|
|
147
|
+
};
|
|
148
|
+
registry.registerContentProtectionIntegration('drm', 'widevine' as never, {
|
|
149
|
+
build: () => ({ onLicenseRequest: handledRequest('instance-a') }),
|
|
150
|
+
});
|
|
151
|
+
registry.registerContentProtectionIntegration('drm', 'fairplay' as never, {
|
|
152
|
+
build: () => ({ onLicenseRequest: handledRequest('instance-b') }),
|
|
153
|
+
});
|
|
154
|
+
|
|
155
|
+
buildIntegration('drm', 'widevine', 'instance-a');
|
|
156
|
+
buildIntegration('drm', 'fairplay', 'instance-b');
|
|
157
|
+
|
|
158
|
+
await emit('onLicenseRequest', licenseRequest('drm', 'widevine', 'instance-a'));
|
|
159
|
+
await emit('onLicenseRequest', licenseRequest('drm', 'fairplay', 'instance-b'));
|
|
160
|
+
|
|
161
|
+
assert.deepEqual(calls, ['instance-a', 'instance-b']);
|
|
162
|
+
const processed = nativeModuleCalls.filter((c) => c.method === 'onLicenseRequestProcessedAsRequest');
|
|
163
|
+
assert.deepEqual(
|
|
164
|
+
processed.map((c) => (c.args[0] as { url: string }).url),
|
|
165
|
+
['handled-by-instance-a', 'handled-by-instance-b'],
|
|
166
|
+
);
|
|
167
|
+
});
|
|
168
|
+
|
|
169
|
+
test('building a second integration for the same integration id does not replace the first', async () => {
|
|
170
|
+
const { registry, buildIntegration, emit } = setup();
|
|
171
|
+
const calls: string[] = [];
|
|
172
|
+
let count = 0;
|
|
173
|
+
registry.registerContentProtectionIntegration('drm', 'widevine' as never, {
|
|
174
|
+
build: () => {
|
|
175
|
+
const tag = `built-${++count}`;
|
|
176
|
+
return {
|
|
177
|
+
onLicenseRequest: () => {
|
|
178
|
+
calls.push(tag);
|
|
179
|
+
return { url: `handled-by-${tag}` };
|
|
180
|
+
},
|
|
181
|
+
};
|
|
182
|
+
},
|
|
183
|
+
});
|
|
184
|
+
|
|
185
|
+
buildIntegration('drm', 'widevine', 'instance-a');
|
|
186
|
+
buildIntegration('drm', 'widevine', 'instance-b');
|
|
187
|
+
|
|
188
|
+
await emit('onLicenseRequest', licenseRequest('drm', 'widevine', 'instance-a'));
|
|
189
|
+
await emit('onLicenseRequest', licenseRequest('drm', 'widevine', 'instance-b'));
|
|
190
|
+
|
|
191
|
+
assert.deepEqual(calls, ['built-1', 'built-2']);
|
|
192
|
+
});
|
|
193
|
+
|
|
194
|
+
test('disposing an integration removes it from the registry', async () => {
|
|
195
|
+
const { registry, buildIntegration, emit } = setup();
|
|
196
|
+
const calls: string[] = [];
|
|
197
|
+
registry.registerContentProtectionIntegration('drm', 'widevine' as never, {
|
|
198
|
+
build: () => ({
|
|
199
|
+
onLicenseRequest: () => {
|
|
200
|
+
calls.push('handled');
|
|
201
|
+
return { url: 'handled' };
|
|
202
|
+
},
|
|
203
|
+
}),
|
|
204
|
+
});
|
|
205
|
+
buildIntegration('drm', 'widevine', 'instance-a');
|
|
206
|
+
emit('onIntegrationDisposed', { integrationId: 'drm', keySystemId: 'widevine', integrationInstanceId: 'instance-a' });
|
|
207
|
+
|
|
208
|
+
await emit('onLicenseRequest', licenseRequest('drm', 'widevine', 'instance-a'));
|
|
209
|
+
|
|
210
|
+
// The disposed integration must not handle the callback; the request passes through unmodified.
|
|
211
|
+
assert.deepEqual(calls, []);
|
|
212
|
+
const processed = nativeModuleCalls.filter((c) => c.method === 'onLicenseRequestProcessedAsRequest');
|
|
213
|
+
assert.equal(processed.length, 1);
|
|
214
|
+
assert.equal((processed[0].args[0] as { url: string }).url, 'https://license.server/');
|
|
215
|
+
});
|
|
216
|
+
|
|
217
|
+
test('events without an instance identifier keep the single-integration behaviour', async () => {
|
|
218
|
+
const { registry, buildIntegration, emit } = setup();
|
|
219
|
+
const calls: string[] = [];
|
|
220
|
+
let count = 0;
|
|
221
|
+
registry.registerContentProtectionIntegration('drm', 'widevine' as never, {
|
|
222
|
+
build: () => {
|
|
223
|
+
const tag = `built-${++count}`;
|
|
224
|
+
return {
|
|
225
|
+
onLicenseRequest: () => {
|
|
226
|
+
calls.push(tag);
|
|
227
|
+
return { url: `handled-by-${tag}` };
|
|
228
|
+
},
|
|
229
|
+
};
|
|
230
|
+
},
|
|
231
|
+
});
|
|
232
|
+
|
|
233
|
+
buildIntegration('drm', 'widevine');
|
|
234
|
+
buildIntegration('drm', 'widevine');
|
|
235
|
+
|
|
236
|
+
await emit('onLicenseRequest', licenseRequest('drm', 'widevine'));
|
|
237
|
+
|
|
238
|
+
assert.deepEqual(calls, ['built-2']);
|
|
239
|
+
});
|