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
|
@@ -8,43 +8,155 @@
|
|
|
8
8
|
"name": "typedoc-platform-icons",
|
|
9
9
|
"version": "1.0.0",
|
|
10
10
|
"devDependencies": {
|
|
11
|
-
"typedoc": "^0.
|
|
11
|
+
"typedoc": "^0.28.20",
|
|
12
12
|
"typescript": "^5.1.6"
|
|
13
13
|
},
|
|
14
14
|
"peerDependencies": {
|
|
15
15
|
"typedoc": "0.23.x || 0.24.x || 0.25.x || 0.26.x || 0.27.x || 0.28.x"
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
|
-
"node_modules/
|
|
19
|
-
"version": "
|
|
20
|
-
"resolved": "https://registry.npmjs.org/
|
|
21
|
-
"integrity": "sha512
|
|
18
|
+
"node_modules/@gerrit0/mini-shiki": {
|
|
19
|
+
"version": "3.23.0",
|
|
20
|
+
"resolved": "https://registry.npmjs.org/@gerrit0/mini-shiki/-/mini-shiki-3.23.0.tgz",
|
|
21
|
+
"integrity": "sha512-bEMORlG0cqdjVyCEuU0cDQbORWX+kYCeo0kV1lbxF5bt4r7SID2l9bqsxJEM0zndaxpOUT7riCyIVEuqq/Ynxg==",
|
|
22
|
+
"dev": true,
|
|
23
|
+
"license": "MIT",
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"@shikijs/engine-oniguruma": "^3.23.0",
|
|
26
|
+
"@shikijs/langs": "^3.23.0",
|
|
27
|
+
"@shikijs/themes": "^3.23.0",
|
|
28
|
+
"@shikijs/types": "^3.23.0",
|
|
29
|
+
"@shikijs/vscode-textmate": "^10.0.2"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"node_modules/@shikijs/engine-oniguruma": {
|
|
33
|
+
"version": "3.23.0",
|
|
34
|
+
"resolved": "https://registry.npmjs.org/@shikijs/engine-oniguruma/-/engine-oniguruma-3.23.0.tgz",
|
|
35
|
+
"integrity": "sha512-1nWINwKXxKKLqPibT5f4pAFLej9oZzQTsby8942OTlsJzOBZ0MWKiwzMsd+jhzu8YPCHAswGnnN1YtQfirL35g==",
|
|
36
|
+
"dev": true,
|
|
37
|
+
"license": "MIT",
|
|
38
|
+
"dependencies": {
|
|
39
|
+
"@shikijs/types": "3.23.0",
|
|
40
|
+
"@shikijs/vscode-textmate": "^10.0.2"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"node_modules/@shikijs/langs": {
|
|
44
|
+
"version": "3.23.0",
|
|
45
|
+
"resolved": "https://registry.npmjs.org/@shikijs/langs/-/langs-3.23.0.tgz",
|
|
46
|
+
"integrity": "sha512-2Ep4W3Re5aB1/62RSYQInK9mM3HsLeB91cHqznAJMuylqjzNVAVCMnNWRHFtcNHXsoNRayP9z1qj4Sq3nMqYXg==",
|
|
47
|
+
"dev": true,
|
|
48
|
+
"license": "MIT",
|
|
49
|
+
"dependencies": {
|
|
50
|
+
"@shikijs/types": "3.23.0"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"node_modules/@shikijs/themes": {
|
|
54
|
+
"version": "3.23.0",
|
|
55
|
+
"resolved": "https://registry.npmjs.org/@shikijs/themes/-/themes-3.23.0.tgz",
|
|
56
|
+
"integrity": "sha512-5qySYa1ZgAT18HR/ypENL9cUSGOeI2x+4IvYJu4JgVJdizn6kG4ia5Q1jDEOi7gTbN4RbuYtmHh0W3eccOrjMA==",
|
|
57
|
+
"dev": true,
|
|
58
|
+
"license": "MIT",
|
|
59
|
+
"dependencies": {
|
|
60
|
+
"@shikijs/types": "3.23.0"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"node_modules/@shikijs/types": {
|
|
64
|
+
"version": "3.23.0",
|
|
65
|
+
"resolved": "https://registry.npmjs.org/@shikijs/types/-/types-3.23.0.tgz",
|
|
66
|
+
"integrity": "sha512-3JZ5HXOZfYjsYSk0yPwBrkupyYSLpAE26Qc0HLghhZNGTZg/SKxXIIgoxOpmmeQP0RRSDJTk1/vPfw9tbw+jSQ==",
|
|
67
|
+
"dev": true,
|
|
68
|
+
"license": "MIT",
|
|
69
|
+
"dependencies": {
|
|
70
|
+
"@shikijs/vscode-textmate": "^10.0.2",
|
|
71
|
+
"@types/hast": "^3.0.4"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"node_modules/@shikijs/vscode-textmate": {
|
|
75
|
+
"version": "10.1.0",
|
|
76
|
+
"resolved": "https://registry.npmjs.org/@shikijs/vscode-textmate/-/vscode-textmate-10.1.0.tgz",
|
|
77
|
+
"integrity": "sha512-cVBuhDQjBZaNMTwBquYfPydrUP+E3hE6oYGasx8h6ZrODIM7/r+gxLDXdd66oszbrggZHEntdE6j+5gYIVyMWQ==",
|
|
22
78
|
"dev": true,
|
|
23
79
|
"license": "MIT"
|
|
24
80
|
},
|
|
25
|
-
"node_modules/
|
|
26
|
-
"version": "
|
|
27
|
-
"resolved": "https://registry.npmjs.org/
|
|
28
|
-
"integrity": "sha512-
|
|
81
|
+
"node_modules/@types/hast": {
|
|
82
|
+
"version": "3.0.5",
|
|
83
|
+
"resolved": "https://registry.npmjs.org/@types/hast/-/hast-3.0.5.tgz",
|
|
84
|
+
"integrity": "sha512-rp/ezSWaD1m44dPKICGhiskI13nVr7qTloFwDa/IYkhhf5nzwP+zIQcIJh3WIFSBOy/H1PzB40jPjMDksN4F+g==",
|
|
85
|
+
"dev": true,
|
|
86
|
+
"license": "MIT",
|
|
87
|
+
"dependencies": {
|
|
88
|
+
"@types/unist": "*"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
"node_modules/@types/unist": {
|
|
92
|
+
"version": "3.0.3",
|
|
93
|
+
"resolved": "https://registry.npmjs.org/@types/unist/-/unist-3.0.3.tgz",
|
|
94
|
+
"integrity": "sha512-ko/gIFJRv177XgZsZcBwnqJN5x/Gien8qNOn0D5bQU/zAzVf9Zt3BlcUiLqhV9y4ARk0GbT3tnUiPNgnTXzc/Q==",
|
|
29
95
|
"dev": true,
|
|
30
96
|
"license": "MIT"
|
|
31
97
|
},
|
|
98
|
+
"node_modules/argparse": {
|
|
99
|
+
"version": "2.0.1",
|
|
100
|
+
"resolved": "https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz",
|
|
101
|
+
"integrity": "sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==",
|
|
102
|
+
"dev": true,
|
|
103
|
+
"license": "Python-2.0"
|
|
104
|
+
},
|
|
105
|
+
"node_modules/balanced-match": {
|
|
106
|
+
"version": "4.0.4",
|
|
107
|
+
"resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-4.0.4.tgz",
|
|
108
|
+
"integrity": "sha512-BLrgEcRTwX2o6gGxGOCNyMvGSp35YofuYzw9h1IMTRmKqttAZZVU67bdb9Pr2vUHA8+j3i2tJfjO6C6+4myGTA==",
|
|
109
|
+
"dev": true,
|
|
110
|
+
"license": "MIT",
|
|
111
|
+
"engines": {
|
|
112
|
+
"node": "18 || 20 || >=22"
|
|
113
|
+
}
|
|
114
|
+
},
|
|
32
115
|
"node_modules/brace-expansion": {
|
|
33
|
-
"version": "
|
|
34
|
-
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-
|
|
35
|
-
"integrity": "sha512-
|
|
116
|
+
"version": "5.0.12",
|
|
117
|
+
"resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-5.0.12.tgz",
|
|
118
|
+
"integrity": "sha512-YovQ3rzhaLMIrDjNDMkNS01tea93qhEhG5xy8f6+R0l+dw3Ki+5sCoIoI942iuLZTHWogWktgwVDhU09iNEimQ==",
|
|
36
119
|
"dev": true,
|
|
37
120
|
"license": "MIT",
|
|
38
121
|
"dependencies": {
|
|
39
|
-
"balanced-match": "^
|
|
122
|
+
"balanced-match": "^4.0.2"
|
|
123
|
+
},
|
|
124
|
+
"engines": {
|
|
125
|
+
"node": "20 || >=22"
|
|
40
126
|
}
|
|
41
127
|
},
|
|
42
|
-
"node_modules/
|
|
43
|
-
"version": "
|
|
44
|
-
"resolved": "https://registry.npmjs.org/
|
|
45
|
-
"integrity": "sha512-
|
|
128
|
+
"node_modules/entities": {
|
|
129
|
+
"version": "4.5.0",
|
|
130
|
+
"resolved": "https://registry.npmjs.org/entities/-/entities-4.5.0.tgz",
|
|
131
|
+
"integrity": "sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==",
|
|
46
132
|
"dev": true,
|
|
47
|
-
"license": "
|
|
133
|
+
"license": "BSD-2-Clause",
|
|
134
|
+
"engines": {
|
|
135
|
+
"node": ">=0.12"
|
|
136
|
+
},
|
|
137
|
+
"funding": {
|
|
138
|
+
"url": "https://github.com/fb55/entities?sponsor=1"
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
"node_modules/linkify-it": {
|
|
142
|
+
"version": "5.0.2",
|
|
143
|
+
"resolved": "https://registry.npmjs.org/linkify-it/-/linkify-it-5.0.2.tgz",
|
|
144
|
+
"integrity": "sha512-ONTm2jCMAVZjgQa/Fy1kScXsuOoF5NPTsoFBdE1KVIZ2vAh/r9+Bqo+0jINCBYnavTPQZz38QzFTme79ENoN3Q==",
|
|
145
|
+
"dev": true,
|
|
146
|
+
"funding": [
|
|
147
|
+
{
|
|
148
|
+
"type": "github",
|
|
149
|
+
"url": "https://github.com/sponsors/puzrin"
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
"type": "github",
|
|
153
|
+
"url": "https://github.com/sponsors/markdown-it"
|
|
154
|
+
}
|
|
155
|
+
],
|
|
156
|
+
"license": "MIT",
|
|
157
|
+
"dependencies": {
|
|
158
|
+
"uc.micro": "^2.0.0"
|
|
159
|
+
}
|
|
48
160
|
},
|
|
49
161
|
"node_modules/lunr": {
|
|
50
162
|
"version": "2.3.9",
|
|
@@ -53,68 +165,89 @@
|
|
|
53
165
|
"dev": true,
|
|
54
166
|
"license": "MIT"
|
|
55
167
|
},
|
|
56
|
-
"node_modules/
|
|
57
|
-
"version": "
|
|
58
|
-
"resolved": "https://registry.npmjs.org/
|
|
59
|
-
"integrity": "sha512-
|
|
168
|
+
"node_modules/markdown-it": {
|
|
169
|
+
"version": "14.3.3",
|
|
170
|
+
"resolved": "https://registry.npmjs.org/markdown-it/-/markdown-it-14.3.3.tgz",
|
|
171
|
+
"integrity": "sha512-L//tDAkjTjJCU6pBUSBTgs3Kg4InVaZuUZog/b6V12UKhcDQ7S78877ibbCanRExwPuYP1CZD7Gd2dxSy1GXRg==",
|
|
60
172
|
"dev": true,
|
|
173
|
+
"funding": [
|
|
174
|
+
{
|
|
175
|
+
"type": "github",
|
|
176
|
+
"url": "https://github.com/sponsors/puzrin"
|
|
177
|
+
},
|
|
178
|
+
{
|
|
179
|
+
"type": "github",
|
|
180
|
+
"url": "https://github.com/sponsors/markdown-it"
|
|
181
|
+
}
|
|
182
|
+
],
|
|
61
183
|
"license": "MIT",
|
|
62
|
-
"
|
|
63
|
-
"
|
|
184
|
+
"dependencies": {
|
|
185
|
+
"argparse": "^2.0.1",
|
|
186
|
+
"entities": "^4.5.0",
|
|
187
|
+
"linkify-it": "^5.0.2",
|
|
188
|
+
"mdurl": "^2.0.0",
|
|
189
|
+
"punycode.js": "^2.3.1",
|
|
190
|
+
"uc.micro": "^2.1.0"
|
|
64
191
|
},
|
|
65
|
-
"
|
|
66
|
-
"
|
|
192
|
+
"bin": {
|
|
193
|
+
"markdown-it": "bin/markdown-it.mjs"
|
|
67
194
|
}
|
|
68
195
|
},
|
|
196
|
+
"node_modules/mdurl": {
|
|
197
|
+
"version": "2.1.0",
|
|
198
|
+
"resolved": "https://registry.npmjs.org/mdurl/-/mdurl-2.1.0.tgz",
|
|
199
|
+
"integrity": "sha512-1+HBaOx0zi/dQWht8rNv9MYf9qqpqL/kxI0hXImU6Y547zM6Sni8BQibt7ifgMcYtQg41ao3Ivd6cnSM86inpg==",
|
|
200
|
+
"dev": true,
|
|
201
|
+
"license": "MIT"
|
|
202
|
+
},
|
|
69
203
|
"node_modules/minimatch": {
|
|
70
|
-
"version": "
|
|
71
|
-
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-
|
|
72
|
-
"integrity": "sha512-
|
|
204
|
+
"version": "10.2.6",
|
|
205
|
+
"resolved": "https://registry.npmjs.org/minimatch/-/minimatch-10.2.6.tgz",
|
|
206
|
+
"integrity": "sha512-vpLQEs+VLCr1nU0BXS07maYoFwlDAH0gngQuuttxIwutDFEMHq2blX+8vpgxDdK3J1PwjCJiep77OitTZ4Ll1A==",
|
|
73
207
|
"dev": true,
|
|
74
|
-
"license": "
|
|
208
|
+
"license": "BlueOak-1.0.0",
|
|
75
209
|
"dependencies": {
|
|
76
|
-
"brace-expansion": "^
|
|
210
|
+
"brace-expansion": "^5.0.8"
|
|
77
211
|
},
|
|
78
212
|
"engines": {
|
|
79
|
-
"node": "
|
|
213
|
+
"node": "18 || 20 || >=22"
|
|
80
214
|
},
|
|
81
215
|
"funding": {
|
|
82
216
|
"url": "https://github.com/sponsors/isaacs"
|
|
83
217
|
}
|
|
84
218
|
},
|
|
85
|
-
"node_modules/
|
|
86
|
-
"version": "
|
|
87
|
-
"resolved": "https://registry.npmjs.org/
|
|
88
|
-
"integrity": "sha512-
|
|
219
|
+
"node_modules/punycode.js": {
|
|
220
|
+
"version": "2.3.1",
|
|
221
|
+
"resolved": "https://registry.npmjs.org/punycode.js/-/punycode.js-2.3.1.tgz",
|
|
222
|
+
"integrity": "sha512-uxFIHU0YlHYhDQtV4R9J6a52SLx28BCjT+4ieh7IGbgwVJWO+km431c4yRlREUAsAmt/uMjQUyQHNEPf0M39CA==",
|
|
89
223
|
"dev": true,
|
|
90
224
|
"license": "MIT",
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"jsonc-parser": "^3.2.0",
|
|
94
|
-
"vscode-oniguruma": "^1.7.0",
|
|
95
|
-
"vscode-textmate": "^8.0.0"
|
|
225
|
+
"engines": {
|
|
226
|
+
"node": ">=6"
|
|
96
227
|
}
|
|
97
228
|
},
|
|
98
229
|
"node_modules/typedoc": {
|
|
99
|
-
"version": "0.
|
|
100
|
-
"resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.
|
|
101
|
-
"integrity": "sha512-
|
|
230
|
+
"version": "0.28.20",
|
|
231
|
+
"resolved": "https://registry.npmjs.org/typedoc/-/typedoc-0.28.20.tgz",
|
|
232
|
+
"integrity": "sha512-uSKqkh8Cr48vllnEy+jdaAgOeR6Y+QCBW7usgUsKj7gJEfR7stw9U/fE49LBnj2tPRKPY0c0EBJSWe9Appmplg==",
|
|
102
233
|
"dev": true,
|
|
103
234
|
"license": "Apache-2.0",
|
|
104
235
|
"dependencies": {
|
|
236
|
+
"@gerrit0/mini-shiki": "^3.23.0",
|
|
105
237
|
"lunr": "^2.3.9",
|
|
106
|
-
"
|
|
107
|
-
"minimatch": "^
|
|
108
|
-
"
|
|
238
|
+
"markdown-it": "^14.3.0",
|
|
239
|
+
"minimatch": "^10.2.5",
|
|
240
|
+
"yaml": "^2.9.0"
|
|
109
241
|
},
|
|
110
242
|
"bin": {
|
|
111
243
|
"typedoc": "bin/typedoc"
|
|
112
244
|
},
|
|
113
245
|
"engines": {
|
|
114
|
-
"node": ">=
|
|
246
|
+
"node": ">= 18",
|
|
247
|
+
"pnpm": ">= 10"
|
|
115
248
|
},
|
|
116
249
|
"peerDependencies": {
|
|
117
|
-
"typescript": "
|
|
250
|
+
"typescript": "5.0.x || 5.1.x || 5.2.x || 5.3.x || 5.4.x || 5.5.x || 5.6.x || 5.7.x || 5.8.x || 5.9.x || 6.0.x"
|
|
118
251
|
}
|
|
119
252
|
},
|
|
120
253
|
"node_modules/typescript": {
|
|
@@ -131,19 +264,28 @@
|
|
|
131
264
|
"node": ">=14.17"
|
|
132
265
|
}
|
|
133
266
|
},
|
|
134
|
-
"node_modules/
|
|
135
|
-
"version": "1.
|
|
136
|
-
"resolved": "https://registry.npmjs.org/
|
|
137
|
-
"integrity": "sha512-
|
|
267
|
+
"node_modules/uc.micro": {
|
|
268
|
+
"version": "2.1.0",
|
|
269
|
+
"resolved": "https://registry.npmjs.org/uc.micro/-/uc.micro-2.1.0.tgz",
|
|
270
|
+
"integrity": "sha512-ARDJmphmdvUk6Glw7y9DQ2bFkKBHwQHLi2lsaH6PPmz/Ka9sFOBsBluozhDltWmnv9u/cF6Rt87znRTPV+yp/A==",
|
|
138
271
|
"dev": true,
|
|
139
272
|
"license": "MIT"
|
|
140
273
|
},
|
|
141
|
-
"node_modules/
|
|
142
|
-
"version": "
|
|
143
|
-
"resolved": "https://registry.npmjs.org/
|
|
144
|
-
"integrity": "sha512-
|
|
274
|
+
"node_modules/yaml": {
|
|
275
|
+
"version": "2.9.1",
|
|
276
|
+
"resolved": "https://registry.npmjs.org/yaml/-/yaml-2.9.1.tgz",
|
|
277
|
+
"integrity": "sha512-3NxN8+78OdzbT7C/WjGsyfPAtJaN3FNDsWxv7Y7mcDsT/oOmgW8BpyQQFFBnvZE3j9Y2Sdz1ULFLezL7Eb2yFw==",
|
|
145
278
|
"dev": true,
|
|
146
|
-
"license": "
|
|
279
|
+
"license": "ISC",
|
|
280
|
+
"bin": {
|
|
281
|
+
"yaml": "bin.mjs"
|
|
282
|
+
},
|
|
283
|
+
"engines": {
|
|
284
|
+
"node": ">= 14.6"
|
|
285
|
+
},
|
|
286
|
+
"funding": {
|
|
287
|
+
"url": "https://github.com/sponsors/eemeli"
|
|
288
|
+
}
|
|
147
289
|
}
|
|
148
290
|
}
|
|
149
291
|
}
|
|
@@ -6,7 +6,8 @@
|
|
|
6
6
|
"experimentalDecorators": true,
|
|
7
7
|
"forceConsistentCasingInFileNames": true,
|
|
8
8
|
"lib": ["es2018", "dom"],
|
|
9
|
-
"
|
|
9
|
+
"module": "esnext",
|
|
10
|
+
"moduleResolution": "bundler",
|
|
10
11
|
"noImplicitAny": false,
|
|
11
12
|
"noUnusedLocals": true,
|
|
12
13
|
"removeComments": true,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ContentProtectionRegistry.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/ContentProtectionRegistry.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PlayerFacade.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/PlayerFacade.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PlayerFacadeWebAdapter.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/PlayerFacadeWebAdapter.test.ts"],"names":[],"mappings":""}
|
|
@@ -1,2 +1,15 @@
|
|
|
1
|
+
import type { MediaTrack, MediaTrackKind } from '../index';
|
|
2
|
+
type Assert<T extends true> = T;
|
|
3
|
+
export type MediaTrackKindChecks = [
|
|
4
|
+
Assert<'main' | 'alternative' extends MediaTrackKind ? true : false>,
|
|
5
|
+
Assert<'descriptions' | 'description' | 'main-desc' extends MediaTrackKind ? true : false>,
|
|
6
|
+
Assert<'commentary' | 'translation' | 'captions' | 'sign' | 'subtitles' | '' extends MediaTrackKind ? true : false>,
|
|
7
|
+
Assert<'vendor-custom' extends MediaTrackKind ? true : false>,
|
|
8
|
+
Assert<string extends MediaTrackKind ? true : false>,
|
|
9
|
+
Assert<MediaTrackKind extends string ? true : false>,
|
|
10
|
+
Assert<string extends MediaTrack['kind'] ? true : false>,
|
|
11
|
+
Assert<MediaTrack['kind'] extends MediaTrackKind ? true : false>,
|
|
12
|
+
Assert<Extract<number | boolean | null | undefined | object, MediaTrackKind> extends never ? true : false>
|
|
13
|
+
];
|
|
1
14
|
export {};
|
|
2
15
|
//# sourceMappingURL=index.test.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/index.test.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.test.d.ts","sourceRoot":"","sources":["../../../src/__tests__/index.test.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE3D,KAAK,MAAM,CAAC,CAAC,SAAS,IAAI,IAAI,CAAC,CAAC;AAEhC,MAAM,MAAM,oBAAoB,GAAG;IACjC,MAAM,CAAC,MAAM,GAAG,aAAa,SAAS,cAAc,GAAG,IAAI,GAAG,KAAK,CAAC;IACpE,MAAM,CAAC,cAAc,GAAG,aAAa,GAAG,WAAW,SAAS,cAAc,GAAG,IAAI,GAAG,KAAK,CAAC;IAC1F,MAAM,CAAC,YAAY,GAAG,aAAa,GAAG,UAAU,GAAG,MAAM,GAAG,WAAW,GAAG,EAAE,SAAS,cAAc,GAAG,IAAI,GAAG,KAAK,CAAC;IACnH,MAAM,CAAC,eAAe,SAAS,cAAc,GAAG,IAAI,GAAG,KAAK,CAAC;IAC7D,MAAM,CAAC,MAAM,SAAS,cAAc,GAAG,IAAI,GAAG,KAAK,CAAC;IACpD,MAAM,CAAC,cAAc,SAAS,MAAM,GAAG,IAAI,GAAG,KAAK,CAAC;IACpD,MAAM,CAAC,MAAM,SAAS,UAAU,CAAC,MAAM,CAAC,GAAG,IAAI,GAAG,KAAK,CAAC;IACxD,MAAM,CAAC,UAAU,CAAC,MAAM,CAAC,SAAS,cAAc,GAAG,IAAI,GAAG,KAAK,CAAC;IAChE,MAAM,CAAC,OAAO,CAAC,MAAM,GAAG,OAAO,GAAG,IAAI,GAAG,SAAS,GAAG,MAAM,EAAE,cAAc,CAAC,SAAS,KAAK,GAAG,IAAI,GAAG,KAAK,CAAC;CAC3G,CAAC"}
|
|
@@ -19,6 +19,10 @@ export interface THEOplayerViewProps {
|
|
|
19
19
|
* @platform ios,android
|
|
20
20
|
*/
|
|
21
21
|
posterStyle?: StyleProp<ImageStyle> | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* The testID applied to the player view, used to locate it from UI automation tools.
|
|
24
|
+
*/
|
|
25
|
+
testID?: string;
|
|
22
26
|
/**
|
|
23
27
|
* Callback for when the internal THEOplayer is ready.
|
|
24
28
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"THEOplayerView.d.ts","sourceRoot":"","sources":["../../../src/api/THEOplayerView.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,mDAAmD,CAAC;AAE/E,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAE7B;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAE7B;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC;IAEhD;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;IAE7C;;OAEG;IACH,eAAe,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;CAChD"}
|
|
1
|
+
{"version":3,"file":"THEOplayerView.d.ts","sourceRoot":"","sources":["../../../src/api/THEOplayerView.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,8BAA8B,CAAC;AACxE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AACtD,OAAO,EAAE,UAAU,EAAE,MAAM,mDAAmD,CAAC;AAE/E,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,MAAM,CAAC,EAAE,mBAAmB,CAAC;IAE7B;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAE7B;;;;;;OAMG;IACH,WAAW,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,GAAG,SAAS,CAAC;IAEhD;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;OAEG;IACH,aAAa,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;IAE7C;;OAEG;IACH,eAAe,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,CAAC;CAChD"}
|
|
@@ -10,6 +10,7 @@ export * from './config/barrel';
|
|
|
10
10
|
export * from './error/barrel';
|
|
11
11
|
export * from './event/barrel';
|
|
12
12
|
export * from './media/barrel';
|
|
13
|
+
export * from './metrics/barrel';
|
|
13
14
|
export * from './millicast/barrel';
|
|
14
15
|
export * from './drm/barrel';
|
|
15
16
|
export * from './source/barrel';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"barrel.d.ts","sourceRoot":"","sources":["../../../src/api/barrel.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"barrel.d.ts","sourceRoot":"","sources":["../../../src/api/barrel.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,0BAA0B,CAAC;AACzC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AACpC,cAAc,qBAAqB,CAAC;AACpC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC"}
|
|
@@ -136,6 +136,21 @@ export interface PlayerConfiguration {
|
|
|
136
136
|
* <br/> - Source-level configuration can override player-level values. See {@link CmcdSourceConfiguration}.
|
|
137
137
|
*/
|
|
138
138
|
cmcd?: CmcdPlayerConfiguration;
|
|
139
|
+
/**
|
|
140
|
+
* Whether to expose a stable player facade for integration-owned playback and advertising.
|
|
141
|
+
*
|
|
142
|
+
* @remarks
|
|
143
|
+
* <br/> - Set this option at player creation, before registering an integration.
|
|
144
|
+
* <br/> - On Web, the facade is exposed through {@link THEOplayer.nativeHandle}.
|
|
145
|
+
* <br/> - On Android, integrations register through the native `ReactTHEOplayerView` API.
|
|
146
|
+
* <br/> - The content player remains available to integrations without facade overrides.
|
|
147
|
+
* <br/> - This option has no effect on iOS or tvOS.
|
|
148
|
+
*
|
|
149
|
+
* @experimental This API is subject to change or removal without notice.
|
|
150
|
+
* @defaultValue false
|
|
151
|
+
* @platform web,android
|
|
152
|
+
*/
|
|
153
|
+
readonly usePlayerFacade?: boolean;
|
|
139
154
|
}
|
|
140
155
|
/**
|
|
141
156
|
* The muted autoplay policy of a player for web.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlayerConfiguration.d.ts","sourceRoot":"","sources":["../../../../src/api/config/PlayerConfiguration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AACpF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEzE;;;;;GAKG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;;;;;;;OASG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;;;;;;OAOG;IACH,aAAa,CAAC,EAAE,0BAA0B,CAAC;IAE3C;;OAEG;IACH,GAAG,CAAC,EAAE,gBAAgB,CAAC;IAEvB;;OAEG;IACH,IAAI,CAAC,EAAE,iBAAiB,CAAC;IAEzB;;OAEG;IACH,EAAE,CAAC,EAAE,eAAe,CAAC;IAErB;;OAEG;IACH,YAAY,CAAC,EAAE,yBAAyB,CAAC;IAEzC;;OAEG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAE7B;;OAEG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,OAAO,CAAC;IAEhC;;;;OAIG;IACH,QAAQ,CAAC,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IAEjD;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,QAAQ,CAAC,EAAE,qBAAqB,CAAC;IAEjC;;;;;;;;;;;OAWG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B;;;;;;;;;;;OAWG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;;;;;;;OASG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B;;;;;;;;;OASG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC;;;;;;;OAOG;IACH,IAAI,CAAC,EAAE,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"PlayerConfiguration.d.ts","sourceRoot":"","sources":["../../../../src/api/config/PlayerConfiguration.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAC;AACpF,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AACtE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAC;AAEzE;;;;;GAKG;AACH,MAAM,WAAW,mBAAmB;IAClC;;;;;;;;;OASG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;;;;;;OAOG;IACH,aAAa,CAAC,EAAE,0BAA0B,CAAC;IAE3C;;OAEG;IACH,GAAG,CAAC,EAAE,gBAAgB,CAAC;IAEvB;;OAEG;IACH,IAAI,CAAC,EAAE,iBAAiB,CAAC;IAEzB;;OAEG;IACH,EAAE,CAAC,EAAE,eAAe,CAAC;IAErB;;OAEG;IACH,YAAY,CAAC,EAAE,yBAAyB,CAAC;IAEzC;;OAEG;IACH,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;IAE1B;;OAEG;IACH,QAAQ,CAAC,UAAU,CAAC,EAAE,MAAM,CAAC;IAE7B;;OAEG;IACH,QAAQ,CAAC,YAAY,CAAC,EAAE,OAAO,CAAC;IAEhC;;;;OAIG;IACH,QAAQ,CAAC,kBAAkB,CAAC,EAAE,kBAAkB,CAAC;IAEjD;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAEpB;;OAEG;IACH,QAAQ,CAAC,EAAE,qBAAqB,CAAC;IAEjC;;;;;;;;;;;OAWG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B;;;;;;;;;;;OAWG;IACH,aAAa,CAAC,EAAE,OAAO,CAAC;IAExB;;;;;;;;;OASG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAE3B;;;;;;;;;OASG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC;;;;;;;OAOG;IACH,IAAI,CAAC,EAAE,uBAAuB,CAAC;IAE/B;;;;;;;;;;;;;OAaG;IACH,QAAQ,CAAC,eAAe,CAAC,EAAE,OAAO,CAAC;CACpC;AAED;;;;;;;;;GASG;AACH,MAAM,MAAM,0BAA0B,GAAG,MAAM,GAAG,KAAK,GAAG,SAAS,CAAC"}
|
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
* <br/> - The error codes correspond to the error codes documented in the {@link https://developers.google.com/cast/docs/reference/chrome/chrome.cast.html#.ErrorCode | Chromecast API reference}.
|
|
16
16
|
*
|
|
17
17
|
* @category Errors
|
|
18
|
-
* @
|
|
18
|
+
* @category Casting
|
|
19
19
|
* @public
|
|
20
20
|
*/
|
|
21
21
|
export type ChromecastErrorCode = 'CANCEL' | 'TIMEOUT' | 'API_NOT_INITIALIZED' | 'INVALID_PARAMETER' | 'EXTENSION_NOT_COMPATIBLE' | 'EXTENSION_MISSING' | 'RECEIVER_UNAVAILABLE' | 'SESSION_ERROR' | 'CHANNEL_ERROR' | 'LOAD_MEDIA_FAILED';
|
|
@@ -23,7 +23,7 @@ export type ChromecastErrorCode = 'CANCEL' | 'TIMEOUT' | 'API_NOT_INITIALIZED' |
|
|
|
23
23
|
* An error that occurred while casting or attempting to cast to Chromecast.
|
|
24
24
|
*
|
|
25
25
|
* @category Errors
|
|
26
|
-
* @
|
|
26
|
+
* @category Casting
|
|
27
27
|
* @public
|
|
28
28
|
*/
|
|
29
29
|
export interface ChromecastError {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The API for player metrics.
|
|
3
|
+
*
|
|
4
|
+
* @category Player
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export interface MetricsAPI {
|
|
8
|
+
/**
|
|
9
|
+
* The bandwidth, in bits per second, that the player estimates is currently available.
|
|
10
|
+
* This is the value used to make adaptive bitrate (ABR) decisions.
|
|
11
|
+
*
|
|
12
|
+
* @remarks
|
|
13
|
+
* <br/> - This value is poll-based: read it on demand, as there is no change event.
|
|
14
|
+
* <br/> - Resolves to `0` when no estimate is available yet (e.g. before playback or after a reset).
|
|
15
|
+
* A value of `0` means "not available/estimated", not literally zero bandwidth.
|
|
16
|
+
* <br/> - On Android and Web the estimate is reported for regular adaptive streams (HLS, DASH, ...).
|
|
17
|
+
* <br/> - On iOS/tvOS the estimate is only populated for THEOlive/HESP streams; it stays `0` for other playback (HLS, MP4).
|
|
18
|
+
*/
|
|
19
|
+
currentBandwidthEstimate(): Promise<number>;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=MetricsAPI.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MetricsAPI.d.ts","sourceRoot":"","sources":["../../../../src/api/metrics/MetricsAPI.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,MAAM,WAAW,UAAU;IACzB;;;;;;;;;;OAUG;IACH,wBAAwB,IAAI,OAAO,CAAC,MAAM,CAAC,CAAC;CAC7C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"barrel.d.ts","sourceRoot":"","sources":["../../../../src/api/metrics/barrel.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Describes optional playback overrides supplied by a player facade integration.
|
|
3
|
+
*
|
|
4
|
+
* @remarks
|
|
5
|
+
* <br/> - Requires {@link PlayerConfiguration.usePlayerFacade} when creating the player.
|
|
6
|
+
* <br/> - Registration takes place on the Web native handle or through the Android native API, not on the React Native player API.
|
|
7
|
+
* <br/> - Omitted hooks and nullish getter results delegate to the content player.
|
|
8
|
+
* <br/> - The integration owns playback synchronization and must dispatch events when its public state changes.
|
|
9
|
+
*
|
|
10
|
+
* @experimental This API is subject to change or removal without notice.
|
|
11
|
+
* @category Player
|
|
12
|
+
* @platform web,android
|
|
13
|
+
* @public
|
|
14
|
+
*/
|
|
15
|
+
export interface Integration {
|
|
16
|
+
/**
|
|
17
|
+
* Returns the current playback time, in seconds.
|
|
18
|
+
*
|
|
19
|
+
* @returns A finite, non-negative time, or `null` or `undefined` to use the content player's time.
|
|
20
|
+
* Invalid times also fall back to the content player.
|
|
21
|
+
*/
|
|
22
|
+
getCurrentTime?(): number | null | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Requests a seek to the given playback time.
|
|
25
|
+
*
|
|
26
|
+
* @param currentTime - The requested time, in seconds.
|
|
27
|
+
* @returns `true` if handled, or `false` to seek the content player instead.
|
|
28
|
+
*/
|
|
29
|
+
setCurrentTime?(currentTime: number): boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Requests playback to start or resume.
|
|
32
|
+
*
|
|
33
|
+
* @returns `true` if handled, or `false` to play the content player instead.
|
|
34
|
+
*/
|
|
35
|
+
play?(): boolean;
|
|
36
|
+
/**
|
|
37
|
+
* Requests playback to pause.
|
|
38
|
+
*
|
|
39
|
+
* @returns `true` if handled, or `false` to pause the content player instead.
|
|
40
|
+
*/
|
|
41
|
+
pause?(): boolean;
|
|
42
|
+
/**
|
|
43
|
+
* Returns whether playback is paused.
|
|
44
|
+
*
|
|
45
|
+
* @returns The paused state, or `null` or `undefined` to use the content player's state.
|
|
46
|
+
*/
|
|
47
|
+
isPaused?(): boolean | null | undefined;
|
|
48
|
+
/**
|
|
49
|
+
* Returns whether a seek is in progress.
|
|
50
|
+
*
|
|
51
|
+
* @returns The seeking state, or `null` or `undefined` to use the content player's state.
|
|
52
|
+
*/
|
|
53
|
+
isSeeking?(): boolean | null | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* Returns the playback duration, in seconds.
|
|
56
|
+
*
|
|
57
|
+
* @returns The duration, or `null` or `undefined` to use the content player's duration.
|
|
58
|
+
* `Infinity` and `NaN` are preserved for live or unknown durations.
|
|
59
|
+
*/
|
|
60
|
+
getDuration?(): number | null | undefined;
|
|
61
|
+
/**
|
|
62
|
+
* Returns whether audio is muted.
|
|
63
|
+
*
|
|
64
|
+
* @returns The muted state, or `null` or `undefined` to use the content player's state.
|
|
65
|
+
*/
|
|
66
|
+
getMuted?(): boolean | null | undefined;
|
|
67
|
+
/**
|
|
68
|
+
* Requests a change to the muted state.
|
|
69
|
+
*
|
|
70
|
+
* @param muted - Whether audio should be muted.
|
|
71
|
+
* @returns `true` if handled, or `false` to update the content player instead.
|
|
72
|
+
*/
|
|
73
|
+
setMuted?(muted: boolean): boolean;
|
|
74
|
+
/**
|
|
75
|
+
* Returns the audio volume.
|
|
76
|
+
*
|
|
77
|
+
* @returns A volume between `0` and `1`, or `null` or `undefined` to use the content player's volume.
|
|
78
|
+
*/
|
|
79
|
+
getVolume?(): number | null | undefined;
|
|
80
|
+
/**
|
|
81
|
+
* Requests a change to the audio volume.
|
|
82
|
+
*
|
|
83
|
+
* @param volume - The requested volume, between `0` and `1`.
|
|
84
|
+
* @returns `true` if handled, or `false` to update the content player instead.
|
|
85
|
+
*/
|
|
86
|
+
setVolume?(volume: number): boolean;
|
|
87
|
+
}
|
|
88
|
+
//# sourceMappingURL=Integration.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Integration.d.ts","sourceRoot":"","sources":["../../../../src/api/player/Integration.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,MAAM,WAAW,WAAW;IAC1B;;;;;OAKG;IACH,cAAc,CAAC,IAAI,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAE7C;;;;;OAKG;IACH,cAAc,CAAC,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC;IAE9C;;;;OAIG;IACH,IAAI,CAAC,IAAI,OAAO,CAAC;IAEjB;;;;OAIG;IACH,KAAK,CAAC,IAAI,OAAO,CAAC;IAElB;;;;OAIG;IACH,QAAQ,CAAC,IAAI,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC;IAExC;;;;OAIG;IACH,SAAS,CAAC,IAAI,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC;IAEzC;;;;;OAKG;IACH,WAAW,CAAC,IAAI,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAE1C;;;;OAIG;IACH,QAAQ,CAAC,IAAI,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC;IAExC;;;;;OAKG;IACH,QAAQ,CAAC,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,CAAC;IAEnC;;;;OAIG;IACH,SAAS,CAAC,IAAI,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAExC;;;;;OAKG;IACH,SAAS,CAAC,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC;CACrC"}
|
|
@@ -6,7 +6,7 @@ import type { CastEvent } from '../event/CastEvent';
|
|
|
6
6
|
import type { TheoAdsEvent } from '../event/TheoAdsEvent';
|
|
7
7
|
import type { TheoLiveEvent } from '../event/TheoLiveEvent';
|
|
8
8
|
/**
|
|
9
|
-
* The event types dispatched by the {@link
|
|
9
|
+
* The event types dispatched by the {@link react-native-theoplayer!THEOplayer}.
|
|
10
10
|
*
|
|
11
11
|
* @category Player
|
|
12
12
|
* @category Events
|