react-native-theoplayer 1.6.0 → 1.7.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/README.md +4 -0
- package/android/build.gradle +70 -25
- package/android/local/com/theoplayer/theoplayer-sdk-android/ads-wrapper/4.3.0/ads-wrapper-4.3.0.aar +0 -0
- package/android/local/com/theoplayer/theoplayer-sdk-android/ads-wrapper/4.3.0/ads-wrapper-4.3.0.pom +9 -0
- package/android/local/com/theoplayer/theoplayer-sdk-android/ads-wrapper/maven-metadata-local.xml +13 -0
- package/android/src/main/java/com/theoplayer/PlayerConfigHelper.java +40 -0
- package/android/src/main/java/com/theoplayer/ReactTHEOplayerPackage.java +8 -3
- package/android/src/main/java/com/theoplayer/ReactTHEOplayerView.java +131 -28
- package/android/src/main/java/com/theoplayer/ReactTHEOplayerViewManager.java +14 -1
- package/android/src/main/java/com/theoplayer/SourceHelper.java +137 -86
- package/android/src/main/java/com/theoplayer/VideoEventEmitter.java +44 -12
- package/android/src/main/java/com/theoplayer/abr/ABRConfigurationAdapter.kt +72 -0
- package/android/src/main/java/com/theoplayer/ads/AdEventAdapter.java +92 -0
- package/android/src/main/java/com/theoplayer/ads/AdInfo.java +168 -0
- package/android/src/main/java/com/theoplayer/ads/AdsModule.java +152 -0
- package/android/src/main/java/com/theoplayer/drm/ContentProtectionAdapter.kt +143 -0
- package/android/src/main/java/com/theoplayer/drm/ContentProtectionModule.kt +269 -0
- package/android/src/main/java/com/theoplayer/drm/KeySystemAdapter.kt +22 -0
- package/android/src/main/java/com/theoplayer/drm/ProxyContentProtectionIntegration.kt +33 -0
- package/android/src/main/java/com/theoplayer/drm/ProxyContentProtectionIntegrationFactory.kt +19 -0
- package/android/src/main/java/com/theoplayer/drm/RequestMethodAdapter.kt +28 -0
- package/android/src/main/java/com/theoplayer/track/QualityListAdapter.java +54 -0
- package/android/src/main/java/com/theoplayer/track/QualityListFilter.java +40 -0
- package/android/src/main/java/com/theoplayer/track/TrackListInfo.java +10 -2
- package/android/src/main/java/com/theoplayer/util/TypeUtils.kt +17 -0
- package/android/src/main/java/com/theoplayer/util/ViewResolver.java +42 -0
- package/ios/THEOplayerRCTAdAggregator.swift +158 -0
- package/ios/THEOplayerRCTAdsAPI.swift +296 -0
- package/ios/THEOplayerRCTBridge.m +65 -0
- package/ios/THEOplayerRCTContentProtectionAPI.swift +359 -0
- package/ios/THEOplayerRCTContentProtectionAggregator.swift +119 -0
- package/ios/THEOplayerRCTDebug.swift +13 -4
- package/ios/THEOplayerRCTMetadataAggregator.swift +1 -1
- package/ios/THEOplayerRCTNetworkUtils.swift +54 -0
- package/ios/THEOplayerRCTProxyContentProtectionIntegration.swift +155 -0
- package/ios/THEOplayerRCTProxyContentProtectionIntegrationFactory.swift +32 -0
- package/ios/THEOplayerRCTSourceDescriptionBuilder.swift +405 -0
- package/ios/THEOplayerRCTTypeUtils.swift +18 -0
- package/ios/THEOplayerRCTView.swift +115 -56
- package/ios/THEOplayerRCTViewAdEventHandler.swift +238 -0
- package/ios/{THEOplayerRCTViewEventHandler.swift → THEOplayerRCTViewMainEventHandler.swift} +8 -120
- package/ios/THEOplayerRCTViewTextTrackEventHandler.swift +134 -0
- package/ios/Theoplayer-Bridging-Header.h +3 -1
- package/ios/custom/Frameworks/ios/put_custom_ios_xcframework_here.txt +2 -0
- package/ios/custom/react-native-theoplayer_custom_ios.podspec +36 -0
- package/ios/custom/theofeatures.sh +14 -0
- package/lib/commonjs/api/THEOplayerView.js.map +1 -1
- package/lib/commonjs/api/abr/ABRConfiguration.js +2 -0
- package/lib/commonjs/api/abr/ABRConfiguration.js.map +1 -0
- package/lib/commonjs/api/abr/barrel.js +19 -0
- package/lib/commonjs/api/abr/barrel.js.map +1 -0
- package/lib/commonjs/api/ads/Ad.js +6 -0
- package/lib/commonjs/api/ads/Ad.js.map +1 -0
- package/lib/commonjs/api/ads/AdBreak.js +6 -0
- package/lib/commonjs/api/ads/AdBreak.js.map +1 -0
- package/lib/commonjs/api/ads/AdsAPI.js +6 -0
- package/lib/commonjs/api/ads/AdsAPI.js.map +1 -0
- package/lib/commonjs/api/ads/AdsConfiguration.js +6 -0
- package/lib/commonjs/api/ads/AdsConfiguration.js.map +1 -0
- package/lib/commonjs/api/ads/CompanionAd.js +2 -0
- package/lib/commonjs/api/ads/CompanionAd.js.map +1 -0
- package/lib/commonjs/api/ads/GoogleDai.js +2 -0
- package/lib/commonjs/api/ads/GoogleDai.js.map +1 -0
- package/lib/commonjs/api/ads/GoogleImaAd.js +6 -0
- package/lib/commonjs/api/ads/GoogleImaAd.js.map +1 -0
- package/lib/commonjs/api/ads/GoogleImaConfiguration.js +2 -0
- package/lib/commonjs/api/ads/GoogleImaConfiguration.js.map +1 -0
- package/lib/commonjs/api/ads/barrel.js +110 -0
- package/lib/commonjs/api/ads/barrel.js.map +1 -0
- package/lib/commonjs/api/barrel.js +58 -6
- package/lib/commonjs/api/barrel.js.map +1 -1
- package/lib/commonjs/api/config/PlayerConfiguration.js +4 -0
- package/lib/commonjs/api/config/PlayerConfiguration.js.map +1 -1
- package/lib/commonjs/api/drm/ContentProtectionAPI.js +6 -0
- package/lib/commonjs/api/drm/ContentProtectionAPI.js.map +1 -0
- package/lib/commonjs/api/drm/ContentProtectionIntegration.js +6 -0
- package/lib/commonjs/api/drm/ContentProtectionIntegration.js.map +1 -0
- package/lib/commonjs/api/drm/ContentProtectionIntegrationFactory.js +6 -0
- package/lib/commonjs/api/drm/ContentProtectionIntegrationFactory.js.map +1 -0
- package/lib/commonjs/api/drm/ContentProtectionRequest.js +2 -0
- package/lib/commonjs/api/drm/ContentProtectionRequest.js.map +1 -0
- package/lib/commonjs/api/drm/ContentProtectionResponse.js +6 -0
- package/lib/commonjs/api/drm/ContentProtectionResponse.js.map +1 -0
- package/lib/commonjs/api/drm/barrel.js +71 -0
- package/lib/commonjs/api/drm/barrel.js.map +1 -0
- package/lib/commonjs/api/event/AdEvent.js +89 -0
- package/lib/commonjs/api/event/AdEvent.js.map +1 -0
- package/lib/commonjs/api/event/barrel.js +13 -0
- package/lib/commonjs/api/event/barrel.js.map +1 -1
- package/lib/commonjs/api/source/SourceDescription.js.map +1 -1
- package/lib/commonjs/api/source/ads/FreeWheelAdDescription.js +6 -0
- package/lib/commonjs/api/source/ads/FreeWheelAdDescription.js.map +1 -0
- package/lib/commonjs/api/source/ads/IMAAdDescription.js +6 -0
- package/lib/commonjs/api/source/ads/IMAAdDescription.js.map +1 -0
- package/lib/commonjs/api/source/ads/SpotXAdDescription.js +6 -0
- package/lib/commonjs/api/source/ads/SpotXAdDescription.js.map +1 -0
- package/lib/commonjs/api/source/ads/THEOplayerAdDescription.js +6 -0
- package/lib/commonjs/api/source/ads/THEOplayerAdDescription.js.map +1 -0
- package/lib/commonjs/api/source/ads/barrel.js +84 -0
- package/lib/commonjs/api/source/ads/barrel.js.map +1 -0
- package/lib/commonjs/api/source/ads/ssai/GoogleDAIConfiguration.js +6 -0
- package/lib/commonjs/api/source/ads/ssai/GoogleDAIConfiguration.js.map +1 -0
- package/lib/commonjs/api/source/ads/ssai/ImagineServerSideAdInsertionConfiguration.js +6 -0
- package/lib/commonjs/api/source/ads/ssai/ImagineServerSideAdInsertionConfiguration.js.map +1 -0
- package/lib/commonjs/api/source/ads/ssai/ServerSideAdInsertionConfiguration.js +6 -0
- package/lib/commonjs/api/source/ads/ssai/ServerSideAdInsertionConfiguration.js.map +1 -0
- package/lib/commonjs/api/source/ads/ssai/YospaceServerSideAdInsertionConfiguration.js +6 -0
- package/lib/commonjs/api/source/ads/ssai/YospaceServerSideAdInsertionConfiguration.js.map +1 -0
- package/lib/commonjs/api/source/ads/ssai/barrel.js +58 -0
- package/lib/commonjs/api/source/ads/ssai/barrel.js.map +1 -0
- package/lib/commonjs/api/source/barrel.js +16 -3
- package/lib/commonjs/api/source/barrel.js.map +1 -1
- package/lib/commonjs/api/source/drm/DRMConfiguration.js.map +1 -1
- package/lib/commonjs/api/track/MediaTrack.js +29 -0
- package/lib/commonjs/api/track/MediaTrack.js.map +1 -1
- package/lib/commonjs/api/utils/TypeUtils.js +62 -0
- package/lib/commonjs/api/utils/TypeUtils.js.map +1 -0
- package/lib/commonjs/api/utils/barrel.js +19 -0
- package/lib/commonjs/api/utils/barrel.js.map +1 -0
- package/lib/commonjs/index.js +10 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/internal/THEOplayerView.js +42 -3
- package/lib/commonjs/internal/THEOplayerView.js.map +1 -1
- package/lib/commonjs/internal/THEOplayerView.web.js +41 -2
- package/lib/commonjs/internal/THEOplayerView.web.js.map +1 -1
- package/lib/commonjs/internal/ads/THEOplayerNativeAdsAPI.js +54 -0
- package/lib/commonjs/internal/ads/THEOplayerNativeAdsAPI.js.map +1 -0
- package/lib/commonjs/internal/ads/THEOplayerNativeGoogleDAI.js +34 -0
- package/lib/commonjs/internal/ads/THEOplayerNativeGoogleDAI.js.map +1 -0
- package/lib/commonjs/internal/ads/THEOplayerWebAdsAPI.js +78 -0
- package/lib/commonjs/internal/ads/THEOplayerWebAdsAPI.js.map +1 -0
- package/lib/commonjs/internal/ads/THEOplayerWebGoogleDAI.js +32 -0
- package/lib/commonjs/internal/ads/THEOplayerWebGoogleDAI.js.map +1 -0
- package/lib/commonjs/internal/drm/ContentProtectionRegistry.js +214 -0
- package/lib/commonjs/internal/drm/ContentProtectionRegistry.js.map +1 -0
- package/lib/commonjs/internal/drm/ContentProtectionRegistry.web.js +20 -0
- package/lib/commonjs/internal/drm/ContentProtectionRegistry.web.js.map +1 -0
- package/lib/commonjs/internal/drm/NativeCertificateRequest.js +41 -0
- package/lib/commonjs/internal/drm/NativeCertificateRequest.js.map +1 -0
- package/lib/commonjs/internal/drm/NativeCertificateResponse.js +41 -0
- package/lib/commonjs/internal/drm/NativeCertificateResponse.js.map +1 -0
- package/lib/commonjs/internal/drm/NativeContentProtectionEvent.js +2 -0
- package/lib/commonjs/internal/drm/NativeContentProtectionEvent.js.map +1 -0
- package/lib/commonjs/internal/drm/NativeLicenseRequest.js +44 -0
- package/lib/commonjs/internal/drm/NativeLicenseRequest.js.map +1 -0
- package/lib/commonjs/internal/drm/NativeLicenseResponse.js +41 -0
- package/lib/commonjs/internal/drm/NativeLicenseResponse.js.map +1 -0
- package/lib/commonjs/internal/utils/TypeUtils.js +41 -0
- package/lib/commonjs/internal/utils/TypeUtils.js.map +1 -0
- package/lib/commonjs/internal/web/TrackUtils.js +19 -0
- package/lib/commonjs/internal/web/TrackUtils.js.map +1 -1
- package/lib/module/api/THEOplayerView.js.map +1 -1
- package/lib/module/api/abr/ABRConfiguration.js +2 -0
- package/lib/module/api/abr/ABRConfiguration.js.map +1 -0
- package/lib/module/api/abr/barrel.js +2 -0
- package/lib/module/api/abr/barrel.js.map +1 -0
- package/lib/module/api/ads/Ad.js +2 -0
- package/lib/module/api/ads/Ad.js.map +1 -0
- package/lib/module/api/ads/AdBreak.js +2 -0
- package/lib/module/api/ads/AdBreak.js.map +1 -0
- package/lib/module/api/ads/AdsAPI.js +2 -0
- package/lib/module/api/ads/AdsAPI.js.map +1 -0
- package/lib/module/api/ads/AdsConfiguration.js +2 -0
- package/lib/module/api/ads/AdsConfiguration.js.map +1 -0
- package/lib/module/api/ads/CompanionAd.js +2 -0
- package/lib/module/api/ads/CompanionAd.js.map +1 -0
- package/lib/module/api/ads/GoogleDai.js +2 -0
- package/lib/module/api/ads/GoogleDai.js.map +1 -0
- package/lib/module/api/ads/GoogleImaAd.js +2 -0
- package/lib/module/api/ads/GoogleImaAd.js.map +1 -0
- package/lib/module/api/ads/GoogleImaConfiguration.js +2 -0
- package/lib/module/api/ads/GoogleImaConfiguration.js.map +1 -0
- package/lib/module/api/ads/barrel.js +9 -0
- package/lib/module/api/ads/barrel.js.map +1 -0
- package/lib/module/api/barrel.js +5 -1
- package/lib/module/api/barrel.js.map +1 -1
- package/lib/module/api/config/PlayerConfiguration.js +1 -1
- package/lib/module/api/config/PlayerConfiguration.js.map +1 -1
- package/lib/module/api/drm/ContentProtectionAPI.js +2 -0
- package/lib/module/api/drm/ContentProtectionAPI.js.map +1 -0
- package/lib/module/api/drm/ContentProtectionIntegration.js +2 -0
- package/lib/module/api/drm/ContentProtectionIntegration.js.map +1 -0
- package/lib/module/api/drm/ContentProtectionIntegrationFactory.js +2 -0
- package/lib/module/api/drm/ContentProtectionIntegrationFactory.js.map +1 -0
- package/lib/module/api/drm/ContentProtectionRequest.js +2 -0
- package/lib/module/api/drm/ContentProtectionRequest.js.map +1 -0
- package/lib/module/api/drm/ContentProtectionResponse.js +2 -0
- package/lib/module/api/drm/ContentProtectionResponse.js.map +1 -0
- package/lib/module/api/drm/barrel.js +6 -0
- package/lib/module/api/drm/barrel.js.map +1 -0
- package/lib/module/api/event/AdEvent.js +82 -0
- package/lib/module/api/event/AdEvent.js.map +1 -0
- package/lib/module/api/event/barrel.js +1 -0
- package/lib/module/api/event/barrel.js.map +1 -1
- package/lib/module/api/source/SourceDescription.js.map +1 -1
- package/lib/module/api/source/ads/FreeWheelAdDescription.js +2 -0
- package/lib/module/api/source/ads/FreeWheelAdDescription.js.map +1 -0
- package/lib/module/api/source/ads/IMAAdDescription.js +2 -0
- package/lib/module/api/source/ads/IMAAdDescription.js.map +1 -0
- package/lib/module/api/source/ads/SpotXAdDescription.js +2 -0
- package/lib/module/api/source/ads/SpotXAdDescription.js.map +1 -0
- package/lib/module/api/source/ads/THEOplayerAdDescription.js +2 -0
- package/lib/module/api/source/ads/THEOplayerAdDescription.js.map +1 -0
- package/lib/module/api/source/ads/barrel.js +7 -0
- package/lib/module/api/source/ads/barrel.js.map +1 -0
- package/lib/module/api/source/ads/ssai/GoogleDAIConfiguration.js +2 -0
- package/lib/module/api/source/ads/ssai/GoogleDAIConfiguration.js.map +1 -0
- package/lib/module/api/source/ads/ssai/ImagineServerSideAdInsertionConfiguration.js +2 -0
- package/lib/module/api/source/ads/ssai/ImagineServerSideAdInsertionConfiguration.js.map +1 -0
- package/lib/module/api/source/ads/ssai/ServerSideAdInsertionConfiguration.js +2 -0
- package/lib/module/api/source/ads/ssai/ServerSideAdInsertionConfiguration.js.map +1 -0
- package/lib/module/api/source/ads/ssai/YospaceServerSideAdInsertionConfiguration.js +2 -0
- package/lib/module/api/source/ads/ssai/YospaceServerSideAdInsertionConfiguration.js.map +1 -0
- package/lib/module/api/source/ads/ssai/barrel.js +5 -0
- package/lib/module/api/source/ads/ssai/barrel.js.map +1 -0
- package/lib/module/api/source/barrel.js +1 -0
- package/lib/module/api/source/barrel.js.map +1 -1
- package/lib/module/api/source/drm/DRMConfiguration.js.map +1 -1
- package/lib/module/api/track/MediaTrack.js +23 -1
- package/lib/module/api/track/MediaTrack.js.map +1 -1
- package/lib/module/api/utils/TypeUtils.js +36 -0
- package/lib/module/api/utils/TypeUtils.js.map +1 -0
- package/lib/module/api/utils/barrel.js +2 -0
- package/lib/module/api/utils/barrel.js.map +1 -0
- package/lib/module/index.js +1 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/internal/THEOplayerView.js +40 -3
- package/lib/module/internal/THEOplayerView.js.map +1 -1
- package/lib/module/internal/THEOplayerView.web.js +42 -4
- package/lib/module/internal/THEOplayerView.web.js.map +1 -1
- package/lib/module/internal/ads/THEOplayerNativeAdsAPI.js +43 -0
- package/lib/module/internal/ads/THEOplayerNativeAdsAPI.js.map +1 -0
- package/lib/module/internal/ads/THEOplayerNativeGoogleDAI.js +24 -0
- package/lib/module/internal/ads/THEOplayerNativeGoogleDAI.js.map +1 -0
- package/lib/module/internal/ads/THEOplayerWebAdsAPI.js +68 -0
- package/lib/module/internal/ads/THEOplayerWebAdsAPI.js.map +1 -0
- package/lib/module/internal/ads/THEOplayerWebGoogleDAI.js +23 -0
- package/lib/module/internal/ads/THEOplayerWebGoogleDAI.js.map +1 -0
- package/lib/module/internal/drm/ContentProtectionRegistry.js +188 -0
- package/lib/module/internal/drm/ContentProtectionRegistry.js.map +1 -0
- package/lib/module/internal/drm/ContentProtectionRegistry.web.js +9 -0
- package/lib/module/internal/drm/ContentProtectionRegistry.web.js.map +1 -0
- package/lib/module/internal/drm/NativeCertificateRequest.js +31 -0
- package/lib/module/internal/drm/NativeCertificateRequest.js.map +1 -0
- package/lib/module/internal/drm/NativeCertificateResponse.js +30 -0
- package/lib/module/internal/drm/NativeCertificateResponse.js.map +1 -0
- package/lib/module/internal/drm/NativeContentProtectionEvent.js +2 -0
- package/lib/module/internal/drm/NativeContentProtectionEvent.js.map +1 -0
- package/lib/module/internal/drm/NativeLicenseRequest.js +34 -0
- package/lib/module/internal/drm/NativeLicenseRequest.js.map +1 -0
- package/lib/module/internal/drm/NativeLicenseResponse.js +30 -0
- package/lib/module/internal/drm/NativeLicenseResponse.js.map +1 -0
- package/lib/module/internal/utils/TypeUtils.js +24 -0
- package/lib/module/internal/utils/TypeUtils.js.map +1 -0
- package/lib/module/internal/web/TrackUtils.js +15 -0
- package/lib/module/internal/web/TrackUtils.js.map +1 -1
- package/lib/typescript/lib/commonjs/api/abr/ABRConfiguration.d.ts +0 -0
- package/lib/typescript/lib/commonjs/api/abr/barrel.d.ts +1 -0
- package/lib/typescript/lib/commonjs/api/ads/Ad.d.ts +1 -0
- package/lib/typescript/lib/commonjs/api/ads/AdBreak.d.ts +1 -0
- package/lib/typescript/lib/commonjs/api/ads/AdsAPI.d.ts +1 -0
- package/lib/typescript/lib/commonjs/api/ads/AdsConfiguration.d.ts +1 -0
- package/lib/typescript/lib/commonjs/api/ads/CompanionAd.d.ts +0 -0
- package/lib/typescript/lib/commonjs/api/ads/GoogleDai.d.ts +0 -0
- package/lib/typescript/lib/commonjs/api/ads/GoogleImaAd.d.ts +1 -0
- package/lib/typescript/lib/commonjs/api/ads/GoogleImaConfiguration.d.ts +0 -0
- package/lib/typescript/lib/commonjs/api/ads/barrel.d.ts +1 -0
- package/lib/typescript/lib/commonjs/api/config/PlayerConfiguration.d.ts +1 -0
- package/lib/typescript/lib/commonjs/api/drm/ContentProtectionAPI.d.ts +1 -0
- package/lib/typescript/lib/commonjs/api/drm/ContentProtectionIntegration.d.ts +1 -0
- package/lib/typescript/lib/commonjs/api/drm/ContentProtectionIntegrationFactory.d.ts +1 -0
- package/lib/typescript/lib/commonjs/api/drm/ContentProtectionRequest.d.ts +0 -0
- package/lib/typescript/lib/commonjs/api/drm/ContentProtectionResponse.d.ts +1 -0
- package/lib/typescript/lib/commonjs/api/drm/barrel.d.ts +1 -0
- package/lib/typescript/lib/commonjs/api/event/AdEvent.d.ts +2 -0
- package/lib/typescript/lib/commonjs/api/source/ads/FreeWheelAdDescription.d.ts +1 -0
- package/lib/typescript/lib/commonjs/api/source/ads/IMAAdDescription.d.ts +1 -0
- package/lib/typescript/lib/commonjs/api/source/ads/SpotXAdDescription.d.ts +1 -0
- package/lib/typescript/lib/commonjs/api/source/ads/THEOplayerAdDescription.d.ts +1 -0
- package/lib/typescript/lib/commonjs/api/source/ads/barrel.d.ts +1 -0
- package/lib/typescript/lib/commonjs/api/source/ads/ssai/GoogleDAIConfiguration.d.ts +1 -0
- package/lib/typescript/lib/commonjs/api/source/ads/ssai/ImagineServerSideAdInsertionConfiguration.d.ts +1 -0
- package/lib/typescript/lib/commonjs/api/source/ads/ssai/ServerSideAdInsertionConfiguration.d.ts +1 -0
- package/lib/typescript/lib/commonjs/api/source/ads/ssai/YospaceServerSideAdInsertionConfiguration.d.ts +1 -0
- package/lib/typescript/lib/commonjs/api/source/ads/ssai/barrel.d.ts +1 -0
- package/lib/typescript/lib/commonjs/api/track/MediaTrack.d.ts +8 -0
- package/lib/typescript/lib/commonjs/api/utils/TypeUtils.d.ts +13 -0
- package/lib/typescript/lib/commonjs/api/utils/barrel.d.ts +1 -0
- package/lib/typescript/lib/commonjs/index.d.ts +2 -0
- package/lib/typescript/lib/commonjs/internal/THEOplayerView.d.ts +5 -0
- package/lib/typescript/lib/commonjs/internal/THEOplayerView.web.d.ts +4 -0
- package/lib/typescript/lib/commonjs/internal/ads/THEOplayerNativeAdsAPI.d.ts +14 -0
- package/lib/typescript/lib/commonjs/internal/ads/THEOplayerNativeGoogleDAI.d.ts +9 -0
- package/lib/typescript/lib/commonjs/internal/ads/THEOplayerWebAdsAPI.d.ts +14 -0
- package/lib/typescript/lib/commonjs/internal/ads/THEOplayerWebGoogleDAI.d.ts +9 -0
- package/lib/typescript/lib/commonjs/internal/drm/ContentProtectionRegistry.d.ts +14 -0
- package/lib/typescript/lib/commonjs/internal/drm/ContentProtectionRegistry.web.d.ts +5 -0
- package/lib/typescript/lib/commonjs/internal/drm/NativeCertificateRequest.d.ts +18 -0
- package/lib/typescript/lib/commonjs/internal/drm/NativeCertificateResponse.d.ts +21 -0
- package/lib/typescript/lib/commonjs/internal/drm/NativeContentProtectionEvent.d.ts +0 -0
- package/lib/typescript/lib/commonjs/internal/drm/NativeLicenseRequest.d.ts +20 -0
- package/lib/typescript/lib/commonjs/internal/drm/NativeLicenseResponse.d.ts +22 -0
- package/lib/typescript/lib/commonjs/internal/utils/TypeUtils.d.ts +6 -0
- package/lib/typescript/lib/commonjs/internal/web/TrackUtils.d.ts +2 -0
- package/lib/typescript/lib/module/api/abr/ABRConfiguration.d.ts +0 -0
- package/lib/typescript/lib/module/api/abr/barrel.d.ts +1 -0
- package/lib/typescript/lib/module/api/ads/Ad.d.ts +1 -0
- package/lib/typescript/lib/module/api/ads/AdBreak.d.ts +1 -0
- package/lib/typescript/lib/module/api/ads/AdsAPI.d.ts +1 -0
- package/lib/typescript/lib/module/api/ads/AdsConfiguration.d.ts +1 -0
- package/lib/typescript/lib/module/api/ads/CompanionAd.d.ts +0 -0
- package/lib/typescript/lib/module/api/ads/GoogleDai.d.ts +0 -0
- package/lib/typescript/lib/module/api/ads/GoogleImaAd.d.ts +1 -0
- package/lib/typescript/lib/module/api/ads/GoogleImaConfiguration.d.ts +0 -0
- package/lib/typescript/lib/module/api/ads/barrel.d.ts +5 -0
- package/lib/typescript/lib/module/api/barrel.d.ts +5 -1
- package/lib/typescript/lib/module/api/config/PlayerConfiguration.d.ts +1 -0
- package/lib/typescript/lib/module/api/config/barrel.d.ts +1 -1
- package/lib/typescript/lib/module/api/drm/ContentProtectionAPI.d.ts +1 -0
- package/lib/typescript/lib/module/api/drm/ContentProtectionIntegration.d.ts +1 -0
- package/lib/typescript/lib/module/api/drm/ContentProtectionIntegrationFactory.d.ts +1 -0
- package/lib/typescript/lib/module/api/drm/ContentProtectionRequest.d.ts +0 -0
- package/lib/typescript/lib/module/api/drm/ContentProtectionResponse.d.ts +1 -0
- package/lib/typescript/lib/module/api/drm/barrel.d.ts +4 -0
- package/lib/typescript/lib/module/api/event/AdEvent.d.ts +1 -0
- package/lib/typescript/lib/module/api/event/barrel.d.ts +1 -0
- package/lib/typescript/lib/module/api/source/ads/FreeWheelAdDescription.d.ts +1 -0
- package/lib/typescript/lib/module/api/source/ads/IMAAdDescription.d.ts +1 -0
- package/lib/typescript/lib/module/api/source/ads/SpotXAdDescription.d.ts +1 -0
- package/lib/typescript/lib/module/api/source/ads/THEOplayerAdDescription.d.ts +1 -0
- package/lib/typescript/lib/module/api/source/ads/barrel.d.ts +5 -0
- package/lib/typescript/lib/module/api/source/ads/ssai/GoogleDAIConfiguration.d.ts +1 -0
- package/lib/typescript/lib/module/api/source/ads/ssai/ImagineServerSideAdInsertionConfiguration.d.ts +1 -0
- package/lib/typescript/lib/module/api/source/ads/ssai/ServerSideAdInsertionConfiguration.d.ts +1 -0
- package/lib/typescript/lib/module/api/source/ads/ssai/YospaceServerSideAdInsertionConfiguration.d.ts +1 -0
- package/lib/typescript/lib/module/api/source/ads/ssai/barrel.d.ts +4 -0
- package/lib/typescript/lib/module/api/source/barrel.d.ts +1 -0
- package/lib/typescript/lib/module/api/track/MediaTrack.d.ts +8 -1
- package/lib/typescript/lib/module/api/utils/TypeUtils.d.ts +12 -0
- package/lib/typescript/lib/module/api/utils/barrel.d.ts +1 -0
- package/lib/typescript/lib/module/index.d.ts +1 -0
- package/lib/typescript/lib/module/internal/THEOplayerView.d.ts +8 -0
- package/lib/typescript/lib/module/internal/THEOplayerView.web.d.ts +4 -0
- package/lib/typescript/lib/module/internal/ads/THEOplayerNativeAdsAPI.d.ts +13 -0
- package/lib/typescript/lib/module/internal/ads/THEOplayerNativeGoogleDAI.d.ts +8 -0
- package/lib/typescript/lib/module/internal/ads/THEOplayerWebAdsAPI.d.ts +13 -0
- package/lib/typescript/lib/module/internal/ads/THEOplayerWebGoogleDAI.d.ts +8 -0
- package/lib/typescript/lib/module/internal/drm/ContentProtectionRegistry.d.ts +13 -0
- package/lib/typescript/lib/module/internal/drm/ContentProtectionRegistry.web.d.ts +4 -0
- package/lib/typescript/lib/module/internal/drm/NativeCertificateRequest.d.ts +17 -0
- package/lib/typescript/lib/module/internal/drm/NativeCertificateResponse.d.ts +20 -0
- package/lib/typescript/lib/module/internal/drm/NativeContentProtectionEvent.d.ts +0 -0
- package/lib/typescript/lib/module/internal/drm/NativeLicenseRequest.d.ts +19 -0
- package/lib/typescript/lib/module/internal/drm/NativeLicenseResponse.d.ts +21 -0
- package/lib/typescript/lib/module/internal/utils/TypeUtils.d.ts +5 -0
- package/lib/typescript/lib/module/internal/web/TrackUtils.d.ts +2 -0
- package/lib/typescript/src/__tests__/index.test.d.ts +1 -0
- package/lib/typescript/src/api/THEOplayerView.d.ts +25 -4
- package/lib/typescript/src/api/abr/ABRConfiguration.d.ts +95 -0
- package/lib/typescript/src/api/abr/barrel.d.ts +1 -0
- package/lib/typescript/src/api/ads/Ad.d.ts +238 -0
- package/lib/typescript/src/api/ads/AdBreak.d.ts +39 -0
- package/lib/typescript/src/api/ads/AdsAPI.d.ts +46 -0
- package/lib/typescript/src/api/ads/AdsConfiguration.d.ts +69 -0
- package/lib/typescript/src/api/ads/CompanionAd.d.ts +59 -0
- package/lib/typescript/src/api/ads/GoogleDai.d.ts +29 -0
- package/lib/typescript/src/api/ads/GoogleImaAd.d.ts +78 -0
- package/lib/typescript/src/api/ads/GoogleImaConfiguration.d.ts +13 -0
- package/lib/typescript/src/api/ads/barrel.d.ts +8 -0
- package/lib/typescript/src/api/barrel.d.ts +5 -1
- package/lib/typescript/src/api/config/PlayerConfiguration.d.ts +5 -0
- package/lib/typescript/src/api/drm/ContentProtectionAPI.d.ts +5 -0
- package/lib/typescript/src/api/drm/ContentProtectionIntegration.d.ts +86 -0
- package/lib/typescript/src/api/drm/ContentProtectionIntegrationFactory.d.ts +15 -0
- package/lib/typescript/src/api/drm/ContentProtectionRequest.d.ts +56 -0
- package/lib/typescript/src/api/drm/ContentProtectionResponse.d.ts +56 -0
- package/lib/typescript/src/api/drm/barrel.d.ts +5 -0
- package/lib/typescript/src/api/event/AdEvent.d.ts +13 -0
- package/lib/typescript/src/api/event/barrel.d.ts +1 -0
- package/lib/typescript/src/api/source/SourceDescription.d.ts +8 -0
- package/lib/typescript/src/api/source/ads/FreeWheelAdDescription.d.ts +85 -0
- package/lib/typescript/src/api/source/ads/IMAAdDescription.d.ts +25 -0
- package/lib/typescript/src/api/source/ads/SpotXAdDescription.d.ts +115 -0
- package/lib/typescript/src/api/source/ads/THEOplayerAdDescription.d.ts +32 -0
- package/lib/typescript/src/api/source/ads/barrel.d.ts +6 -0
- package/lib/typescript/src/api/source/ads/ssai/GoogleDAIConfiguration.d.ts +130 -0
- package/lib/typescript/src/api/source/ads/ssai/ImagineServerSideAdInsertionConfiguration.d.ts +27 -0
- package/lib/typescript/src/api/source/ads/ssai/ServerSideAdInsertionConfiguration.d.ts +26 -0
- package/lib/typescript/src/api/source/ads/ssai/YospaceServerSideAdInsertionConfiguration.d.ts +46 -0
- package/lib/typescript/src/api/source/ads/ssai/barrel.d.ts +4 -0
- package/lib/typescript/src/api/source/barrel.d.ts +1 -0
- package/lib/typescript/src/api/source/drm/DRMConfiguration.d.ts +0 -30
- package/lib/typescript/src/api/track/MediaTrack.d.ts +5 -2
- package/lib/typescript/src/api/utils/TypeUtils.d.ts +20 -0
- package/lib/typescript/src/api/utils/barrel.d.ts +1 -0
- package/lib/typescript/src/index.d.ts +1 -0
- package/lib/typescript/src/internal/THEOplayerView.d.ts +10 -4
- package/lib/typescript/src/internal/THEOplayerView.web.d.ts +7 -2
- package/lib/typescript/src/internal/ads/THEOplayerNativeAdsAPI.d.ts +17 -0
- package/lib/typescript/src/internal/ads/THEOplayerNativeGoogleDAI.d.ts +10 -0
- package/lib/typescript/src/internal/ads/THEOplayerWebAdsAPI.d.ts +15 -0
- package/lib/typescript/src/internal/ads/THEOplayerWebGoogleDAI.d.ts +10 -0
- package/lib/typescript/src/internal/drm/ContentProtectionRegistry.d.ts +19 -0
- package/lib/typescript/src/internal/drm/ContentProtectionRegistry.web.d.ts +5 -0
- package/lib/typescript/src/internal/drm/NativeCertificateRequest.d.ts +13 -0
- package/lib/typescript/src/internal/drm/NativeCertificateResponse.d.ts +18 -0
- package/lib/typescript/src/internal/drm/NativeContentProtectionEvent.d.ts +5 -0
- package/lib/typescript/src/internal/drm/NativeLicenseRequest.d.ts +14 -0
- package/lib/typescript/src/internal/drm/NativeLicenseResponse.d.ts +18 -0
- package/lib/typescript/src/internal/utils/TypeUtils.d.ts +5 -0
- package/lib/typescript/src/internal/web/TrackUtils.d.ts +3 -1
- package/package.json +4 -14
- package/src/__tests__/index.test.tsx +1 -0
- package/src/api/THEOplayerView.ts +29 -4
- package/src/api/abr/ABRConfiguration.ts +103 -0
- package/src/api/abr/barrel.ts +1 -0
- package/src/api/ads/Ad.ts +267 -0
- package/src/api/ads/AdBreak.ts +44 -0
- package/src/api/ads/AdsAPI.ts +53 -0
- package/src/api/ads/AdsConfiguration.ts +76 -0
- package/src/api/ads/CompanionAd.ts +65 -0
- package/src/api/ads/GoogleDai.ts +32 -0
- package/src/api/ads/GoogleImaAd.ts +86 -0
- package/src/api/ads/GoogleImaConfiguration.ts +13 -0
- package/src/api/ads/barrel.ts +8 -0
- package/src/api/barrel.ts +5 -1
- package/src/api/config/PlayerConfiguration.ts +7 -0
- package/src/api/drm/ContentProtectionAPI.ts +6 -0
- package/src/api/drm/ContentProtectionIntegration.ts +93 -0
- package/src/api/drm/ContentProtectionIntegrationFactory.ts +16 -0
- package/src/api/drm/ContentProtectionRequest.ts +60 -0
- package/src/api/drm/ContentProtectionResponse.ts +62 -0
- package/src/api/drm/barrel.ts +5 -0
- package/src/api/event/AdEvent.ts +117 -0
- package/src/api/event/barrel.ts +1 -0
- package/src/api/source/SourceDescription.ts +9 -0
- package/src/api/source/ads/FreeWheelAdDescription.ts +97 -0
- package/src/api/source/ads/IMAAdDescription.ts +26 -0
- package/src/api/source/ads/SpotXAdDescription.ts +126 -0
- package/src/api/source/ads/THEOplayerAdDescription.ts +34 -0
- package/src/api/source/ads/barrel.ts +6 -0
- package/src/api/source/ads/ssai/GoogleDAIConfiguration.ts +145 -0
- package/src/api/source/ads/ssai/ImagineServerSideAdInsertionConfiguration.ts +30 -0
- package/src/api/source/ads/ssai/ServerSideAdInsertionConfiguration.ts +28 -0
- package/src/api/source/ads/ssai/YospaceServerSideAdInsertionConfiguration.ts +51 -0
- package/src/api/source/ads/ssai/barrel.ts +4 -0
- package/src/api/source/barrel.ts +1 -0
- package/src/api/source/drm/DRMConfiguration.ts +0 -35
- package/src/api/track/MediaTrack.ts +22 -2
- package/src/api/utils/TypeUtils.ts +39 -0
- package/src/api/utils/barrel.ts +1 -0
- package/src/index.tsx +1 -0
- package/src/internal/THEOplayerView.tsx +49 -8
- package/src/internal/THEOplayerView.web.tsx +37 -7
- package/src/internal/ads/THEOplayerNativeAdsAPI.ts +44 -0
- package/src/internal/ads/THEOplayerNativeGoogleDAI.ts +23 -0
- package/src/internal/ads/THEOplayerWebAdsAPI.ts +51 -0
- package/src/internal/ads/THEOplayerWebGoogleDAI.ts +22 -0
- package/src/internal/drm/ContentProtectionRegistry.ts +173 -0
- package/src/internal/drm/ContentProtectionRegistry.web.ts +10 -0
- package/src/internal/drm/NativeCertificateRequest.ts +41 -0
- package/src/internal/drm/NativeCertificateResponse.ts +45 -0
- package/src/internal/drm/NativeContentProtectionEvent.ts +5 -0
- package/src/internal/drm/NativeLicenseRequest.ts +39 -0
- package/src/internal/drm/NativeLicenseResponse.ts +45 -0
- package/src/internal/utils/TypeUtils.ts +39 -0
- package/src/internal/web/TrackUtils.ts +22 -1
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
import type { AdDescription } from "./Ads";
|
|
2
|
+
/**
|
|
3
|
+
* Represents a geographical location.
|
|
4
|
+
*
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export interface Geo {
|
|
8
|
+
/**
|
|
9
|
+
* The latitude of this location.
|
|
10
|
+
*/
|
|
11
|
+
readonly lat: number;
|
|
12
|
+
/**
|
|
13
|
+
* The longitude of this location.
|
|
14
|
+
*/
|
|
15
|
+
readonly lon: number;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* A record of SpotX query string parameters.
|
|
19
|
+
* Each entry contains the parameter name with associated value.
|
|
20
|
+
*
|
|
21
|
+
* @public
|
|
22
|
+
*/
|
|
23
|
+
export interface SpotxData {
|
|
24
|
+
[key: string]: string | number | boolean | string[] | Geo;
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* A record of SpotX query string parameters which can be a nested structure.
|
|
28
|
+
* Each entry contains the parameter name with associated value.
|
|
29
|
+
*
|
|
30
|
+
* @public
|
|
31
|
+
*/
|
|
32
|
+
export interface SpotxQueryParameter {
|
|
33
|
+
[key: string]: string | number | boolean | string[] | Geo | SpotxData | SpotxData[];
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Describes a SpotX ad break request.
|
|
37
|
+
*
|
|
38
|
+
* @remarks
|
|
39
|
+
* <br/> - Available since v2.13.0.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```
|
|
43
|
+
* {
|
|
44
|
+
* integration: 'spotx',
|
|
45
|
+
* id: 123456,
|
|
46
|
+
* cacheBuster: true,
|
|
47
|
+
* app: {
|
|
48
|
+
* bundle: 'com.exampleapps.example',
|
|
49
|
+
* name: 'My CTV App'
|
|
50
|
+
* },
|
|
51
|
+
* device: {
|
|
52
|
+
* ifa: '38400000-8cf0-11bd-b23e-10b96e40000d',
|
|
53
|
+
* ua: 'Mozilla/5.0 (iPhone; CPU iPhone OS 10_3 like Mac OS X) AppleWebKit/602.1.50 (KHTML, like Gecko) CriOS/56.0.2924.75 Mobile/14E5239e Safari/602.1',
|
|
54
|
+
* geo: {
|
|
55
|
+
* lat: -24.378528,
|
|
56
|
+
* lon: -128.325119
|
|
57
|
+
* },
|
|
58
|
+
* dnt: 1,
|
|
59
|
+
* lmt: 1,
|
|
60
|
+
* },
|
|
61
|
+
* custom: {
|
|
62
|
+
* category: ['category1', 'category2'],
|
|
63
|
+
* somekey: 'somevalue'
|
|
64
|
+
* }
|
|
65
|
+
* user: {
|
|
66
|
+
* yob: 1984,
|
|
67
|
+
* gender: 'm'
|
|
68
|
+
* }
|
|
69
|
+
* }
|
|
70
|
+
* ```
|
|
71
|
+
*
|
|
72
|
+
* @public
|
|
73
|
+
*/
|
|
74
|
+
export interface SpotXAdDescription extends AdDescription {
|
|
75
|
+
/**
|
|
76
|
+
* The identifier of the ad break requested from SpotX.
|
|
77
|
+
*/
|
|
78
|
+
id: number | string;
|
|
79
|
+
/**
|
|
80
|
+
* The maximum duration of the ad, in seconds.
|
|
81
|
+
*
|
|
82
|
+
* @defaultValue No maximum duration.
|
|
83
|
+
*/
|
|
84
|
+
maximumAdDuration?: number | string;
|
|
85
|
+
/**
|
|
86
|
+
* The URL of the content page.
|
|
87
|
+
*/
|
|
88
|
+
contentPageUrl?: string;
|
|
89
|
+
/**
|
|
90
|
+
* The IP address of the viewer.
|
|
91
|
+
*/
|
|
92
|
+
ipAddress?: string;
|
|
93
|
+
/**
|
|
94
|
+
* Whether the ad break request should contain a cache buster.
|
|
95
|
+
*
|
|
96
|
+
* @remarks
|
|
97
|
+
* <br/> - A cache buster adds a query parameter 'cb' with a random value to circumvent browser caching mechanisms.
|
|
98
|
+
*/
|
|
99
|
+
cacheBuster?: boolean;
|
|
100
|
+
/**
|
|
101
|
+
* A source URL which contains the location of ad resources to be scheduled.
|
|
102
|
+
*
|
|
103
|
+
* @remarks
|
|
104
|
+
* <br/> - This will override the generated URL.
|
|
105
|
+
*/
|
|
106
|
+
sources?: string;
|
|
107
|
+
/**
|
|
108
|
+
* A record of query string parameters added to the SpotX ad break request.
|
|
109
|
+
* Each entry contains the parameter name with associated value.
|
|
110
|
+
*
|
|
111
|
+
* @remarks
|
|
112
|
+
* <br/> - Available since v2.38.0.
|
|
113
|
+
*/
|
|
114
|
+
queryParameters?: SpotxQueryParameter;
|
|
115
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { AdDescription, AdSource } from "./Ads";
|
|
2
|
+
/**
|
|
3
|
+
* Describes an ad break request.
|
|
4
|
+
*
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
export interface THEOplayerAdDescription extends AdDescription {
|
|
8
|
+
/**
|
|
9
|
+
* The source of the ad
|
|
10
|
+
*
|
|
11
|
+
* @remarks
|
|
12
|
+
* <br/> - Only supports VAST and VMAP.
|
|
13
|
+
*/
|
|
14
|
+
sources: string | AdSource;
|
|
15
|
+
/**
|
|
16
|
+
* Offset after which the ad break can be skipped.
|
|
17
|
+
*
|
|
18
|
+
* @remarks
|
|
19
|
+
* <br/> - A timestamp which is not in the playback window will result in the ad break not being started.
|
|
20
|
+
* <br/> - VMAP resources will ignore this value as they contain an internal offset.
|
|
21
|
+
*
|
|
22
|
+
* Possible formats:
|
|
23
|
+
* <br/> - A number for the offset in seconds.
|
|
24
|
+
* <br/> - `'start'` for a preroll.
|
|
25
|
+
* <br/> - `'end'` for a postroll.
|
|
26
|
+
* <br/> - `'HH:MM:SS.mmm'` for a timestamp in the playback window.
|
|
27
|
+
* <br/> - A percentage string (XX%) for a proportion of the content duration.
|
|
28
|
+
*
|
|
29
|
+
* @defaultValue `'start'`
|
|
30
|
+
*/
|
|
31
|
+
skipOffset?: string | number;
|
|
32
|
+
}
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import type { TypedSource } from '../../SourceDescription';
|
|
2
|
+
import type { ServerSideAdInsertionConfiguration } from './ServerSideAdInsertionConfiguration';
|
|
3
|
+
/**
|
|
4
|
+
* The identifier of the Google DAI integration.
|
|
5
|
+
*
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export declare type GoogleDAISSAIIntegrationID = 'google-dai';
|
|
9
|
+
/**
|
|
10
|
+
* The type of the stream requested from Google DAI, represented by a value from the following list:
|
|
11
|
+
* <br/> - `'live'`: The requested stream is a live stream.
|
|
12
|
+
* <br/> - `'vod'`: The requested stream is a video-on-demand stream.
|
|
13
|
+
*
|
|
14
|
+
* @public
|
|
15
|
+
*/
|
|
16
|
+
export declare type DAIAvailabilityType = 'vod' | 'live';
|
|
17
|
+
/**
|
|
18
|
+
* Represents a configuration for server-side ad insertion with the Google DAI pre-integration.
|
|
19
|
+
*
|
|
20
|
+
* @remarks
|
|
21
|
+
* <br/> - Available since v2.30.0.
|
|
22
|
+
*
|
|
23
|
+
* @public
|
|
24
|
+
*/
|
|
25
|
+
export interface GoogleDAIConfiguration extends ServerSideAdInsertionConfiguration {
|
|
26
|
+
/**
|
|
27
|
+
* The type of the requested stream.
|
|
28
|
+
*/
|
|
29
|
+
readonly availabilityType?: DAIAvailabilityType;
|
|
30
|
+
/**
|
|
31
|
+
* The identifier for the SSAI pre-integration.
|
|
32
|
+
*/
|
|
33
|
+
integration: GoogleDAISSAIIntegrationID;
|
|
34
|
+
/**
|
|
35
|
+
* The authorization token for the stream request.
|
|
36
|
+
*
|
|
37
|
+
* @remarks
|
|
38
|
+
* <br/> - If present, this token is used instead of the API key for stricter content authorization.
|
|
39
|
+
* <br/> - The publisher can control individual content streams authorizations based on this token.
|
|
40
|
+
*/
|
|
41
|
+
authToken?: string;
|
|
42
|
+
/**
|
|
43
|
+
* The API key for the stream request.
|
|
44
|
+
*
|
|
45
|
+
* @remarks
|
|
46
|
+
* <br/> - This key is used to verify applications that are attempting to access the content.
|
|
47
|
+
* <br/> - This key is configured through the Google Ad Manager UI.
|
|
48
|
+
*/
|
|
49
|
+
apiKey: string;
|
|
50
|
+
/**
|
|
51
|
+
* The ad tag parameters added to stream request.
|
|
52
|
+
*
|
|
53
|
+
* @remarks
|
|
54
|
+
* <br/> - Each entry contains the parameter name with associated value.
|
|
55
|
+
*
|
|
56
|
+
* Valid parameters:
|
|
57
|
+
* <br/> - {@link https://support.google.com/admanager/answer/7320899 | Supply targeting parameters to your stream}
|
|
58
|
+
* <br/> - {@link https://support.google.com/admanager/answer/7320898 | Override stream variant parameters}
|
|
59
|
+
*/
|
|
60
|
+
adTagParameters?: Record<string, string>;
|
|
61
|
+
/**
|
|
62
|
+
* The identifier for a stream activity monitor session.
|
|
63
|
+
*/
|
|
64
|
+
streamActivityMonitorID?: string;
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Represents a configuration for server-side ad insertion with the Google DAI pre-integration for a Live media stream.
|
|
68
|
+
*
|
|
69
|
+
* @remarks
|
|
70
|
+
* <br/> - Available since v2.30.0.
|
|
71
|
+
*
|
|
72
|
+
* @public
|
|
73
|
+
*/
|
|
74
|
+
export interface GoogleDAILiveConfiguration extends GoogleDAIConfiguration {
|
|
75
|
+
/**
|
|
76
|
+
* The type of the requested stream.
|
|
77
|
+
*/
|
|
78
|
+
readonly availabilityType: 'live';
|
|
79
|
+
/**
|
|
80
|
+
* The identifier for the video content source for live streams.
|
|
81
|
+
*
|
|
82
|
+
* @remarks
|
|
83
|
+
* <br/> - This property is required for live streams.
|
|
84
|
+
* <br/> - The asset key can be found in the Google Ad Manager UI.
|
|
85
|
+
*/
|
|
86
|
+
assetKey: string;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Represents a configuration for server-side ad insertion with the Google DAI pre-integration for a VOD media stream.
|
|
90
|
+
*
|
|
91
|
+
* @remarks
|
|
92
|
+
* <br/> - Available since v2.30.0.
|
|
93
|
+
*
|
|
94
|
+
* @public
|
|
95
|
+
*/
|
|
96
|
+
export interface GoogleDAIVodConfiguration extends GoogleDAIConfiguration {
|
|
97
|
+
/**
|
|
98
|
+
* The type of the requested stream.
|
|
99
|
+
*/
|
|
100
|
+
readonly availabilityType: 'vod';
|
|
101
|
+
/**
|
|
102
|
+
* The identifier for the publisher content for on-demand streams.
|
|
103
|
+
*
|
|
104
|
+
* @remarks
|
|
105
|
+
* <br/> - The publisher content comes from a CMS.
|
|
106
|
+
* <br/> - This property is required for on-demand streams.
|
|
107
|
+
*/
|
|
108
|
+
contentSourceID: string;
|
|
109
|
+
/**
|
|
110
|
+
* The identifier for the video content source for on-demand streams.
|
|
111
|
+
*
|
|
112
|
+
* @remarks
|
|
113
|
+
* <br/> - This property is required for on-demand streams.
|
|
114
|
+
*/
|
|
115
|
+
videoID: string;
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Represents a media resource with a Google DAI server-side ad insertion request.
|
|
119
|
+
*
|
|
120
|
+
* @public
|
|
121
|
+
*/
|
|
122
|
+
export interface GoogleDAITypedSource extends TypedSource {
|
|
123
|
+
/**
|
|
124
|
+
* The content type (MIME type) of the media resource, represented by a value from the following list:
|
|
125
|
+
* <br/> - `'application/dash+xml'`: The media resource is an MPEG-DASH stream.
|
|
126
|
+
* <br/> - `'application/x-mpegURL'` or `'application/vnd.apple.mpegurl'`: The media resource is an HLS stream.
|
|
127
|
+
*/
|
|
128
|
+
type: string;
|
|
129
|
+
ssai: GoogleDAIVodConfiguration | GoogleDAILiveConfiguration;
|
|
130
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { TypedSource } from '../../SourceDescription';
|
|
2
|
+
import type { ServerSideAdInsertionConfiguration } from './ServerSideAdInsertionConfiguration';
|
|
3
|
+
/**
|
|
4
|
+
* The identifier of the Imagine integration.
|
|
5
|
+
*
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export declare type ImagineSSAIIntegrationID = 'imagine';
|
|
9
|
+
/**
|
|
10
|
+
* Describes the SSAI configuration of the Imagine integration.
|
|
11
|
+
*
|
|
12
|
+
* @public
|
|
13
|
+
*/
|
|
14
|
+
export interface ImagineServerSideAdInsertionConfiguration extends ServerSideAdInsertionConfiguration {
|
|
15
|
+
/**
|
|
16
|
+
* {@inheritDoc ServerSideAdInsertionConfiguration.integration}
|
|
17
|
+
*/
|
|
18
|
+
integration: ImagineSSAIIntegrationID;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Describes a source of the Imagine integration.
|
|
22
|
+
*
|
|
23
|
+
* @public
|
|
24
|
+
*/
|
|
25
|
+
export interface ImagineTypedSource extends TypedSource {
|
|
26
|
+
ssai: ImagineServerSideAdInsertionConfiguration;
|
|
27
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { YospaceSSAIIntegrationID } from './YospaceServerSideAdInsertionConfiguration';
|
|
2
|
+
import type { GoogleDAISSAIIntegrationID } from './GoogleDAIConfiguration';
|
|
3
|
+
import type { ImagineSSAIIntegrationID } from './ImagineServerSideAdInsertionConfiguration';
|
|
4
|
+
/**
|
|
5
|
+
* The identifier of a server-side ad insertion pre-integration, represented by a value from the following list:
|
|
6
|
+
* <br/> - `'yospace'`: The configuration with this identifier is a {@link YospaceServerSideAdInsertionConfiguration}
|
|
7
|
+
* <br/> - `'google-dai'`: The configuration with this identifier is a {@link GoogleDAIConfiguration}
|
|
8
|
+
* <br/> - `'imagine'`: The configuration with this identifier is a {@link ImagineServerSideAdInsertionConfiguration}
|
|
9
|
+
*
|
|
10
|
+
* @public
|
|
11
|
+
*/
|
|
12
|
+
export declare type SSAIIntegrationId = YospaceSSAIIntegrationID | GoogleDAISSAIIntegrationID | ImagineSSAIIntegrationID;
|
|
13
|
+
/**
|
|
14
|
+
* Represents a configuration for server-side ad insertion (SSAI).
|
|
15
|
+
*
|
|
16
|
+
* @remarks
|
|
17
|
+
* <br/> - Available since v2.12.0.
|
|
18
|
+
*
|
|
19
|
+
* @public
|
|
20
|
+
*/
|
|
21
|
+
export interface ServerSideAdInsertionConfiguration {
|
|
22
|
+
/**
|
|
23
|
+
* The identifier for the SSAI integration.
|
|
24
|
+
*/
|
|
25
|
+
integration: SSAIIntegrationId;
|
|
26
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import type { ServerSideAdInsertionConfiguration } from './ServerSideAdInsertionConfiguration';
|
|
2
|
+
import type { TypedSource } from '../../SourceDescription';
|
|
3
|
+
/**
|
|
4
|
+
* The identifier of the Yospace integration.
|
|
5
|
+
*
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export declare type YospaceSSAIIntegrationID = 'yospace';
|
|
9
|
+
/**
|
|
10
|
+
* The type of the Yospace stream, represented by a value from the following list:
|
|
11
|
+
* <br/> - `'live'`: The stream is a live stream.
|
|
12
|
+
* <br/> - `'livepause'`: The stream is a live stream with a large DVR window.
|
|
13
|
+
* <br/> - `'nonlinear'`: The stream is a Non-Linear Start-Over stream.
|
|
14
|
+
* <br/> - `'vod'`: The stream is a video-on-demand stream.
|
|
15
|
+
*
|
|
16
|
+
* @public
|
|
17
|
+
*/
|
|
18
|
+
export declare type YospaceStreamType = 'vod' | 'live' | 'livepause' | 'nonlinear';
|
|
19
|
+
/**
|
|
20
|
+
* Represents a configuration for server-side ad insertion with the Yospace pre-integration.
|
|
21
|
+
*
|
|
22
|
+
* @remarks
|
|
23
|
+
* <br/> - Available since v2.14.7.
|
|
24
|
+
*
|
|
25
|
+
* @public
|
|
26
|
+
*/
|
|
27
|
+
export interface YospaceServerSideAdInsertionConfiguration extends ServerSideAdInsertionConfiguration {
|
|
28
|
+
/**
|
|
29
|
+
* The identifier for the SSAI pre-integration.
|
|
30
|
+
*/
|
|
31
|
+
integration: YospaceSSAIIntegrationID;
|
|
32
|
+
/**
|
|
33
|
+
* The type of the requested stream.
|
|
34
|
+
*
|
|
35
|
+
* @defaultValue `'live'`
|
|
36
|
+
*/
|
|
37
|
+
streamType?: YospaceStreamType;
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Represents a media resource with a Yospace server-side ad insertion request.
|
|
41
|
+
*
|
|
42
|
+
* @public
|
|
43
|
+
*/
|
|
44
|
+
export interface YospaceTypedSource extends TypedSource {
|
|
45
|
+
ssai: YospaceServerSideAdInsertionConfiguration;
|
|
46
|
+
}
|
|
@@ -87,30 +87,6 @@ export interface KeySystemConfiguration {
|
|
|
87
87
|
* The certificate for the key system. This can be either an ArrayBuffer or Uint8Array containing the raw certificate bytes or a base64-encoded variant of this.
|
|
88
88
|
*/
|
|
89
89
|
certificate?: string;
|
|
90
|
-
/**
|
|
91
|
-
* Process the certificate's request.
|
|
92
|
-
*
|
|
93
|
-
* @deprecated Please use {@link registerContentProtectionIntegration} and {@link ContentProtectionIntegration.onCertificateRequest} instead.
|
|
94
|
-
*/
|
|
95
|
-
certificateRequestProcessor?: DRMProcessor;
|
|
96
|
-
/**
|
|
97
|
-
* Process the certificate's response.
|
|
98
|
-
*
|
|
99
|
-
* @deprecated Please use {@link registerContentProtectionIntegration} and {@link ContentProtectionIntegration.onCertificateResponse} instead.
|
|
100
|
-
*/
|
|
101
|
-
certificateResponseProcessor?: DRMProcessor;
|
|
102
|
-
/**
|
|
103
|
-
* Process the license's request.
|
|
104
|
-
*
|
|
105
|
-
* @deprecated Please use {@link registerContentProtectionIntegration} and {@link ContentProtectionIntegration.onLicenseRequest} instead.
|
|
106
|
-
*/
|
|
107
|
-
licenseRequestProcessor?: DRMProcessor;
|
|
108
|
-
/**
|
|
109
|
-
* Process the license's response.
|
|
110
|
-
*
|
|
111
|
-
* @deprecated Please use {@link registerContentProtectionIntegration} and {@link ContentProtectionIntegration.onLicenseResponse} instead.
|
|
112
|
-
*/
|
|
113
|
-
licenseResponseProcessor?: DRMProcessor;
|
|
114
90
|
}
|
|
115
91
|
/**
|
|
116
92
|
* The type of the licence, represented by a value from the following list:
|
|
@@ -148,12 +124,6 @@ export interface PlayReadyKeySystemConfiguration extends KeySystemConfiguration
|
|
|
148
124
|
* @public
|
|
149
125
|
*/
|
|
150
126
|
export declare type WidevineKeySystemConfiguration = KeySystemConfiguration;
|
|
151
|
-
/**
|
|
152
|
-
* A function which processes DRM data.
|
|
153
|
-
*
|
|
154
|
-
* @public
|
|
155
|
-
*/
|
|
156
|
-
export declare type DRMProcessor = (arrayBuffer: ArrayBuffer) => ArrayBuffer;
|
|
157
127
|
/**
|
|
158
128
|
* Describes the ClearKey key system configuration.
|
|
159
129
|
*
|
|
@@ -31,7 +31,7 @@ export interface MediaTrack extends Track {
|
|
|
31
31
|
/**
|
|
32
32
|
* The label of the media track.
|
|
33
33
|
*/
|
|
34
|
-
label: string;
|
|
34
|
+
readonly label: string;
|
|
35
35
|
/**
|
|
36
36
|
* The language of the media track.
|
|
37
37
|
*/
|
|
@@ -51,5 +51,8 @@ export interface MediaTrack extends Track {
|
|
|
51
51
|
* <br/> - If desired qualities are present, the Adaptive Bitrate mechanism of the player will limit itself to these qualities.
|
|
52
52
|
* <br/> - If one desired quality is present, the Adaptive Bitrate mechanism of the player will be disabled and the desired quality will be played back.
|
|
53
53
|
*/
|
|
54
|
-
targetQuality: number | number[] | undefined;
|
|
54
|
+
readonly targetQuality: number | number[] | undefined;
|
|
55
55
|
}
|
|
56
|
+
export declare function findMediaTrackByUid(mediaTracks: MediaTrack[], uid: number | undefined): MediaTrack | undefined;
|
|
57
|
+
export declare function findQualityByUid(mediaTrack: MediaTrack, uid: number | undefined): Quality | undefined;
|
|
58
|
+
export declare function findQualitiesByUid(mediaTrack: MediaTrack | undefined, uid: number | number[] | undefined): Quality[] | undefined;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export declare function fromObjectToString(obj: {
|
|
2
|
+
[key: string]: any;
|
|
3
|
+
}): string;
|
|
4
|
+
export declare function fromObjectToBase64String(obj: {
|
|
5
|
+
[key: string]: any;
|
|
6
|
+
}): string;
|
|
7
|
+
export declare function fromObjectToUint8Array(obj: {
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
}): Uint8Array;
|
|
10
|
+
export declare function fromStringToBase64String(str: string): string;
|
|
11
|
+
export declare function fromStringToUint8Array(str: string): Uint8Array;
|
|
12
|
+
export declare function fromStringToObject(str: string): {
|
|
13
|
+
[key: string]: any;
|
|
14
|
+
};
|
|
15
|
+
export declare function fromBase64StringToUint8Array(str: string): Uint8Array;
|
|
16
|
+
export declare function fromUint8ArrayToBase64String(array: Uint8Array): string;
|
|
17
|
+
export declare function fromUint8ArrayToString(array: Uint8Array): string;
|
|
18
|
+
export declare function fromUint8ArrayToObject(array: Uint8Array): {
|
|
19
|
+
[key: string]: any;
|
|
20
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './TypeUtils';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { PureComponent } from 'react';
|
|
2
|
-
import { NativeSyntheticEvent } from 'react-native';
|
|
3
|
-
import type { DurationChangeEvent, ErrorEvent, LoadedMetadataEvent, ReadyStateChangeEvent, THEOplayerViewComponent, THEOplayerViewProps, TimeUpdateEvent, ProgressEvent, PlayerError, SegmentNotFoundEvent, TextTrackListEvent, TextTrackEvent } from 'react-native-theoplayer';
|
|
2
|
+
import { NativeSyntheticEvent, HostComponent } from 'react-native';
|
|
3
|
+
import type { DurationChangeEvent, ErrorEvent, LoadedMetadataEvent, ReadyStateChangeEvent, THEOplayerViewComponent, THEOplayerViewProps, TimeUpdateEvent, ProgressEvent, PlayerError, SegmentNotFoundEvent, TextTrackListEvent, TextTrackEvent, AdEvent, AdsAPI } from 'react-native-theoplayer';
|
|
4
4
|
import type { SourceDescription } from 'react-native-theoplayer';
|
|
5
5
|
interface THEOplayerRCTViewProps extends THEOplayerViewProps {
|
|
6
6
|
ref: React.RefObject<THEOplayerViewNativeComponent>;
|
|
@@ -24,6 +24,7 @@ interface THEOplayerRCTViewProps extends THEOplayerViewProps {
|
|
|
24
24
|
onNativeSegmentNotFound: (event: NativeSyntheticEvent<SegmentNotFoundEvent>) => void;
|
|
25
25
|
onNativeTextTrackListEvent: (event: NativeSyntheticEvent<TextTrackListEvent>) => void;
|
|
26
26
|
onNativeTextTrackEvent: (event: NativeSyntheticEvent<TextTrackEvent>) => void;
|
|
27
|
+
onNativeAdEvent: (event: NativeSyntheticEvent<AdEvent>) => void;
|
|
27
28
|
onNativeFullscreenPlayerWillPresent?: () => void;
|
|
28
29
|
onNativeFullscreenPlayerDidPresent?: () => void;
|
|
29
30
|
onNativeFullscreenPlayerWillDismiss?: () => void;
|
|
@@ -33,16 +34,19 @@ interface THEOplayerRCTViewState {
|
|
|
33
34
|
isBuffering: boolean;
|
|
34
35
|
error?: PlayerError;
|
|
35
36
|
}
|
|
36
|
-
interface THEOplayerViewNativeComponent extends THEOplayerViewComponent {
|
|
37
|
+
interface THEOplayerViewNativeComponent extends THEOplayerViewComponent, HostComponent<THEOplayerViewProps> {
|
|
37
38
|
setNativeProps: (props: Partial<THEOplayerRCTViewProps>) => void;
|
|
38
39
|
}
|
|
39
|
-
export declare class THEOplayerView extends PureComponent<THEOplayerViewProps, THEOplayerRCTViewState> {
|
|
40
|
+
export declare class THEOplayerView extends PureComponent<THEOplayerViewProps, THEOplayerRCTViewState> implements THEOplayerViewComponent {
|
|
40
41
|
private readonly _root;
|
|
42
|
+
private readonly _adsApi;
|
|
41
43
|
private static initialState;
|
|
42
44
|
constructor(props: THEOplayerRCTViewProps);
|
|
43
45
|
componentWillUnmount(): void;
|
|
44
46
|
private destroyTheoPlayer;
|
|
45
47
|
seek(time: number): void;
|
|
48
|
+
get nativeHandle(): number | null;
|
|
49
|
+
get ads(): AdsAPI;
|
|
46
50
|
private reset;
|
|
47
51
|
private setNativeProps;
|
|
48
52
|
private maybeChangeBufferingState;
|
|
@@ -64,10 +68,12 @@ export declare class THEOplayerView extends PureComponent<THEOplayerViewProps, T
|
|
|
64
68
|
private _onSegmentNotFound;
|
|
65
69
|
private _onTextTrackListEvent;
|
|
66
70
|
private _onTextTrackEvent;
|
|
71
|
+
private _onAdEvent;
|
|
67
72
|
private _onFullscreenPlayerWillPresent;
|
|
68
73
|
private _onFullscreenPlayerDidPresent;
|
|
69
74
|
private _onFullscreenPlayerWillDismiss;
|
|
70
75
|
private _onFullscreenPlayerDidDismiss;
|
|
76
|
+
private buildWrapperProps;
|
|
71
77
|
render(): JSX.Element;
|
|
72
78
|
}
|
|
73
79
|
export {};
|
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
import { PureComponent } from 'react';
|
|
2
|
-
import type { PlayerError, THEOplayerViewProps } from 'react-native-theoplayer';
|
|
2
|
+
import type { AdsAPI, PlayerError, THEOplayerViewProps } from 'react-native-theoplayer';
|
|
3
|
+
import { THEOplayerViewComponent } from 'react-native-theoplayer';
|
|
4
|
+
import * as THEOplayer from 'theoplayer';
|
|
3
5
|
interface THEOplayerRCTViewState {
|
|
4
6
|
isBuffering: boolean;
|
|
5
7
|
error?: PlayerError;
|
|
6
8
|
}
|
|
7
|
-
export declare class THEOplayerView extends PureComponent<THEOplayerViewProps, THEOplayerRCTViewState> {
|
|
9
|
+
export declare class THEOplayerView extends PureComponent<THEOplayerViewProps, THEOplayerRCTViewState> implements THEOplayerViewComponent {
|
|
8
10
|
private _player;
|
|
11
|
+
private _adsApi;
|
|
9
12
|
private static initialState;
|
|
10
13
|
constructor(props: THEOplayerViewProps);
|
|
11
14
|
componentDidMount(): void;
|
|
12
15
|
componentWillUnmount(): void;
|
|
13
16
|
seek(time: number): void;
|
|
17
|
+
get ads(): AdsAPI;
|
|
18
|
+
get nativePlayer(): THEOplayer.ChromelessPlayer | null;
|
|
14
19
|
private reset;
|
|
15
20
|
componentDidUpdate(prevProps: Readonly<THEOplayerViewProps>): void;
|
|
16
21
|
private maybeChangeBufferingState;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type { AdBreak, AdsAPI } from "react-native-theoplayer";
|
|
2
|
+
import type { AdDescription } from "react-native-theoplayer";
|
|
3
|
+
import type { Ad } from "react-native-theoplayer";
|
|
4
|
+
import type { THEOplayerView } from "react-native-theoplayer";
|
|
5
|
+
import type { GoogleDAI } from "react-native-theoplayer";
|
|
6
|
+
export declare class THEOplayerNativeAdsAPI implements AdsAPI {
|
|
7
|
+
private _player;
|
|
8
|
+
private readonly _dai;
|
|
9
|
+
constructor(_player: THEOplayerView);
|
|
10
|
+
playing(): Promise<boolean>;
|
|
11
|
+
skip(): void;
|
|
12
|
+
currentAdBreak(): Promise<AdBreak>;
|
|
13
|
+
currentAds(): Promise<Ad[]>;
|
|
14
|
+
scheduledAdBreaks(): Promise<AdBreak[]>;
|
|
15
|
+
schedule(ad: AdDescription): void;
|
|
16
|
+
get dai(): GoogleDAI | undefined;
|
|
17
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { GoogleDAI } from 'react-native-theoplayer';
|
|
2
|
+
import type { THEOplayerView } from 'react-native-theoplayer';
|
|
3
|
+
export declare class THEOplayerNativeGoogleDAI implements GoogleDAI {
|
|
4
|
+
private readonly _player;
|
|
5
|
+
constructor(_player: THEOplayerView);
|
|
6
|
+
get snapback(): Promise<boolean>;
|
|
7
|
+
setSnapback(enabled: boolean): void;
|
|
8
|
+
contentTimeForStreamTime(time: number): Promise<number>;
|
|
9
|
+
streamTimeForContentTime(time: number): Promise<number>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type { Ad, AdDescription, AdBreak, AdsAPI } from "react-native-theoplayer";
|
|
2
|
+
import type { THEOplayerView } from "../THEOplayerView.web";
|
|
3
|
+
import type { GoogleDAI } from "react-native-theoplayer";
|
|
4
|
+
export declare class THEOplayerWebAdsAPI implements AdsAPI {
|
|
5
|
+
private readonly _player;
|
|
6
|
+
private _dai;
|
|
7
|
+
constructor(_player: THEOplayerView);
|
|
8
|
+
currentAdBreak(): Promise<AdBreak>;
|
|
9
|
+
currentAds(): Promise<Ad[]>;
|
|
10
|
+
playing(): Promise<boolean>;
|
|
11
|
+
schedule(ad: AdDescription): void;
|
|
12
|
+
scheduledAdBreaks(): Promise<AdBreak[]>;
|
|
13
|
+
skip(): void;
|
|
14
|
+
get dai(): GoogleDAI | undefined;
|
|
15
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { GoogleDAI } from 'react-native-theoplayer';
|
|
2
|
+
import type { GoogleDAI as NativeGoogleDAI } from 'theoplayer';
|
|
3
|
+
export declare class THEOplayerWebGoogleDAI implements GoogleDAI {
|
|
4
|
+
private readonly _googleDAI;
|
|
5
|
+
constructor(_googleDAI: NativeGoogleDAI);
|
|
6
|
+
get snapback(): Promise<boolean>;
|
|
7
|
+
setSnapback(enabled: boolean): void;
|
|
8
|
+
contentTimeForStreamTime(time: number): Promise<number>;
|
|
9
|
+
streamTimeForContentTime(time: number): Promise<number>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ContentProtectionAPI } from 'react-native-theoplayer';
|
|
2
|
+
import type { KeySystemId } from 'react-native-theoplayer';
|
|
3
|
+
import type { ContentProtectionIntegrationFactory } from 'react-native-theoplayer';
|
|
4
|
+
export declare class NativeContentProtectionRegistry implements ContentProtectionAPI {
|
|
5
|
+
private emitter;
|
|
6
|
+
private registeredFactories;
|
|
7
|
+
private currentIntegration;
|
|
8
|
+
constructor();
|
|
9
|
+
registerContentProtectionIntegration(integrationId: string, keySystemId: KeySystemId, integrationFactory: ContentProtectionIntegrationFactory): void;
|
|
10
|
+
private getFactory;
|
|
11
|
+
private getIntegration;
|
|
12
|
+
private onBuildIntegrationRequest;
|
|
13
|
+
private onCertificateRequest;
|
|
14
|
+
private onCertificateResponse;
|
|
15
|
+
private onLicenseRequest;
|
|
16
|
+
private onLicenseResponse;
|
|
17
|
+
private onExtractFairplayContentId;
|
|
18
|
+
}
|
|
19
|
+
export declare const ContentProtectionRegistry: NativeContentProtectionRegistry;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type { ContentProtectionAPI, ContentProtectionIntegrationFactory, KeySystemId } from 'react-native-theoplayer';
|
|
2
|
+
export declare class WebContentProtectionRegistry implements ContentProtectionAPI {
|
|
3
|
+
registerContentProtectionIntegration(integrationId: string, keySystem: KeySystemId, integrationFactory: ContentProtectionIntegrationFactory): void;
|
|
4
|
+
}
|
|
5
|
+
export declare const ContentProtectionRegistry: WebContentProtectionRegistry;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { NativeContentProtectionEvent } from './NativeContentProtectionEvent';
|
|
2
|
+
import type { CertificateRequest } from 'react-native-theoplayer';
|
|
3
|
+
export interface NativeCertificateRequest extends NativeContentProtectionEvent {
|
|
4
|
+
url: string;
|
|
5
|
+
method: string;
|
|
6
|
+
headers: {
|
|
7
|
+
[headerName: string]: string;
|
|
8
|
+
};
|
|
9
|
+
base64body: string | null;
|
|
10
|
+
useCredentials: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare function fromNativeCertificateRequest(request: NativeCertificateRequest): CertificateRequest;
|
|
13
|
+
export declare function toNativeCertificateRequest(requestId: string, integrationId: string, keySystemId: string, request: CertificateRequest): NativeCertificateRequest;
|