react-native-theoplayer 1.6.1 → 1.7.1
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 +76 -33
- 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 +273 -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 +11 -5
- 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 +223 -30
- package/ios/THEOplayerRCTTypeUtils.swift +18 -0
- package/ios/THEOplayerRCTView.swift +109 -49
- package/ios/THEOplayerRCTViewAdEventHandler.swift +238 -0
- package/ios/{THEOplayerRCTViewEventHandler.swift → THEOplayerRCTViewMainEventHandler.swift} +7 -119
- 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/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 -3
- 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 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["barrel.ts"],"sourcesContent":["export * from './ABRConfiguration';\n"],"mappings":"AAAA,cAAc,oBAAd"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["Ad.ts"],"sourcesContent":["/**\n * Represents a VAST creative. It is either a linear or non-linear ad.\n *\n * @public\n */\nimport type { AdBreak } from './AdBreak';\nimport type { CompanionAd } from 'theoplayer';\n\nexport interface Ad {\n /**\n * The source ad server information included in the ad response.\n *\n * @remarks\n * <br/> - Available when the {@link Ad.readyState} is `'ready'`.\n */\n adSystem: string | undefined;\n\n /**\n * The integration of the ad, represented by a value from the following list:\n * <br/> - `'theo'`\n * <br/> - `'google-ima'`\n * <br/> - `'google-dai'`\n * <br/> - `'freewheel'`\n *\n * @defaultValue `'theo'`\n */\n integration?: string;\n\n /**\n * The type of the ad, represented by a value from the following list:\n * <br/> - `'linear'`\n * <br/> - `'nonlinear'`\n */\n type: string;\n\n /**\n * The identifier of the creative.\n *\n * @remarks\n * <br/> - Available when the {@link Ad.readyState} is `'ready'`.\n */\n id: string | undefined;\n\n /**\n * The ready state of the ad.\n */\n readyState?: AdReadyState;\n\n /**\n * The ad break which the ad is part of.\n *\n * @remarks\n * <br/> - Available for VAST-ads.\n */\n adBreak: AdBreak;\n\n /**\n * The duration of the ad, in seconds.\n *\n * @remarks\n * <br/> - Available when the {@link Ad.readyState} is `'ready'`.\n * <br/> - Only available for LinearAd.\n */\n duration?: number;\n\n /**\n * The width of the ad, in pixels.\n *\n * @remarks\n * <br/> - Available when the {@link Ad.readyState} is `'ready'`.\n */\n width: number | undefined;\n\n /**\n * The height of the ad.\n *\n * @remarks\n * <br/> - Available when the {@link Ad.readyState} is `'ready'`.\n */\n height: number | undefined;\n\n /**\n * The URI of the the ad content.\n *\n * @remarks\n * <br/> - Available when the {@link Ad.readyState} is `'ready'`.\n */\n resourceURI?: string;\n\n /**\n * The website of the advertisement.\n *\n * @remarks\n * <br/> - Available when the {@link Ad.readyState} is `'ready'`.\n */\n clickThrough: string | undefined;\n\n /**\n * List of companions which can be displayed outside the player.\n *\n * @remarks\n * <br/> - Available when the {@link Ad.readyState} is `'ready'`.\n * <br/> - Only supported for `'theo'` and `'google-dai'`.\n */\n companions: CompanionAd[];\n\n /**\n * Offset after which the ad break may be skipped, in seconds.\n *\n * @remarks\n * <br/> - Available when the {@link Ad.readyState} is `'ready'`.\n * <br/> - If the offset is -1, the ad is unskippable.\n * <br/> - If the offset is 0, the ad is immediately skippable.\n * <br/> - Otherwise it must be a positive number indicating the offset.\n */\n skipOffset: number | undefined;\n\n /**\n * The identifier of the selected creative for the ad.\n *\n * @remarks\n * <br/> - Available when the {@link Ad.readyState} is `'ready'`.\n */\n creativeId: string | undefined;\n\n /**\n * The list of universal ad ID information of the selected creative for the ad.\n *\n * @remarks\n * <br/> - Only supported for `'theo'` and `'google-ima'`.\n */\n universalAdIds: UniversalAdId[];\n}\n\n/**\n * The ad readiness state, represented by a value from the following list:\n * <br/> - `'none'`: The ad not loaded state.\n * <br/> - `'ready'`: The ad loaded state.\n *\n * @remarks\n * <br/> - An ad is loaded when the ad resource (e.g. VAST file) is downloaded.\n * <br/> - another remark\n *\n * @public\n */\nexport type AdReadyState = 'none' | 'ready';\n\n/**\n * Represents the information regarding the universal identifier of an ad.\n *\n * @public\n */\nexport interface UniversalAdId {\n /**\n * The registry associated with cataloging the UniversalAdId of the selected creative for the ad.\n *\n * @remarks\n * <br/> - Returns the registry value, or 'unknown' if unavailable.\n */\n adIdRegistry: string;\n\n /**\n * The UniversalAdId of the selected creative for the ad.\n *\n * @remarks\n * <br/> - Returns the id value or 'unknown' if unavailable.\n */\n adIdValue: string;\n}\n\n/**\n * Represents a non-linear ad in the VAST specification.\n *\n * @public\n */\nexport interface NonLinearAd extends Ad {\n /**\n * The alternative description for the ad.\n *\n * @remarks\n * <br/> - Available when the {@link Ad.readyState} is `'ready'`.\n */\n altText: string | undefined;\n\n /**\n * The website of the ad.\n *\n * @remarks\n * <br/> - Available when the {@link Ad.readyState} is `'ready'`.\n */\n clickThrough: string | undefined;\n\n /**\n * The HTML-string with the content of the ad.\n *\n * @remarks\n * <br/> - Available when the {@link Ad.readyState} is `'ready'`.\n */\n contentHTML: string | undefined;\n}\n\n/**\n * The delivery type of the ad content file, represented by a value from the following list:\n * <br/> - `'progressive'`: Delivered through progressive download protocols (e.g. HTTP).\n * <br/> - `'streaming'`: Delivered through streaming download protocols.\n *\n * @remarks\n * <br/> - `'streaming'` is currently not supported.\n *\n * @public\n */\nexport type DeliveryType = 'progressive' | 'streaming';\n\n/**\n * Represents metadata of an media file with ad content.\n *\n * @remarks\n * <br/> - This metadata is retrieved from the VAST file.\n *\n * @public\n */\nexport interface MediaFile {\n /**\n * The delivery type of the video file.\n */\n delivery: DeliveryType;\n\n /**\n * The MIME type for the file container.\n */\n type: string;\n\n /**\n * The native width of the video file, in pixels.\n */\n width: number;\n\n /**\n * The native height of the video file, in pixels.\n */\n height: number;\n\n /**\n * The URI of the VAST content.\n */\n contentURL: string;\n}\n\n/**\n * Represents a linear ad in the VAST specification.\n *\n * @public\n */\nexport interface LinearAd extends Ad {\n /**\n * The duration of the ad, in seconds.\n *\n * @remarks\n * <br/> - Available when the {@link Ad.readyState} is `'ready'`.\n */\n duration: number;\n\n /**\n * List of media files which contain metadata about ad video files.\n */\n mediaFiles: MediaFile[];\n}\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["AdBreak.ts"],"sourcesContent":["/**\n * Represents an ad break in the VMAP specification or an ad pod in the VAST specification.\n *\n * @public\n */\nimport type { Ad } from './Ad';\n\nexport interface AdBreak {\n /**\n * The integration of the ad break, represented by a value from the following list:\n * <br/> - `'theo'`\n * <br/> - `'google-ima'`\n * <br/> - `'google-dai'`\n * <br/> - `'freewheel'`\n */\n integration: string | undefined;\n\n /**\n * List of ads which will be played sequentially at the ad break's time offset.\n */\n ads: Ad[] | undefined;\n\n /**\n * The time offset at which content will be paused to play the ad break, in seconds.\n */\n timeOffset: number;\n\n /**\n * The duration of the ad break, in seconds.\n *\n * @remarks\n * <br/> - Ads are lazily loaded. This property becomes available when all ads are loaded.\n */\n maxDuration: number | undefined;\n\n /**\n * The remaining duration of the ad break, in seconds.\n *\n * @remarks\n * <br/> - Ads are lazily loaded. This property becomes available when all ads are loaded.\n * <br/> - This feature is not available in the Google IMA integration and will default to -1.\n */\n maxRemainingDuration: number | undefined;\n}\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["AdsAPI.ts"],"sourcesContent":["/**\n * The API for advertisements.\n */\nimport type { AdDescription } from \"../source/ads/Ads\";\nimport type { AdBreak } from \"./AdBreak\";\nimport type { Ad } from \"./Ad\";\nimport type { GoogleDAI } from \"./GoogleDai\";\n\nexport interface AdsAPI {\n /**\n * Whether a linear ad is currently playing.\n */\n playing(): Promise<boolean>;\n\n /**\n * Skip the current linear ad.\n *\n * @remarks\n * <br/> - This will have no effect when the current linear ad is (not yet) skippable.\n */\n skip(): void;\n\n /**\n * The currently playing ad break.\n */\n currentAdBreak(): Promise<AdBreak>;\n\n /**\n * List of currently playing ads.\n */\n currentAds(): Promise<Ad[]>;\n\n /**\n * List of ad breaks which still need to be played.\n */\n scheduledAdBreaks(): Promise<AdBreak[]>;\n\n /**\n * Add an ad break request.\n *\n * @remarks\n * <br/> - Prefer scheduling ad breaks up front through SourceConfiguration.ads.\n */\n schedule(ad: AdDescription): void;\n\n /**\n * The Google DAI API.\n *\n * @remarks\n * <br/> - Only available when the feature or extension `'google-dai'` is enabled.\n */\n readonly dai?: GoogleDAI;\n}\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["AdsConfiguration.ts"],"sourcesContent":["/**\n * Describes the configuration of advertisement.\n *\n * @public\n */\nimport type { GoogleImaConfiguration } from './GoogleImaConfiguration';\n\nexport interface AdsConfiguration {\n /**\n * Allows configuring which mime types are allowed during ad playback.\n *\n * @remarks\n * <br/> - This feature is only available for Google IMA.\n * <br/> - If set to an array, all ads with another mime types will be ignored.\n * <br/> - If set to `undefined` the ad system will pick media based on the browser's capabilities.\n *\n * @defaultValue `undefined`\n */\n allowedMimeTypes?: string[];\n\n /**\n * Whether an advertisement UI is shown.\n *\n * @defaultValue `true`\n */\n uiEnabled?: boolean;\n\n /**\n * Whether media files of mid- and postrolls are preloaded.\n *\n * @remarks\n * <br/> - This feature is only available for Google IMA.\n *\n * @defaultValue `'midroll-and-postroll'`\n */\n preload?: AdPreloadType;\n\n /**\n * The iframe policy for VPAID ads.\n *\n * @remarks\n * <br/> - This feature is only available for Google IMA and SpotX.\n *\n * @defaultValue `'enabled'`\n */\n vpaidMode?: VPAIDMode;\n\n /**\n * The Google IMA configuration.\n *\n * @internal\n */\n googleImaConfiguration?: GoogleImaConfiguration;\n}\n\n/**\n * The ad preloading strategy, represented by a value from the following list:\n * <br/> - `'none'`: Ads are not preloaded.\n * <br/> - `'midroll-and-postroll'`: Mid- and postrolls are preloaded.\n *\n * @remarks\n * <br/> - For Google IMA, preloading starts 4 seconds before ad playback.\n *\n * @public\n */\nexport type AdPreloadType = 'none' | 'midroll-and-postroll';\n\n/**\n * The iframe policies for VPAID ads, represented by a value from the following list:\n * <br/> - `'enabled'`: Ads will load in a cross domain iframe. This disables access to the site via JavaScript. Ads that require a friendly iframe will fail to play.\n * <br/> - `'insecure'`: Ads will load in a friendly iframe. This allows access to the site via JavaScript.\n * <br/> - `'disabled'`: Ads will error when requested.\n *\n * @public\n */\nexport type VPAIDMode = 'enabled' | 'insecure' | 'disabled';\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["CompanionAd.ts"],"sourcesContent":["/**\n * Represents a companion ad which is displayed near the video player.\n *\n * @public\n */\nexport interface CompanionAd {\n /**\n * The identifier of the element in which the companion ad should be appended, if available.\n *\n * @remarks\n * <br/> Only available for Google DAI and THEO ads if provided in the VAST.\n */\n adSlotId?: string;\n\n /**\n * The alternative description for the ad.\n *\n * @remarks\n * <br/> - Returns value as reported in the VAST StaticResource. If not specified, it returns an empty string.\n * <br/> - Returns an empty string for THEO ads if not available.\n * <br/> - Returns an empty string for Google IMA / Google DAI integrations.\n */\n altText: string;\n\n /**\n * The content of the ad, as HTML.\n *\n * @remarks\n * <br/> - Available for StaticResource and HTMLResource in THEO ad system.\n * <br/> - Available in the DAI ad system.\n */\n contentHTML: string;\n\n /**\n * The website of the advertisement.\n *\n * @remarks\n * <br/> - Only available for StaticResource if specified by the VAST. Otherwise returns an empty string.\n */\n clickThrough?: string;\n\n /**\n * The height of the ad, in pixels.\n *\n * @remarks\n * <br/> - Only available for IMA ad system and THEO ad system.\n */\n height: number;\n\n /**\n * The URI of the ad content as specified in the VAST file.\n *\n * @remarks\n * <br/> - Only available in the THEO ad system for StaticResource. Otherwise returns an empty string.\n */\n resourceURI: string;\n\n /**\n * The width of the ad, in pixels.\n *\n * @remarks\n * <br/> - Only available for IMA ad system and THEO ad system.\n */\n width: number;\n}\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["GoogleDai.ts"],"sourcesContent":["/**\n * The Google DAI API.\n *\n * @public\n */\nexport interface GoogleDAI {\n /**\n * Returns the content time without ads for a given stream time. Returns the given stream time for live streams.\n *\n * @param time - The stream time with inserted ads (in seconds).\n */\n contentTimeForStreamTime(time: number): Promise<number>;\n\n /**\n * Returns the stream time with ads for a given content time. Returns the given content time for live streams.\n *\n * @param time - The content time without any ads (in seconds).\n */\n streamTimeForContentTime(time: number): Promise<number>;\n\n /**\n * Whether snapback is enabled. When enabled and the user seeks over multiple ad breaks, the last ad break that was seeked past will be played.\n *\n * @defaultValue `true`\n */\n readonly snapback: Promise<boolean>;\n\n /**\n * Set snapback value. When enabled and the user seeks over multiple ad breaks, the last ad break that was seeked past will be played.\n */\n setSnapback(enabled: boolean): void;\n}\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["GoogleImaAd.ts"],"sourcesContent":["/**\n * Represents a Google IMA creative compliant to the VAST specification.\n *\n * @remarks\n * <br/> - Available since v2.60.0.\n *\n * @public\n */\nimport type { Ad } from './Ad';\n\nexport interface GoogleImaAd extends Ad {\n /**\n * The bitrate of the currently playing creative as listed in the VAST response or 0.\n */\n readonly bitrate: number;\n\n /**\n * Record of custom parameters for the ad at the time of ad trafficking.\n * Each entry contains a parameter name with associated value.\n *\n * @remarks\n * <br/> - Available when the {@link Ad.readyState} is `'ready'`.\n */\n traffickingParameters: { [parameterKey: string]: string } | undefined;\n\n /**\n * Return title of the advertisement.\n *\n * @remarks\n * <br/> - Available when the {@link Ad.readyState} is `'ready'`.\n */\n title: string | undefined;\n\n /**\n * The custom parameters for the ad at the time of ad trafficking, as a string.\n *\n * @remarks\n * <br/> - A parsed version is available as {@link GoogleImaAd.traffickingParameters}.\n * <br/> - Available when the {@link Ad.readyState} is `'ready'`.\n */\n traffickingParametersString: string | undefined;\n\n /**\n * List of wrapper ad identifiers as specified in the VAST response.\n */\n wrapperAdIds: string[];\n\n /**\n * List of wrapper ad systems as specified in the VAST response.\n */\n wrapperAdSystems: string[];\n\n /**\n * List of wrapper creative identifiers.\n *\n * @remarks\n * <br/> - Starts with the first wrapper ad.\n */\n wrapperCreativeIds: string[];\n\n /**\n * The url of the chosen media file.\n *\n * @remarks\n * <br/> - Available when the {@link Ad.readyState} is `'ready'`.\n */\n mediaUrl: string | undefined;\n\n /**\n * The content type of the ad.\n *\n * @remarks\n * <br/> - Available when the {@link Ad.readyState} is `'ready'`.\n * <br/> - For linear ads, the content type is only going to be available after the `'adbegin'` event, when the media file is selected.\n */\n contentType: string | undefined;\n\n /**\n * The identifier of the API framework needed to execute the ad.\n *\n * @remarks\n * <br/> - Available when the {@link Ad.readyState} is `'ready'`.\n * <br/> - This corresponds with the apiFramework specified in vast.\n */\n apiFramework: string | undefined;\n}\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["GoogleImaConfiguration.ts"],"sourcesContent":["/**\n * Describes the configuration of Google IMA.\n *\n * @internal\n */\nexport interface GoogleImaConfiguration {\n /**\n * Whether the native (mobile) IMA implementation will be used.\n *\n * @internal\n */\n useNativeIma: boolean;\n}\n"],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export * from './Ad';
|
|
2
|
+
export * from './AdBreak';
|
|
3
|
+
export * from './AdsConfiguration';
|
|
4
|
+
export * from './AdsAPI';
|
|
5
|
+
export * from './CompanionAd';
|
|
6
|
+
export * from './GoogleDai';
|
|
7
|
+
export * from './GoogleImaAd';
|
|
8
|
+
export * from './GoogleImaConfiguration';
|
|
9
|
+
//# sourceMappingURL=barrel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["barrel.ts"],"sourcesContent":["export * from './Ad';\nexport * from './AdBreak';\nexport * from './AdsConfiguration';\nexport * from './AdsAPI';\nexport * from './CompanionAd';\nexport * from './GoogleDai';\nexport * from './GoogleImaAd';\nexport * from './GoogleImaConfiguration';\n"],"mappings":"AAAA,cAAc,MAAd;AACA,cAAc,WAAd;AACA,cAAc,oBAAd;AACA,cAAc,UAAd;AACA,cAAc,eAAd;AACA,cAAc,aAAd;AACA,cAAc,eAAd;AACA,cAAc,0BAAd"}
|
package/lib/module/api/barrel.js
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
|
+
export * from './abr/barrel';
|
|
2
|
+
export * from './ads/barrel';
|
|
3
|
+
export * from './config/barrel';
|
|
1
4
|
export * from './error/barrel';
|
|
2
5
|
export * from './event/barrel';
|
|
6
|
+
export * from './drm/barrel';
|
|
3
7
|
export * from './source/barrel';
|
|
4
8
|
export * from './timeranges/barrel';
|
|
5
9
|
export * from './track/barrel';
|
|
6
|
-
export * from './
|
|
10
|
+
export * from './utils/barrel';
|
|
7
11
|
export * from './THEOplayerView';
|
|
8
12
|
//# sourceMappingURL=barrel.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["barrel.ts"],"sourcesContent":["export * from './error/barrel';\nexport * from './event/barrel';\nexport * from './source/barrel';\nexport * from './timeranges/barrel';\nexport * from './track/barrel';\nexport * from './
|
|
1
|
+
{"version":3,"names":[],"sources":["barrel.ts"],"sourcesContent":["export * from './abr/barrel';\nexport * from './ads/barrel';\nexport * from './config/barrel';\nexport * from './error/barrel';\nexport * from './event/barrel';\nexport * from './drm/barrel';\nexport * from './source/barrel';\nexport * from './timeranges/barrel';\nexport * from './track/barrel';\nexport * from './utils/barrel';\nexport * from './THEOplayerView';\n"],"mappings":"AAAA,cAAc,cAAd;AACA,cAAc,cAAd;AACA,cAAc,iBAAd;AACA,cAAc,gBAAd;AACA,cAAc,gBAAd;AACA,cAAc,cAAd;AACA,cAAc,iBAAd;AACA,cAAc,qBAAd;AACA,cAAc,gBAAd;AACA,cAAc,gBAAd;AACA,cAAc,kBAAd"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
export {};
|
|
2
2
|
//# sourceMappingURL=PlayerConfiguration.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["PlayerConfiguration.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"names":[],"sources":["PlayerConfiguration.ts"],"sourcesContent":["import type { AdsConfiguration } from \"../ads/AdsConfiguration\";\n\nexport interface PlayerConfiguration {\n /**\n * The ads configuration for the player.\n */\n ads?: AdsConfiguration;\n\n /**\n * The license for the player\n */\n readonly license?: string;\n\n /**\n * The url to fetch the license for the player\n */\n readonly licenseUrl?: string;\n\n /**\n * Sets whether the native player is chromeless (without UI).\n */\n readonly chromeless?: boolean;\n}\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["ContentProtectionAPI.ts"],"sourcesContent":["import type { KeySystemId } from 'react-native-theoplayer';\nimport type { ContentProtectionIntegrationFactory } from './ContentProtectionIntegrationFactory';\n\nexport interface ContentProtectionAPI {\n registerContentProtectionIntegration(integrationId: string, keySystem: KeySystemId, integrationFactory: ContentProtectionIntegrationFactory): void;\n}\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["ContentProtectionIntegration.ts"],"sourcesContent":["import type { CertificateRequest, LicenseRequest } from './ContentProtectionRequest';\nimport type { CertificateResponse, LicenseResponse } from './ContentProtectionResponse';\n\n/**\n * A synchronous or asynchronous return type\n *\n * @public\n */\nexport type MaybeAsync<T> = T | PromiseLike<T>;\n\nexport type BufferSource = ArrayBufferView | ArrayBuffer;\n\n/**\n * This ContentProtectionIntegration defines some methods to alter license and certificate requests and responses.\n *\n * @public\n */\nexport interface ContentProtectionIntegration {\n /**\n * Handler which will be called when a HTTP request for a new certificate is about to be sent.\n *\n * @remarks\n * If a valid certificate was provided as part of the {@link KeySystemConfiguration.certificate}, this handler will not be called.\n * The handler must return either a request or a raw certificate. When a (possibly modified) request is returned,\n * the player will send that request instead of the original request. When a raw certificate is returned,\n * the request is skipped entirely and the certificate is used directly. If no handler is provided, the player sends the original request.\n *\n * For example, an integration may want to “wrap” the request body in a different format (e.g. JSON or XML) for\n * certain DRM vendors, or add additional authentication tokens to the request.\n * Alternatively, an integration may want to send the HTTP request using its own network stack,\n * and return the final certificate response to the player.\n *\n * @param request - The {@link CertificateRequest} that is about to be sent.\n */\n onCertificateRequest?(request: CertificateRequest): MaybeAsync<Partial<CertificateRequest> | BufferSource>;\n\n /**\n * Handler which will be called when a HTTP request for a certificate returns a response.\n *\n * @remarks\n * The handler will be called regardless of the HTTP status code on the response (i.e. also for unsuccessful statuses outside of the 200-299 range).\n * The handler must return the raw certificate, in a manner suitable for further processing by the CDM.\n * If no handler is provided, the player uses the response body as raw certificate, but only if the response’s status indicates success.\n *\n * For example, an integration may want to “unwrap” a wrapped JSON or XML response body, turning it into a raw certificate.\n *\n * @param response - The {@link CertificateResponse} that was returned from the certificate request.\n */\n onCertificateResponse?(response: CertificateResponse): MaybeAsync<BufferSource>;\n\n /**\n * Handler which will be called when a HTTP request for a new license is about to be sent.\n *\n * @remarks\n * The handler must return either a request or a raw license. When a (possibly modified) request is returned,\n * the player will send that request instead of the original request. When a raw license is returned,\n * the request is skipped entirely and the license is used directly. If no handler is provided, the player sends the original request.\n *\n * For example, an integration may want to “wrap” the request body in a different format (e.g. JSON or XML) for certain DRM vendors,\n * or add additional authentication tokens to the request. Alternatively, an integration may want to send the HTTP request using its own network stack,\n * and return the final license response to the player.\n *\n * @param request - The {@link LicenseRequest} that is about to be sent.\n */\n onLicenseRequest?(request: LicenseRequest): MaybeAsync<Partial<LicenseRequest> | BufferSource>;\n\n /**\n * Handler which will be called when a HTTP request for a license returns an response.\n *\n * @remarks\n * The handler will be called regardless of the HTTP status code on the response (i.e. also for unsuccessful statuses outside of the 200-299 range).\n * The handler must return the raw license, in a manner suitable for further processing by the CDM.\n * If no handler is provided, the player uses the response body as raw license, but only if the response’s status indicates success.\n *\n * For example, an integration may want to “unwrap” a wrapped JSON or XML response body, turning it into a raw license.\n *\n * @param response - The {@link LicenseResponse} that was returned from the license request.\n */\n onLicenseResponse?(response: LicenseResponse): MaybeAsync<BufferSource>;\n\n /**\n * A function to extract the Fairplay content ID from the key URI, as given by the URI attribute of the `#EXT-X-KEY` tag in the HLS playlist (m3u8).\n *\n * @remarks\n * In order to start a Fairplay license request, the player must provide the initialization data, the content ID and the certificate to the CDM.\n * The content ID is usually contained in the key URI in some vendor-specific way, for example in the host name (e.g. `skd://123456789`)\n * or in the URL query (e.g. `skd://vendor?123456789`). This function should extract this content ID from the key URI.\n * This method is required only for Fairplay integrations. It is ignored for other key systems.\n *\n * @param skdUrl - The key URI.\n */\n extractFairplayContentId?(skdUrl: string): MaybeAsync<string>;\n}\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["ContentProtectionIntegrationFactory.ts"],"sourcesContent":["import type { ContentProtectionIntegration } from './ContentProtectionIntegration';\nimport type { DRMConfiguration } from 'react-native-theoplayer';\n\n/**\n * Factory pattern to create {@link ContentProtectionIntegration}s.\n *\n * @public\n */\nexport interface ContentProtectionIntegrationFactory {\n /**\n * Build a new {@link ContentProtectionIntegration} based on the given {@link DRMConfiguration}.\n *\n * @param configuration - The {@link DRMConfiguration} of the currently loading source.\n */\n build(configuration: DRMConfiguration): ContentProtectionIntegration;\n}\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["ContentProtectionRequest.ts"],"sourcesContent":["/**\n * A request, either for a certificate or a license.\n * @public\n */\nexport interface ContentProtectionRequest {\n /**\n * The URL for the certificate server. By default, this will equal the certificate URL configured in the\n * `{@link KeySystemConfiguration}`.\n */\n url: string;\n\n /**\n * The method of the HTTP request, for example: GET, POST or PUT.\n *\n * @remarks\n * <br/> - Will be equal to GET for Fairplay certificate requests and POST for Widevine certificate requests.\n * <br/> - Will be equal to POST for all license requests.\n */\n method: string;\n\n /**\n * The HTTP request headers to be sent to the server.\n */\n headers: { [headerName: string]: string };\n\n /**\n * The body of the certificate request.\n *\n * @remarks\n * <br/> - For GET requests (such as with Fairplay), the body will be empty (null).\n * <br/> - For POST requests (such as with Widevine): the body will contain the two bytes in an array as specified in the certificate request protocol.\n */\n body: Uint8Array | null;\n\n /**\n * Whether the player is allowed to use credentials for cross-origin requests.\n */\n useCredentials: boolean;\n}\n\n/**\n * A request for a certificate.\n *\n * @public\n */\nexport type CertificateRequest = ContentProtectionRequest;\n\n/**\n * A request for a license.\n * @public\n */\nexport interface LicenseRequest extends ContentProtectionRequest {\n /**\n * The SKD URL (for example skd://fb64ba7c5bd34bf188cf9ba76ab8370e) as extracted from the #EXT-X-KEY tag in the HLS playlist.\n *\n * @remarks\n * <br/> - Only available for Fairplay license requests. The value will be `undefined` otherwise.\n */\n fairplaySkdUrl: string | undefined;\n}\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["ContentProtectionResponse.ts"],"sourcesContent":["import type { CertificateRequest, ContentProtectionRequest, LicenseRequest } from './ContentProtectionRequest';\n\n/**\n * The response, either of a license or for a certificate request.\n * @public\n */\nexport interface ContentProtectionResponse {\n /**\n * The request for which the response is being returned.\n */\n request: ContentProtectionRequest;\n\n /**\n * The URL from which the response was returned. This might have been redirected transparently.\n */\n url: string;\n\n /**\n * The status code as returned in the HTTP response.\n */\n status: number;\n\n /**\n * The status text as returned in the HTTP response.\n */\n statusText: string;\n\n /**\n * The HTTP headers as returned by the server.\n *\n * @remarks\n * <br/> - On web not all headers might be shown due to Cross Origin Resource Sharing restrictions.\n */\n headers: { [headerName: string]: string };\n\n /**\n * The body of the response.\n */\n body: Uint8Array;\n}\n\n/**\n * The response of a certificate request.\n * @public\n */\nexport interface CertificateResponse extends ContentProtectionResponse {\n /**\n * The request for which the response is being returned.\n */\n request: CertificateRequest;\n}\n\n/**\n * The response of a license request.\n * @public\n */\nexport interface LicenseResponse extends ContentProtectionResponse {\n /**\n * The request for which the response is being returned.\n */\n request: LicenseRequest;\n}\n"],"mappings":""}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from './ContentProtectionAPI';
|
|
2
|
+
export * from './ContentProtectionIntegration';
|
|
3
|
+
export * from './ContentProtectionIntegrationFactory';
|
|
4
|
+
export * from './ContentProtectionRequest';
|
|
5
|
+
export * from './ContentProtectionResponse';
|
|
6
|
+
//# sourceMappingURL=barrel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["barrel.ts"],"sourcesContent":["export * from './ContentProtectionAPI';\nexport * from './ContentProtectionIntegration';\nexport * from './ContentProtectionIntegrationFactory';\nexport * from './ContentProtectionRequest';\nexport * from './ContentProtectionResponse';\n"],"mappings":"AAAA,cAAc,wBAAd;AACA,cAAc,gCAAd;AACA,cAAc,uCAAd;AACA,cAAc,4BAAd;AACA,cAAc,6BAAd"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
export const AdEventNames = [
|
|
2
|
+
/**
|
|
3
|
+
* Dispatched when an ad break is added.
|
|
4
|
+
*/
|
|
5
|
+
'addadbreak',
|
|
6
|
+
/**
|
|
7
|
+
* Dispatched when an ad break is removed.
|
|
8
|
+
*/
|
|
9
|
+
'removeadbreak',
|
|
10
|
+
/**
|
|
11
|
+
* Dispatched when an ad is loaded.
|
|
12
|
+
*/
|
|
13
|
+
'adloaded',
|
|
14
|
+
/**
|
|
15
|
+
* Dispatched when an ad break begins.
|
|
16
|
+
*/
|
|
17
|
+
'adbreakbegin',
|
|
18
|
+
/**
|
|
19
|
+
* Dispatched when an ad break ends.
|
|
20
|
+
*/
|
|
21
|
+
'adbreakend',
|
|
22
|
+
/**
|
|
23
|
+
* Dispatched when an ad break changes.
|
|
24
|
+
*/
|
|
25
|
+
'adbreakchange',
|
|
26
|
+
/**
|
|
27
|
+
* Dispatched when an ad break is updated.
|
|
28
|
+
*/
|
|
29
|
+
'updateadbreak',
|
|
30
|
+
/**
|
|
31
|
+
* Dispatched when an ad is added.
|
|
32
|
+
*/
|
|
33
|
+
'addad',
|
|
34
|
+
/**
|
|
35
|
+
* Dispatched when an ad begins.
|
|
36
|
+
*/
|
|
37
|
+
'adbegin',
|
|
38
|
+
/**
|
|
39
|
+
* Dispatched when an ad ends.
|
|
40
|
+
*/
|
|
41
|
+
'adend',
|
|
42
|
+
/**
|
|
43
|
+
* Dispatched when an ad is updated.
|
|
44
|
+
*/
|
|
45
|
+
'updatead',
|
|
46
|
+
/**
|
|
47
|
+
* Dispatched when an ad is loaded.
|
|
48
|
+
*/
|
|
49
|
+
'adloaded',
|
|
50
|
+
/**
|
|
51
|
+
* Dispatched when an ad reaches the first quartile.
|
|
52
|
+
*/
|
|
53
|
+
'adfirstquartile',
|
|
54
|
+
/**
|
|
55
|
+
* Dispatched when an ad reaches the mid point.
|
|
56
|
+
*/
|
|
57
|
+
'admidpoint',
|
|
58
|
+
/**
|
|
59
|
+
* Dispatched when an ad reaches the third quartile.
|
|
60
|
+
*/
|
|
61
|
+
'adthirdquartile',
|
|
62
|
+
/**
|
|
63
|
+
* Dispatched when an ad is skipped.
|
|
64
|
+
*/
|
|
65
|
+
'adskip',
|
|
66
|
+
/**
|
|
67
|
+
* Dispatched when an ad counts as an impression.
|
|
68
|
+
*/
|
|
69
|
+
'adimpression',
|
|
70
|
+
/**
|
|
71
|
+
* Dispatched when an ad error occurs.
|
|
72
|
+
*/
|
|
73
|
+
'aderror',
|
|
74
|
+
/**
|
|
75
|
+
* Dispatched when an ads list is loaded.
|
|
76
|
+
*/
|
|
77
|
+
'admetadata',
|
|
78
|
+
/**
|
|
79
|
+
* Dispatched when the ad has stalled playback to buffer.
|
|
80
|
+
*/
|
|
81
|
+
'adbuffering'];
|
|
82
|
+
//# sourceMappingURL=AdEvent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["AdEventNames"],"sources":["AdEvent.ts"],"sourcesContent":["import type { Ad, AdBreak } from 'react-native-theoplayer';\n\nexport interface AdEvent {\n /**\n * Type of ad event.\n */\n type: AdEventType;\n\n /**\n * The ad or adbreak for which the event was dispatched.\n */\n ad: Ad | AdBreak;\n}\n\nexport const AdEventNames = [\n /**\n * Dispatched when an ad break is added.\n */\n 'addadbreak',\n\n /**\n * Dispatched when an ad break is removed.\n */\n 'removeadbreak',\n\n /**\n * Dispatched when an ad is loaded.\n */\n 'adloaded',\n\n /**\n * Dispatched when an ad break begins.\n */\n 'adbreakbegin',\n\n /**\n * Dispatched when an ad break ends.\n */\n 'adbreakend',\n\n /**\n * Dispatched when an ad break changes.\n */\n 'adbreakchange',\n\n /**\n * Dispatched when an ad break is updated.\n */\n 'updateadbreak',\n\n /**\n * Dispatched when an ad is added.\n */\n 'addad',\n\n /**\n * Dispatched when an ad begins.\n */\n 'adbegin',\n\n /**\n * Dispatched when an ad ends.\n */\n 'adend',\n\n /**\n * Dispatched when an ad is updated.\n */\n 'updatead',\n\n /**\n * Dispatched when an ad is loaded.\n */\n 'adloaded',\n\n /**\n * Dispatched when an ad reaches the first quartile.\n */\n 'adfirstquartile',\n\n /**\n * Dispatched when an ad reaches the mid point.\n */\n 'admidpoint',\n\n /**\n * Dispatched when an ad reaches the third quartile.\n */\n 'adthirdquartile',\n\n /**\n * Dispatched when an ad is skipped.\n */\n 'adskip',\n\n /**\n * Dispatched when an ad counts as an impression.\n */\n 'adimpression',\n\n /**\n * Dispatched when an ad error occurs.\n */\n 'aderror',\n\n /**\n * Dispatched when an ads list is loaded.\n */\n 'admetadata',\n\n /**\n * Dispatched when the ad has stalled playback to buffer.\n */\n 'adbuffering'\n] as const;\n\nexport type AdEventType = typeof AdEventNames[number];\n"],"mappings":"AAcA,OAAO,MAAMA,YAAY,GAAG;AAC1B;AACF;AACA;AACE,YAJ0B;AAM1B;AACF;AACA;AACE,eAT0B;AAW1B;AACF;AACA;AACE,UAd0B;AAgB1B;AACF;AACA;AACE,cAnB0B;AAqB1B;AACF;AACA;AACE,YAxB0B;AA0B1B;AACF;AACA;AACE,eA7B0B;AA+B1B;AACF;AACA;AACE,eAlC0B;AAoC1B;AACF;AACA;AACE,OAvC0B;AAyC1B;AACF;AACA;AACE,SA5C0B;AA8C1B;AACF;AACA;AACE,OAjD0B;AAmD1B;AACF;AACA;AACE,UAtD0B;AAwD1B;AACF;AACA;AACE,UA3D0B;AA6D1B;AACF;AACA;AACE,iBAhE0B;AAkE1B;AACF;AACA;AACE,YArE0B;AAuE1B;AACF;AACA;AACE,iBA1E0B;AA4E1B;AACF;AACA;AACE,QA/E0B;AAiF1B;AACF;AACA;AACE,cApF0B;AAsF1B;AACF;AACA;AACE,SAzF0B;AA2F1B;AACF;AACA;AACE,YA9F0B;AAgG1B;AACF;AACA;AACE,aAnG0B,CAArB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["barrel.ts"],"sourcesContent":["export * from './PlayerEvent';\nexport * from './TrackEvent';\n"],"mappings":"AAAA,cAAc,eAAd;AACA,cAAc,cAAd"}
|
|
1
|
+
{"version":3,"names":[],"sources":["barrel.ts"],"sourcesContent":["export * from './PlayerEvent';\nexport * from './TrackEvent';\nexport * from './AdEvent';\n"],"mappings":"AAAA,cAAc,eAAd;AACA,cAAc,cAAd;AACA,cAAc,WAAd"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["SourceDescription.ts"],"sourcesContent":["/**\n * Represents a media resource.\n *\n * @remarks\n * <br/> - Can be a string value representing the URL of a media resource, a {@link TypedSource}.\n *\n * @public\n */\nimport type { DashPlaybackConfiguration } from './dash/DashPlaybackConfiguration';\nimport type { DRMConfiguration } from './drm/DRMConfiguration';\nimport type { HlsPlaybackConfiguration } from './hls/HlsPlaybackConfiguration';\nimport type { AdDescription } from './ads/Ads';\n\nexport type Source = TypedSource;\n\n/**\n * A media resource or list of media resources.\n *\n * @remarks\n * <br/> - The order of sources when using a list determines their priority when attempting playback.\n *\n * @public\n */\nexport type Sources = Source | Source[];\n\n/**\n * The cross-origin setting of a source, represented by a value from the following list:\n * <br/> - `'anonymous'`: CORS requests will have the credentials flag set to 'same-origin'.\n * <br/> - `'use-credentials'`: CORS requests will have the credentials flag set to 'include'.\n * <br/> - `''`: Setting the empty string is the same as `'anonymous'`\n *\n * @remarks\n * <br/> - See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes | The crossorigin attribute: Requesting CORS access to content}\n *\n * @public\n */\nexport type CrossOriginSetting = '' | 'anonymous' | 'use-credentials';\n\n/**\n * Describes the configuration of a player's source.\n *\n * @public\n */\nexport interface SourceConfiguration {\n /**\n * List of {@link AdDescription}s to be queued for playback.\n */\n ads?: AdDescription[];\n\n /**\n * Content protection configuration.\n */\n contentProtection?: DRMConfiguration;\n\n /**\n * The poster of the media source.\n *\n * @remarks\n * <br/> - An empty string (`''`) clears the current poster.\n * <br/> - This poster has priority over {@link ChromelessPlayer.poster}.\n */\n poster?: string;\n\n /**\n * List of text tracks to be side-loaded with the media source.\n *\n * @remarks\n * <br/> - A source change will reset side-loaded text tracks.\n */\n textTracks?: TextTrackDescription[];\n\n /**\n * The URL of a time server used by the player to synchronise the time in DASH sources.\n *\n * @remarks\n * <br/> - The time server should return time in ISO-8601 format.\n * <br/> - Overrides the time server provided the DASH manifest's `<UTCTiming>`.\n * <br/> - All sources will use the time server. Alternatively, for one source use {@link BaseSource.timeServer}.\n */\n timeServer?: string;\n}\n\n/**\n * Describes the configuration of a player's source.\n *\n * @public\n */\nexport interface SourceDescription extends SourceConfiguration {\n /**\n * One or more media resources for playback.\n *\n * @remarks\n * <br/> - Multiple media sources should be used to increase platform compatibility. See examples below for important use cases.\n * <br/> - The player will try each source in the provided order.\n *\n * @example\n * In this example, the player will first try to play the DASH source.\n * This might fail if the browser does not support the {@link https://www.widevine.com/ | Widevine} or {@link https://www.microsoft.com/playready/ | PlayReady} CDM, for example on Safari.\n * In that case, the player will try to play the HLS source instead.\n *\n * ```\n * [{\n * src: 'dash-source-with-drm.mpd'\n * contentProtection: {\n * widevine: {\n * licenseAcquisitionURL: 'https://license.company.com/wv'\n * },\n * playready: {\n * licenseAcquisitionURL: 'https://license.company.com/pr'\n * }\n * }\n * },{\n * src: 'hls-source-with-drm.m3u8',\n * contentProtection: {\n * fairplay: {\n * certificateURL: 'https://license.company.com/fp'\n * }\n * }\n * }]\n * ```\n *\n * @example\n * In this example, the player will first try to play the DASH source.\n * This might fail if the browser does not support the {@link https://developer.mozilla.org/en-US/docs/Web/API/Media_Source_Extensions_API | Media Source Extensions API}.\n * In that case, the player will try to play the MP4 source instead, though without features such as adaptive bitrate switching.\n *\n * ```\n * [{\n * src: 'source.mpd'\n * },{\n * src: 'source.mp4'\n * }]\n * ```\n */\n sources?: Sources;\n}\n\n/**\n * Describes the configuration of a side-loaded text track.\n *\n * @public\n */\nexport interface TextTrackDescription {\n /**\n * Whether the text track should be enabled by default.\n *\n * @remarks\n * <br/> - Only one text track per {@link TextTrack.kind} may be marked as default.\n *\n * @defaultValue `false`\n */\n default?: boolean;\n\n /**\n * The kind of the text track, represented by a value from the following list:\n * <br/> - `'subtitles'`: The track provides subtitles, used to display subtitles in a video.\n * <br/> - `'captions'`: The track provides a translation of dialogue and sound effects (suitable for users with a hearing impairment).\n * <br/> - `'descriptions'`: The track provides a textual description of the video (suitable for users with a vision impairment).\n * <br/> - `'chapters'`: The track provides chapter titles (suitable for navigating the media resource).\n * <br/> - `'metadata'`: The track provides content used by scripts and is not visible for users.\n *\n * @remarks\n * <br/> - If an unrecognized value is provided, the player will interpret it as `'metadata'`.\n *\n * @defaultValue `'subtitles'`\n */\n kind?: string;\n\n /**\n * The format of the track, represented by a value from the following list:\n * <br/> - `'srt'`\n * <br/> - `'ttml'`\n * <br/> - `'webvtt'`\n * <br/> - `'emsg'`\n * <br/> - `'eventstream'`\n * <br/> - `'id3'`\n * <br/> - `'cea608'`\n * <br/> - `'daterange'`\n *\n * @defaultValue `''`\n */\n format?: string;\n\n /**\n * The source URL of the text track.\n */\n src: string;\n\n /**\n * The language of the text track.\n */\n srclang?: string;\n\n /**\n * A label for the text track.\n *\n * @remarks\n * <br/> - This will be used as an identifier on the player API and in the UI.\n */\n label?: string;\n\n /**\n * The identifier of this text track.\n *\n * @internal\n */\n // Note: This works for HLS, but not for DASH.\n id?: string;\n}\n\n/**\n * Represents the common properties of a media resource.\n *\n * @public\n */\nexport interface BaseSource {\n /**\n * The URL of a time server used by the player to synchronise the time in DASH sources.\n *\n * @remarks\n * <br/> - Available since v2.47.0.\n * <br/> - The time server should return time in ISO-8601 format.\n * <br/> - Overrides the time server provided the DASH manifest's `<UTCTiming>`.\n * <br/> - Only this source will use the time server. Alternatively, for all source use {@link SourceConfiguration.timeServer}.\n */\n timeServer?: string;\n\n /**\n * Whether the source should be played in the low-latency-mode of the player.\n *\n * @defaultValue `false`\n *\n * @remarks\n * <br/> - This setting must be `true` when using Low-Latency CMAF with ABR.\n * <br/> - Available since v2.62.0.\n */\n lowLatency?: boolean;\n\n /**\n * The configuration for controlling playback of an MPEG-DASH stream.\n *\n * @remarks\n * <br/> - Available since v2.79.0.\n * <br/> - Ignored for non-DASH streams.\n */\n dash?: DashPlaybackConfiguration;\n\n /**\n * The configuration for controlling playback of an HLS stream.\n *\n * @remarks\n * <br/> - Available since v2.82.0.\n * <br/> - Ignored for non-HLS streams.\n */\n hls?: HlsPlaybackConfiguration;\n}\n\n/**\n * Represents a media resource characterized by a URL to the resource and optionally information about the resource.\n *\n * @public\n */\nexport interface TypedSource extends BaseSource {\n /**\n * The source URL of the media resource.\n *\n * @remarks\n * <br/> - Required if the `ssai` property is absent.\n * <br/> - Available since v2.4.0.\n */\n src?: string;\n\n /**\n * The content type (MIME type) of the media resource, represented by a value from the following list:\n * <br/> - `'application/dash+xml'`: The media resource is an MPEG-DASH stream.\n * <br/> - `'application/x-mpegURL'` or `'application/vnd.apple.mpegurl'`: The media resource is an HLS stream.\n * <br/> - `'video/mp4'`, `'video/webm'` and other formats: The media resource should use native HTML5 playback if supported by the browser.\n * <br/> - `'application/vnd.theo.hesp+json'`: The media resource is an HESP stream.\n *\n * @remarks\n * <br/> - Available since v2.4.0.\n */\n type?: string;\n\n /**\n * The content protection parameters for the media resource.\n *\n * @remarks\n * <br/> - Available since v2.15.0.\n */\n contentProtection?: DRMConfiguration;\n}\n"],"mappings":""}
|
|
1
|
+
{"version":3,"names":[],"sources":["SourceDescription.ts"],"sourcesContent":["/**\n * Represents a media resource.\n *\n * @remarks\n * <br/> - Can be a string value representing the URL of a media resource, a {@link TypedSource}.\n *\n * @public\n */\nimport type { DashPlaybackConfiguration } from './dash/DashPlaybackConfiguration';\nimport type { DRMConfiguration } from './drm/DRMConfiguration';\nimport type { HlsPlaybackConfiguration } from './hls/HlsPlaybackConfiguration';\nimport type { AdDescription } from './ads/Ads';\nimport type { ServerSideAdInsertionConfiguration } from \"./ads/ssai/ServerSideAdInsertionConfiguration\";\n\nexport type Source = TypedSource;\n\n/**\n * A media resource or list of media resources.\n *\n * @remarks\n * <br/> - The order of sources when using a list determines their priority when attempting playback.\n *\n * @public\n */\nexport type Sources = Source | Source[];\n\n/**\n * The cross-origin setting of a source, represented by a value from the following list:\n * <br/> - `'anonymous'`: CORS requests will have the credentials flag set to 'same-origin'.\n * <br/> - `'use-credentials'`: CORS requests will have the credentials flag set to 'include'.\n * <br/> - `''`: Setting the empty string is the same as `'anonymous'`\n *\n * @remarks\n * <br/> - See {@link https://developer.mozilla.org/en-US/docs/Web/HTML/CORS_settings_attributes | The crossorigin attribute: Requesting CORS access to content}\n *\n * @public\n */\nexport type CrossOriginSetting = '' | 'anonymous' | 'use-credentials';\n\n/**\n * Describes the configuration of a player's source.\n *\n * @public\n */\nexport interface SourceConfiguration {\n /**\n * List of {@link AdDescription}s to be queued for playback.\n */\n ads?: AdDescription[];\n\n /**\n * Content protection configuration.\n */\n contentProtection?: DRMConfiguration;\n\n /**\n * The poster of the media source.\n *\n * @remarks\n * <br/> - An empty string (`''`) clears the current poster.\n * <br/> - This poster has priority over {@link ChromelessPlayer.poster}.\n */\n poster?: string;\n\n /**\n * List of text tracks to be side-loaded with the media source.\n *\n * @remarks\n * <br/> - A source change will reset side-loaded text tracks.\n */\n textTracks?: TextTrackDescription[];\n\n /**\n * The URL of a time server used by the player to synchronise the time in DASH sources.\n *\n * @remarks\n * <br/> - The time server should return time in ISO-8601 format.\n * <br/> - Overrides the time server provided the DASH manifest's `<UTCTiming>`.\n * <br/> - All sources will use the time server. Alternatively, for one source use {@link BaseSource.timeServer}.\n */\n timeServer?: string;\n}\n\n/**\n * Describes the configuration of a player's source.\n *\n * @public\n */\nexport interface SourceDescription extends SourceConfiguration {\n /**\n * One or more media resources for playback.\n *\n * @remarks\n * <br/> - Multiple media sources should be used to increase platform compatibility. See examples below for important use cases.\n * <br/> - The player will try each source in the provided order.\n *\n * @example\n * In this example, the player will first try to play the DASH source.\n * This might fail if the browser does not support the {@link https://www.widevine.com/ | Widevine} or {@link https://www.microsoft.com/playready/ | PlayReady} CDM, for example on Safari.\n * In that case, the player will try to play the HLS source instead.\n *\n * ```\n * [{\n * src: 'dash-source-with-drm.mpd'\n * contentProtection: {\n * widevine: {\n * licenseAcquisitionURL: 'https://license.company.com/wv'\n * },\n * playready: {\n * licenseAcquisitionURL: 'https://license.company.com/pr'\n * }\n * }\n * },{\n * src: 'hls-source-with-drm.m3u8',\n * contentProtection: {\n * fairplay: {\n * certificateURL: 'https://license.company.com/fp'\n * }\n * }\n * }]\n * ```\n *\n * @example\n * In this example, the player will first try to play the DASH source.\n * This might fail if the browser does not support the {@link https://developer.mozilla.org/en-US/docs/Web/API/Media_Source_Extensions_API | Media Source Extensions API}.\n * In that case, the player will try to play the MP4 source instead, though without features such as adaptive bitrate switching.\n *\n * ```\n * [{\n * src: 'source.mpd'\n * },{\n * src: 'source.mp4'\n * }]\n * ```\n */\n sources?: Sources;\n}\n\n/**\n * Describes the configuration of a side-loaded text track.\n *\n * @public\n */\nexport interface TextTrackDescription {\n /**\n * Whether the text track should be enabled by default.\n *\n * @remarks\n * <br/> - Only one text track per {@link TextTrack.kind} may be marked as default.\n *\n * @defaultValue `false`\n */\n default?: boolean;\n\n /**\n * The kind of the text track, represented by a value from the following list:\n * <br/> - `'subtitles'`: The track provides subtitles, used to display subtitles in a video.\n * <br/> - `'captions'`: The track provides a translation of dialogue and sound effects (suitable for users with a hearing impairment).\n * <br/> - `'descriptions'`: The track provides a textual description of the video (suitable for users with a vision impairment).\n * <br/> - `'chapters'`: The track provides chapter titles (suitable for navigating the media resource).\n * <br/> - `'metadata'`: The track provides content used by scripts and is not visible for users.\n *\n * @remarks\n * <br/> - If an unrecognized value is provided, the player will interpret it as `'metadata'`.\n *\n * @defaultValue `'subtitles'`\n */\n kind?: string;\n\n /**\n * The format of the track, represented by a value from the following list:\n * <br/> - `'srt'`\n * <br/> - `'ttml'`\n * <br/> - `'webvtt'`\n * <br/> - `'emsg'`\n * <br/> - `'eventstream'`\n * <br/> - `'id3'`\n * <br/> - `'cea608'`\n * <br/> - `'daterange'`\n *\n * @defaultValue `''`\n */\n format?: string;\n\n /**\n * The source URL of the text track.\n */\n src: string;\n\n /**\n * The language of the text track.\n */\n srclang?: string;\n\n /**\n * A label for the text track.\n *\n * @remarks\n * <br/> - This will be used as an identifier on the player API and in the UI.\n */\n label?: string;\n\n /**\n * The identifier of this text track.\n *\n * @internal\n */\n // Note: This works for HLS, but not for DASH.\n id?: string;\n}\n\n/**\n * Represents the common properties of a media resource.\n *\n * @public\n */\nexport interface BaseSource {\n /**\n * The URL of a time server used by the player to synchronise the time in DASH sources.\n *\n * @remarks\n * <br/> - Available since v2.47.0.\n * <br/> - The time server should return time in ISO-8601 format.\n * <br/> - Overrides the time server provided the DASH manifest's `<UTCTiming>`.\n * <br/> - Only this source will use the time server. Alternatively, for all source use {@link SourceConfiguration.timeServer}.\n */\n timeServer?: string;\n\n /**\n * Whether the source should be played in the low-latency-mode of the player.\n *\n * @defaultValue `false`\n *\n * @remarks\n * <br/> - This setting must be `true` when using Low-Latency CMAF with ABR.\n * <br/> - Available since v2.62.0.\n */\n lowLatency?: boolean;\n\n /**\n * The configuration for controlling playback of an MPEG-DASH stream.\n *\n * @remarks\n * <br/> - Available since v2.79.0.\n * <br/> - Ignored for non-DASH streams.\n */\n dash?: DashPlaybackConfiguration;\n\n /**\n * The configuration for controlling playback of an HLS stream.\n *\n * @remarks\n * <br/> - Available since v2.82.0.\n * <br/> - Ignored for non-HLS streams.\n */\n hls?: HlsPlaybackConfiguration;\n}\n\n/**\n * Represents a media resource characterized by a URL to the resource and optionally information about the resource.\n *\n * @public\n */\nexport interface TypedSource extends BaseSource {\n /**\n * The source URL of the media resource.\n *\n * @remarks\n * <br/> - Required if the `ssai` property is absent.\n * <br/> - Available since v2.4.0.\n */\n src?: string;\n\n /**\n * The content type (MIME type) of the media resource, represented by a value from the following list:\n * <br/> - `'application/dash+xml'`: The media resource is an MPEG-DASH stream.\n * <br/> - `'application/x-mpegURL'` or `'application/vnd.apple.mpegurl'`: The media resource is an HLS stream.\n * <br/> - `'video/mp4'`, `'video/webm'` and other formats: The media resource should use native HTML5 playback if supported by the browser.\n * <br/> - `'application/vnd.theo.hesp+json'`: The media resource is an HESP stream.\n *\n * @remarks\n * <br/> - Available since v2.4.0.\n */\n type?: string;\n\n /**\n * The content protection parameters for the media resource.\n *\n * @remarks\n * <br/> - Available since v2.15.0.\n */\n contentProtection?: DRMConfiguration;\n\n /**\n * The Server-side Ad Insertion parameters for the media resource.\n *\n * @remarks\n * <br/> - Available since v2.12.0.\n */\n ssai?: ServerSideAdInsertionConfiguration;\n}\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["FreeWheelAdDescription.ts"],"sourcesContent":["import type { AdDescription } from \"./Ads\";\n\n/**\n * The possible ad unit types, represented by a value from the following list:\n * <br/> - `'preroll'`: The linear ad will play before the content started.\n * <br/> - `'midroll'`: The linear ad will play at a time offset during the content.\n * <br/> - `'postroll'`: The linear ad will play after the content ended.\n * <br/> - `'overlay'`: The non-linear ad.\n *\n * @public\n */\nexport type FreeWheelAdUnitType = 'preroll' | 'midroll' | 'postroll' | 'overlay';\n\n/**\n * Represents a FreeWheel cue.\n *\n * @public\n */\nexport interface FreeWheelCue {\n /**\n * The ad unit type.\n */\n adUnit: FreeWheelAdUnitType;\n\n /**\n * Offset after which the ad break will start, in seconds.\n */\n timeOffset: number;\n}\n\n/**\n * Describes a FreeWheel ad break request.\n *\n * @remarks\n * <br/> - Available since v2.42.0.\n *\n * @public\n */\nexport interface FreeWheelAdDescription extends AdDescription {\n /**\n * The integration of this ad break.\n */\n integration: 'freewheel';\n\n /**\n * The FreeWheel ad server URL.\n */\n adServerUrl: string;\n\n /**\n * The duration of the asset, in seconds.\n *\n * @remarks\n * <br/> - Optional for live assets.\n */\n assetDuration?: number;\n\n /**\n * The identifier of the asset.\n *\n * @remarks\n * <br/> - Generated by FreeWheel CMS when an asset is uploaded.\n */\n assetId?: string;\n\n /**\n * The network identifier which is associated with a FreeWheel customer.\n */\n networkId: number;\n\n /**\n * The server side configuration profile.\n *\n * @remarks\n * <br/> - Used to indicate desired player capabilities.\n */\n profile: string;\n\n /**\n * The identifier of the video player's location.\n */\n siteSectionId?: string;\n\n /**\n * List of cue points.\n *\n * @remarks\n * <br/> - Not available in all FreeWheel modes.\n */\n cuePoints?: FreeWheelCue[];\n\n /**\n * A record of query string parameters added to the FreeWheel ad break request.\n * Each entry contains the parameter name with associated value.\n */\n customData?: Record<string, string>;\n}\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["IMAAdDescription.ts"],"sourcesContent":["import type { AdDescription, AdSource } from \"./Ads\";\n\n/**\n * Describes a Google IMA ad break request.\n *\n * @public\n */\nexport interface IMAAdDescription extends AdDescription {\n /**\n * The integration of this ad break.\n */\n integration: 'google-ima';\n\n /**\n * The source of the ad\n *\n * @remarks\n * <br/> - VAST, VMAP and VPAID are supported.\n */\n sources: string | AdSource;\n\n /**\n * Optional settings object for mapping verification vendors (google.ima.OmidVerificationVendor) to OMID Access Modes (google.ima.OmidAccessMode).\n */\n omidAccessModeRules?: { [key: number]: string };\n}\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["SpotXAdDescription.ts"],"sourcesContent":["import type { AdDescription } from \"./Ads\";\n\n/**\n * Represents a geographical location.\n *\n * @public\n */\nexport interface Geo {\n /**\n * The latitude of this location.\n */\n readonly lat: number;\n\n /**\n * The longitude of this location.\n */\n readonly lon: number;\n}\n\n/**\n * A record of SpotX query string parameters.\n * Each entry contains the parameter name with associated value.\n *\n * @public\n */\nexport interface SpotxData {\n [key: string]: string | number | boolean | string[] | Geo;\n}\n\n/**\n * A record of SpotX query string parameters which can be a nested structure.\n * Each entry contains the parameter name with associated value.\n *\n * @public\n */\nexport interface SpotxQueryParameter {\n [key: string]: string | number | boolean | string[] | Geo | SpotxData | SpotxData[];\n}\n\n/**\n * Describes a SpotX ad break request.\n *\n * @remarks\n * <br/> - Available since v2.13.0.\n *\n * @example\n * ```\n * {\n * integration: 'spotx',\n * id: 123456,\n * cacheBuster: true,\n * app: {\n * bundle: 'com.exampleapps.example',\n * name: 'My CTV App'\n * },\n * device: {\n * ifa: '38400000-8cf0-11bd-b23e-10b96e40000d',\n * 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',\n * geo: {\n * lat: -24.378528,\n * lon: -128.325119\n * },\n * dnt: 1,\n * lmt: 1,\n * },\n * custom: {\n * category: ['category1', 'category2'],\n * somekey: 'somevalue'\n * }\n * user: {\n * yob: 1984,\n * gender: 'm'\n * }\n * }\n * ```\n *\n * @public\n */\nexport interface SpotXAdDescription extends AdDescription {\n /**\n * The identifier of the ad break requested from SpotX.\n */\n id: number | string;\n\n /**\n * The maximum duration of the ad, in seconds.\n *\n * @defaultValue No maximum duration.\n */\n maximumAdDuration?: number | string;\n\n /**\n * The URL of the content page.\n */\n contentPageUrl?: string;\n\n /**\n * The IP address of the viewer.\n */\n ipAddress?: string;\n\n /**\n * Whether the ad break request should contain a cache buster.\n *\n * @remarks\n * <br/> - A cache buster adds a query parameter 'cb' with a random value to circumvent browser caching mechanisms.\n */\n cacheBuster?: boolean;\n\n /**\n * A source URL which contains the location of ad resources to be scheduled.\n *\n * @remarks\n * <br/> - This will override the generated URL.\n */\n sources?: string;\n\n /**\n * A record of query string parameters added to the SpotX ad break request.\n * Each entry contains the parameter name with associated value.\n *\n * @remarks\n * <br/> - Available since v2.38.0.\n */\n queryParameters?: SpotxQueryParameter;\n}\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["THEOplayerAdDescription.ts"],"sourcesContent":["import type { AdDescription, AdSource } from \"./Ads\";\n\n/**\n * Describes an ad break request.\n *\n * @public\n */\nexport interface THEOplayerAdDescription extends AdDescription {\n /**\n * The source of the ad\n *\n * @remarks\n * <br/> - Only supports VAST and VMAP.\n */\n sources: string | AdSource;\n\n /**\n * Offset after which the ad break can be skipped.\n *\n * @remarks\n * <br/> - A timestamp which is not in the playback window will result in the ad break not being started.\n * <br/> - VMAP resources will ignore this value as they contain an internal offset.\n *\n * Possible formats:\n * <br/> - A number for the offset in seconds.\n * <br/> - `'start'` for a preroll.\n * <br/> - `'end'` for a postroll.\n * <br/> - `'HH:MM:SS.mmm'` for a timestamp in the playback window.\n * <br/> - A percentage string (XX%) for a proportion of the content duration.\n *\n * @defaultValue `'start'`\n */\n skipOffset?: string | number;\n}\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["barrel.ts"],"sourcesContent":["export * from './Ads';\nexport * from './FreeWheelAdDescription';\nexport * from './IMAAdDescription';\nexport * from './SpotXAdDescription';\nexport * from './THEOplayerAdDescription';\nexport * from './ssai/barrel';\n"],"mappings":"AAAA,cAAc,OAAd;AACA,cAAc,0BAAd;AACA,cAAc,oBAAd;AACA,cAAc,sBAAd;AACA,cAAc,2BAAd;AACA,cAAc,eAAd"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["GoogleDAIConfiguration.ts"],"sourcesContent":["import type { TypedSource } from '../../SourceDescription';\nimport type { ServerSideAdInsertionConfiguration } from './ServerSideAdInsertionConfiguration';\n\n/**\n * The identifier of the Google DAI integration.\n *\n * @public\n */\nexport type GoogleDAISSAIIntegrationID = 'google-dai';\n\n/**\n * The type of the stream requested from Google DAI, represented by a value from the following list:\n * <br/> - `'live'`: The requested stream is a live stream.\n * <br/> - `'vod'`: The requested stream is a video-on-demand stream.\n *\n * @public\n */\nexport type DAIAvailabilityType = 'vod' | 'live';\n\n/**\n * Represents a configuration for server-side ad insertion with the Google DAI pre-integration.\n *\n * @remarks\n * <br/> - Available since v2.30.0.\n *\n * @public\n */\nexport interface GoogleDAIConfiguration extends ServerSideAdInsertionConfiguration {\n /**\n * The type of the requested stream.\n */\n readonly availabilityType?: DAIAvailabilityType;\n\n /**\n * The identifier for the SSAI pre-integration.\n */\n integration: GoogleDAISSAIIntegrationID;\n\n /**\n * The authorization token for the stream request.\n *\n * @remarks\n * <br/> - If present, this token is used instead of the API key for stricter content authorization.\n * <br/> - The publisher can control individual content streams authorizations based on this token.\n */\n authToken?: string;\n\n /**\n * The API key for the stream request.\n *\n * @remarks\n * <br/> - This key is used to verify applications that are attempting to access the content.\n * <br/> - This key is configured through the Google Ad Manager UI.\n */\n apiKey: string;\n\n /**\n * The ad tag parameters added to stream request.\n *\n * @remarks\n * <br/> - Each entry contains the parameter name with associated value.\n *\n * Valid parameters:\n * <br/> - {@link https://support.google.com/admanager/answer/7320899 | Supply targeting parameters to your stream}\n * <br/> - {@link https://support.google.com/admanager/answer/7320898 | Override stream variant parameters}\n */\n adTagParameters?: Record<string, string>;\n\n /**\n * The identifier for a stream activity monitor session.\n */\n streamActivityMonitorID?: string;\n}\n\n/**\n * Represents a configuration for server-side ad insertion with the Google DAI pre-integration for a Live media stream.\n *\n * @remarks\n * <br/> - Available since v2.30.0.\n *\n * @public\n */\nexport interface GoogleDAILiveConfiguration extends GoogleDAIConfiguration {\n /**\n * The type of the requested stream.\n */\n readonly availabilityType: 'live';\n\n /**\n * The identifier for the video content source for live streams.\n *\n * @remarks\n * <br/> - This property is required for live streams.\n * <br/> - The asset key can be found in the Google Ad Manager UI.\n */\n assetKey: string;\n}\n\n/**\n * Represents a configuration for server-side ad insertion with the Google DAI pre-integration for a VOD media stream.\n *\n * @remarks\n * <br/> - Available since v2.30.0.\n *\n * @public\n */\nexport interface GoogleDAIVodConfiguration extends GoogleDAIConfiguration {\n /**\n * The type of the requested stream.\n */\n readonly availabilityType: 'vod';\n\n /**\n * The identifier for the publisher content for on-demand streams.\n *\n * @remarks\n * <br/> - The publisher content comes from a CMS.\n * <br/> - This property is required for on-demand streams.\n */\n contentSourceID: string;\n\n /**\n * The identifier for the video content source for on-demand streams.\n *\n * @remarks\n * <br/> - This property is required for on-demand streams.\n */\n videoID: string;\n}\n\n/**\n * Represents a media resource with a Google DAI server-side ad insertion request.\n *\n * @public\n */\nexport interface GoogleDAITypedSource extends TypedSource {\n /**\n * The content type (MIME type) of the media resource, represented by a value from the following list:\n * <br/> - `'application/dash+xml'`: The media resource is an MPEG-DASH stream.\n * <br/> - `'application/x-mpegURL'` or `'application/vnd.apple.mpegurl'`: The media resource is an HLS stream.\n */\n type: string;\n\n ssai: GoogleDAIVodConfiguration | GoogleDAILiveConfiguration;\n}\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["ImagineServerSideAdInsertionConfiguration.ts"],"sourcesContent":["import type { TypedSource } from '../../SourceDescription';\nimport type { ServerSideAdInsertionConfiguration } from './ServerSideAdInsertionConfiguration';\n\n/**\n * The identifier of the Imagine integration.\n *\n * @public\n */\nexport type ImagineSSAIIntegrationID = 'imagine';\n\n/**\n * Describes the SSAI configuration of the Imagine integration.\n *\n * @public\n */\nexport interface ImagineServerSideAdInsertionConfiguration extends ServerSideAdInsertionConfiguration {\n /**\n * {@inheritDoc ServerSideAdInsertionConfiguration.integration}\n */\n integration: ImagineSSAIIntegrationID;\n}\n\n/**\n * Describes a source of the Imagine integration.\n *\n * @public\n */\nexport interface ImagineTypedSource extends TypedSource {\n ssai: ImagineServerSideAdInsertionConfiguration;\n}\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["ServerSideAdInsertionConfiguration.ts"],"sourcesContent":["import type { YospaceSSAIIntegrationID } from './YospaceServerSideAdInsertionConfiguration';\nimport type { GoogleDAISSAIIntegrationID } from './GoogleDAIConfiguration';\nimport type { ImagineSSAIIntegrationID } from './ImagineServerSideAdInsertionConfiguration';\n\n/**\n * The identifier of a server-side ad insertion pre-integration, represented by a value from the following list:\n * <br/> - `'yospace'`: The configuration with this identifier is a {@link YospaceServerSideAdInsertionConfiguration}\n * <br/> - `'google-dai'`: The configuration with this identifier is a {@link GoogleDAIConfiguration}\n * <br/> - `'imagine'`: The configuration with this identifier is a {@link ImagineServerSideAdInsertionConfiguration}\n *\n * @public\n */\nexport type SSAIIntegrationId = YospaceSSAIIntegrationID | GoogleDAISSAIIntegrationID | ImagineSSAIIntegrationID;\n\n/**\n * Represents a configuration for server-side ad insertion (SSAI).\n *\n * @remarks\n * <br/> - Available since v2.12.0.\n *\n * @public\n */\nexport interface ServerSideAdInsertionConfiguration {\n /**\n * The identifier for the SSAI integration.\n */\n integration: SSAIIntegrationId;\n}\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["YospaceServerSideAdInsertionConfiguration.ts"],"sourcesContent":["import type { ServerSideAdInsertionConfiguration } from './ServerSideAdInsertionConfiguration';\nimport type { TypedSource } from '../../SourceDescription';\n\n/**\n * The identifier of the Yospace integration.\n *\n * @public\n */\nexport type YospaceSSAIIntegrationID = 'yospace';\n\n/**\n * The type of the Yospace stream, represented by a value from the following list:\n * <br/> - `'live'`: The stream is a live stream.\n * <br/> - `'livepause'`: The stream is a live stream with a large DVR window.\n * <br/> - `'nonlinear'`: The stream is a Non-Linear Start-Over stream.\n * <br/> - `'vod'`: The stream is a video-on-demand stream.\n *\n * @public\n */\nexport type YospaceStreamType = 'vod' | 'live' | 'livepause' | 'nonlinear';\n\n/**\n * Represents a configuration for server-side ad insertion with the Yospace pre-integration.\n *\n * @remarks\n * <br/> - Available since v2.14.7.\n *\n * @public\n */\nexport interface YospaceServerSideAdInsertionConfiguration extends ServerSideAdInsertionConfiguration {\n /**\n * The identifier for the SSAI pre-integration.\n */\n integration: YospaceSSAIIntegrationID;\n\n /**\n * The type of the requested stream.\n *\n * @defaultValue `'live'`\n */\n streamType?: YospaceStreamType;\n}\n\n/**\n * Represents a media resource with a Yospace server-side ad insertion request.\n *\n * @public\n */\nexport interface YospaceTypedSource extends TypedSource {\n ssai: YospaceServerSideAdInsertionConfiguration;\n}\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["barrel.ts"],"sourcesContent":["export * from './GoogleDAIConfiguration';\nexport * from './ImagineServerSideAdInsertionConfiguration';\nexport * from './ServerSideAdInsertionConfiguration';\nexport * from './YospaceServerSideAdInsertionConfiguration';\n"],"mappings":"AAAA,cAAc,0BAAd;AACA,cAAc,6CAAd;AACA,cAAc,sCAAd;AACA,cAAc,6CAAd"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["barrel.ts"],"sourcesContent":["export * from './drm/barrel';\nexport * from './dash/barrel';\nexport * from './hls/barrel';\nexport * from './SourceDescription';\n"],"mappings":"AAAA,cAAc,cAAd;AACA,cAAc,eAAd;AACA,cAAc,cAAd;AACA,cAAc,qBAAd"}
|
|
1
|
+
{"version":3,"names":[],"sources":["barrel.ts"],"sourcesContent":["export * from './ads/barrel';\nexport * from './drm/barrel';\nexport * from './dash/barrel';\nexport * from './hls/barrel';\nexport * from './SourceDescription';\n"],"mappings":"AAAA,cAAc,cAAd;AACA,cAAc,cAAd;AACA,cAAc,eAAd;AACA,cAAc,cAAd;AACA,cAAc,qBAAd"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["DRMConfiguration.ts"],"sourcesContent":["/**\n * Describes the key system configuration.\n *\n * @public\n */\nexport interface KeySystemConfiguration {\n /**\n * Property to indicate whether the ability to persist state is required. This includes session data and any other type of state. The player will forward this information to the CDM when requesting access to the media key system.\n *\n * Available values are:\n * - \"required\": This will instruct the player to make the key sessions persistent.\n * - \"optional\": Choice of making use of a persistent key session is up to the player.\n * - \"not-allowed\": A temporary key session will be used.\n */\n persistentState?: 'required' | 'optional' | 'not-allowed';\n\n /**\n * Used to indicate if media key sessions can be shared across different instances, for example different browser profiles, player instances or applications. The player will forward this information to the CDM when requesting access to the media key system.\n * Available values are:\n * - “required”\n * - “optional”\n * - “not-allowed”\n */\n distinctiveIdentifier?: 'required' | 'optional' | 'not-allowed';\n\n /**\n * Allows to configure the robustness level required for audio data. The robustness level can be used to define the DRM security level. If the security level requested is not available on the platform, playback will fail.\n *\n * Following values are supported for Widevine:\n * - \"\": Lowest security level\n * - \"SW_SECURE_CRYPTO\": Secure decryption in software is required. This matches Widevine L3.\n * - \"SW_SECURE_DECODE\": Media data is to be decoded securely in software. This matches Widevine L3.\n * - \"HW_SECURE_CRYPTO\": Secure decryption in hardware is required. This matches Widevine L2.\n * - \"HW_SECURE_DECODE\": Media data is to be decoded securely in hardware. This matches Widevine L1.\n * - \"HW_SECURE_ALL\": The media pipeline must be decrypted and decoded securely in hardware. This matches Widevine L1.\n */\n audioRobustness?: string;\n\n /**\n * Allows to configure the robustness level required for video data. The robustness level can be used to define the DRM security level. If the security level requested is not available on the platform, playback will fail.\n *\n * Following values are supported for Widevine:\n *\n * - \"\": Lowest security level\n * - \"SW_SECURE_CRYPTO\": Secure decryption in software is required. This matches Widevine L3.\n * - \"SW_SECURE_DECODE\": Media data is to be decoded securely in software. This matches Widevine L3.\n * - \"HW_SECURE_CRYPTO\": Secure decryption in hardware is required. This matches Widevine L2.\n * - \"HW_SECURE_DECODE\": Media data is to be decoded securely in hardware. This matches Widevine L1.\n * - \"HW_SECURE_ALL\": The media pipeline must be decrypted and decoded securely in hardware. This matches Widevine L1.\n */\n videoRobustness?: string;\n\n /**\n * The licence acquisition URL.\n *\n * @remarks\n * <br/> - If provided, the player will send license requests for the intended DRM scheme to the provided value.\n * <br/> - If not provided, the player will use the default license acquisition URLs.\n */\n licenseAcquisitionURL?: string;\n\n /**\n * The licence type.\n *\n * @internal\n */\n licenseType?: LicenseType;\n\n /**\n * Record of HTTP headers for the licence acquisition request.\n * Each entry contains a header name with associated value.\n */\n headers?: { [headerName: string]: string };\n\n /**\n * Whether the player is allowed to use credentials for cross-origin requests.\n *\n * @remarks\n * <br/> - Credentials are cookies, authorization headers or TLS client certificates.\n *\n * @defaultValue `false`\n */\n useCredentials?: boolean;\n\n /**\n * Record of query parameters for the licence acquisition request.\n * Each entry contains a query parameter name with associated value.\n */\n queryParameters?: { [key: string]: any };\n\n /**\n * 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.\n */\n certificate?: string;\n
|
|
1
|
+
{"version":3,"names":[],"sources":["DRMConfiguration.ts"],"sourcesContent":["/**\n * Describes the key system configuration.\n *\n * @public\n */\nexport interface KeySystemConfiguration {\n /**\n * Property to indicate whether the ability to persist state is required. This includes session data and any other type of state. The player will forward this information to the CDM when requesting access to the media key system.\n *\n * Available values are:\n * - \"required\": This will instruct the player to make the key sessions persistent.\n * - \"optional\": Choice of making use of a persistent key session is up to the player.\n * - \"not-allowed\": A temporary key session will be used.\n */\n persistentState?: 'required' | 'optional' | 'not-allowed';\n\n /**\n * Used to indicate if media key sessions can be shared across different instances, for example different browser profiles, player instances or applications. The player will forward this information to the CDM when requesting access to the media key system.\n * Available values are:\n * - “required”\n * - “optional”\n * - “not-allowed”\n */\n distinctiveIdentifier?: 'required' | 'optional' | 'not-allowed';\n\n /**\n * Allows to configure the robustness level required for audio data. The robustness level can be used to define the DRM security level. If the security level requested is not available on the platform, playback will fail.\n *\n * Following values are supported for Widevine:\n * - \"\": Lowest security level\n * - \"SW_SECURE_CRYPTO\": Secure decryption in software is required. This matches Widevine L3.\n * - \"SW_SECURE_DECODE\": Media data is to be decoded securely in software. This matches Widevine L3.\n * - \"HW_SECURE_CRYPTO\": Secure decryption in hardware is required. This matches Widevine L2.\n * - \"HW_SECURE_DECODE\": Media data is to be decoded securely in hardware. This matches Widevine L1.\n * - \"HW_SECURE_ALL\": The media pipeline must be decrypted and decoded securely in hardware. This matches Widevine L1.\n */\n audioRobustness?: string;\n\n /**\n * Allows to configure the robustness level required for video data. The robustness level can be used to define the DRM security level. If the security level requested is not available on the platform, playback will fail.\n *\n * Following values are supported for Widevine:\n *\n * - \"\": Lowest security level\n * - \"SW_SECURE_CRYPTO\": Secure decryption in software is required. This matches Widevine L3.\n * - \"SW_SECURE_DECODE\": Media data is to be decoded securely in software. This matches Widevine L3.\n * - \"HW_SECURE_CRYPTO\": Secure decryption in hardware is required. This matches Widevine L2.\n * - \"HW_SECURE_DECODE\": Media data is to be decoded securely in hardware. This matches Widevine L1.\n * - \"HW_SECURE_ALL\": The media pipeline must be decrypted and decoded securely in hardware. This matches Widevine L1.\n */\n videoRobustness?: string;\n\n /**\n * The licence acquisition URL.\n *\n * @remarks\n * <br/> - If provided, the player will send license requests for the intended DRM scheme to the provided value.\n * <br/> - If not provided, the player will use the default license acquisition URLs.\n */\n licenseAcquisitionURL?: string;\n\n /**\n * The licence type.\n *\n * @internal\n */\n licenseType?: LicenseType;\n\n /**\n * Record of HTTP headers for the licence acquisition request.\n * Each entry contains a header name with associated value.\n */\n headers?: { [headerName: string]: string };\n\n /**\n * Whether the player is allowed to use credentials for cross-origin requests.\n *\n * @remarks\n * <br/> - Credentials are cookies, authorization headers or TLS client certificates.\n *\n * @defaultValue `false`\n */\n useCredentials?: boolean;\n\n /**\n * Record of query parameters for the licence acquisition request.\n * Each entry contains a query parameter name with associated value.\n */\n queryParameters?: { [key: string]: any };\n\n /**\n * 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.\n */\n certificate?: string;\n}\n\n/**\n * The type of the licence, represented by a value from the following list:\n * <br/> - `'temporary'`\n * <br/> - `'persistent'`\n *\n * @public\n */\nexport type LicenseType = 'temporary' | 'persistent';\n\n/**\n * Describes the FairPlay key system configuration.\n *\n * @public\n */\nexport interface FairPlayKeySystemConfiguration extends KeySystemConfiguration {\n /**\n * The URL of the certificate.\n */\n certificateURL?: string;\n}\n\n/**\n * Describes the PlayReady key system configuration.\n *\n * @public\n */\nexport interface PlayReadyKeySystemConfiguration extends KeySystemConfiguration {\n /**\n * Custom data which will be passed to the CDM.\n */\n customData?: string;\n}\n\n/**\n * Describes the Widevine key system configuration.\n *\n * @public\n */\nexport type WidevineKeySystemConfiguration = KeySystemConfiguration;\n\n/**\n * Describes the ClearKey key system configuration.\n *\n * @public\n */\nexport interface ClearkeyKeySystemConfiguration extends KeySystemConfiguration {\n /**\n * List of decryption keys.\n */\n keys?: ClearkeyDecryptionKey[];\n}\n\n/**\n * Describes the ClearKey decryption key.\n *\n * @public\n */\nexport interface ClearkeyDecryptionKey {\n /**\n * The identifier of the key.\n *\n * @remarks\n * <br/> - This is a base64url encoding of the octet sequence containing the key ID.\n * <br/> - See {@link https://www.w3.org/TR/encrypted-media/#clear-key-license-format | Clear Key License Format}.\n */\n id: string;\n\n /**\n * The value of the key.\n *\n * @remarks\n * <br/> - The base64url encoding of the octet sequence containing the symmetric key value.\n * <br/> - See {@link https://www.w3.org/TR/encrypted-media/#clear-key-license-format | Clear Key License Format}.\n */\n value: string;\n}\n\n/**\n * Describes the AES128 key system configuration.\n *\n * @public\n */\nexport interface AES128KeySystemConfiguration {\n /**\n * Whether the player is allowed to use credentials for cross-origin requests.\n *\n * @remarks\n * <br/> - Credentials are cookies, authorization headers or TLS client certificates.\n *\n * @defaultValue `false`\n */\n useCredentials?: true;\n}\n\n/**\n * Describes the configuration of the DRM.\n *\n * @public\n */\nexport interface DRMConfiguration {\n /**\n * The identifier of the DRM integration.\n */\n integration?: string;\n\n /**\n * The configuration of the FairPlay key system.\n */\n fairplay?: FairPlayKeySystemConfiguration;\n\n /**\n * The configuration of the PlayReady key system.\n */\n playready?: PlayReadyKeySystemConfiguration;\n\n /**\n * The configuration of the Widevine key system.\n */\n widevine?: WidevineKeySystemConfiguration;\n\n /**\n * The configuration of the ClearKey key system.\n */\n clearkey?: ClearkeyKeySystemConfiguration;\n\n /**\n * The configuration of the AES key system.\n */\n aes128?: AES128KeySystemConfiguration;\n\n /**\n * An object of key/value pairs which can be used to pass in specific parameters related to a source into a\n * {@link ContentProtectionIntegration}.\n */\n integrationParameters?: { [parameterName: string]: any };\n\n /**\n * An ordered list of URNs of key systems as specified by https://dashif.org/identifiers/content_protection/, or one of the following identifiers:\n *\n * `\"widevine\"` alias for `\"urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed\"`\n * `\"fairplay\"` alias for `\"urn:uuid:94ce86fb-07bb-4b43-adb8-93d2fa968ca2\"`\n * `\"playready\"` alias for `\"urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95\"`\n *\n * The first key system in this list which is supported on the given platform will be used for playback.\n *\n * Default value is ['widevine', 'playready', 'fairplay'].\n */\n preferredKeySystems?: Array<KeySystemId | string>;\n}\n\n/**\n * The id of a key system. Possible values are 'widevine', 'fairplay' and 'playready'.\n *\n * @public\n */\nexport type KeySystemId = 'widevine' | 'fairplay' | 'playready';\n"],"mappings":""}
|