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,84 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
|
|
7
|
+
var _Ads = require("./Ads");
|
|
8
|
+
|
|
9
|
+
Object.keys(_Ads).forEach(function (key) {
|
|
10
|
+
if (key === "default" || key === "__esModule") return;
|
|
11
|
+
if (key in exports && exports[key] === _Ads[key]) return;
|
|
12
|
+
Object.defineProperty(exports, key, {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _Ads[key];
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
var _FreeWheelAdDescription = require("./FreeWheelAdDescription");
|
|
21
|
+
|
|
22
|
+
Object.keys(_FreeWheelAdDescription).forEach(function (key) {
|
|
23
|
+
if (key === "default" || key === "__esModule") return;
|
|
24
|
+
if (key in exports && exports[key] === _FreeWheelAdDescription[key]) return;
|
|
25
|
+
Object.defineProperty(exports, key, {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function () {
|
|
28
|
+
return _FreeWheelAdDescription[key];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
var _IMAAdDescription = require("./IMAAdDescription");
|
|
34
|
+
|
|
35
|
+
Object.keys(_IMAAdDescription).forEach(function (key) {
|
|
36
|
+
if (key === "default" || key === "__esModule") return;
|
|
37
|
+
if (key in exports && exports[key] === _IMAAdDescription[key]) return;
|
|
38
|
+
Object.defineProperty(exports, key, {
|
|
39
|
+
enumerable: true,
|
|
40
|
+
get: function () {
|
|
41
|
+
return _IMAAdDescription[key];
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
var _SpotXAdDescription = require("./SpotXAdDescription");
|
|
47
|
+
|
|
48
|
+
Object.keys(_SpotXAdDescription).forEach(function (key) {
|
|
49
|
+
if (key === "default" || key === "__esModule") return;
|
|
50
|
+
if (key in exports && exports[key] === _SpotXAdDescription[key]) return;
|
|
51
|
+
Object.defineProperty(exports, key, {
|
|
52
|
+
enumerable: true,
|
|
53
|
+
get: function () {
|
|
54
|
+
return _SpotXAdDescription[key];
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
var _THEOplayerAdDescription = require("./THEOplayerAdDescription");
|
|
60
|
+
|
|
61
|
+
Object.keys(_THEOplayerAdDescription).forEach(function (key) {
|
|
62
|
+
if (key === "default" || key === "__esModule") return;
|
|
63
|
+
if (key in exports && exports[key] === _THEOplayerAdDescription[key]) return;
|
|
64
|
+
Object.defineProperty(exports, key, {
|
|
65
|
+
enumerable: true,
|
|
66
|
+
get: function () {
|
|
67
|
+
return _THEOplayerAdDescription[key];
|
|
68
|
+
}
|
|
69
|
+
});
|
|
70
|
+
});
|
|
71
|
+
|
|
72
|
+
var _barrel = require("./ssai/barrel");
|
|
73
|
+
|
|
74
|
+
Object.keys(_barrel).forEach(function (key) {
|
|
75
|
+
if (key === "default" || key === "__esModule") return;
|
|
76
|
+
if (key in exports && exports[key] === _barrel[key]) return;
|
|
77
|
+
Object.defineProperty(exports, key, {
|
|
78
|
+
enumerable: true,
|
|
79
|
+
get: function () {
|
|
80
|
+
return _barrel[key];
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
});
|
|
84
|
+
//# sourceMappingURL=barrel.js.map
|
|
@@ -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;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"}
|
|
@@ -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,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
|
|
7
|
+
var _GoogleDAIConfiguration = require("./GoogleDAIConfiguration");
|
|
8
|
+
|
|
9
|
+
Object.keys(_GoogleDAIConfiguration).forEach(function (key) {
|
|
10
|
+
if (key === "default" || key === "__esModule") return;
|
|
11
|
+
if (key in exports && exports[key] === _GoogleDAIConfiguration[key]) return;
|
|
12
|
+
Object.defineProperty(exports, key, {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _GoogleDAIConfiguration[key];
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
var _ImagineServerSideAdInsertionConfiguration = require("./ImagineServerSideAdInsertionConfiguration");
|
|
21
|
+
|
|
22
|
+
Object.keys(_ImagineServerSideAdInsertionConfiguration).forEach(function (key) {
|
|
23
|
+
if (key === "default" || key === "__esModule") return;
|
|
24
|
+
if (key in exports && exports[key] === _ImagineServerSideAdInsertionConfiguration[key]) return;
|
|
25
|
+
Object.defineProperty(exports, key, {
|
|
26
|
+
enumerable: true,
|
|
27
|
+
get: function () {
|
|
28
|
+
return _ImagineServerSideAdInsertionConfiguration[key];
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
var _ServerSideAdInsertionConfiguration = require("./ServerSideAdInsertionConfiguration");
|
|
34
|
+
|
|
35
|
+
Object.keys(_ServerSideAdInsertionConfiguration).forEach(function (key) {
|
|
36
|
+
if (key === "default" || key === "__esModule") return;
|
|
37
|
+
if (key in exports && exports[key] === _ServerSideAdInsertionConfiguration[key]) return;
|
|
38
|
+
Object.defineProperty(exports, key, {
|
|
39
|
+
enumerable: true,
|
|
40
|
+
get: function () {
|
|
41
|
+
return _ServerSideAdInsertionConfiguration[key];
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
|
|
46
|
+
var _YospaceServerSideAdInsertionConfiguration = require("./YospaceServerSideAdInsertionConfiguration");
|
|
47
|
+
|
|
48
|
+
Object.keys(_YospaceServerSideAdInsertionConfiguration).forEach(function (key) {
|
|
49
|
+
if (key === "default" || key === "__esModule") return;
|
|
50
|
+
if (key in exports && exports[key] === _YospaceServerSideAdInsertionConfiguration[key]) return;
|
|
51
|
+
Object.defineProperty(exports, key, {
|
|
52
|
+
enumerable: true,
|
|
53
|
+
get: function () {
|
|
54
|
+
return _YospaceServerSideAdInsertionConfiguration[key];
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
//# sourceMappingURL=barrel.js.map
|
|
@@ -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;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"}
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
|
|
7
|
-
var _barrel = require("./
|
|
7
|
+
var _barrel = require("./ads/barrel");
|
|
8
8
|
|
|
9
9
|
Object.keys(_barrel).forEach(function (key) {
|
|
10
10
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -17,7 +17,7 @@ Object.keys(_barrel).forEach(function (key) {
|
|
|
17
17
|
});
|
|
18
18
|
});
|
|
19
19
|
|
|
20
|
-
var _barrel2 = require("./
|
|
20
|
+
var _barrel2 = require("./drm/barrel");
|
|
21
21
|
|
|
22
22
|
Object.keys(_barrel2).forEach(function (key) {
|
|
23
23
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -30,7 +30,7 @@ Object.keys(_barrel2).forEach(function (key) {
|
|
|
30
30
|
});
|
|
31
31
|
});
|
|
32
32
|
|
|
33
|
-
var _barrel3 = require("./
|
|
33
|
+
var _barrel3 = require("./dash/barrel");
|
|
34
34
|
|
|
35
35
|
Object.keys(_barrel3).forEach(function (key) {
|
|
36
36
|
if (key === "default" || key === "__esModule") return;
|
|
@@ -43,6 +43,19 @@ Object.keys(_barrel3).forEach(function (key) {
|
|
|
43
43
|
});
|
|
44
44
|
});
|
|
45
45
|
|
|
46
|
+
var _barrel4 = require("./hls/barrel");
|
|
47
|
+
|
|
48
|
+
Object.keys(_barrel4).forEach(function (key) {
|
|
49
|
+
if (key === "default" || key === "__esModule") return;
|
|
50
|
+
if (key in exports && exports[key] === _barrel4[key]) return;
|
|
51
|
+
Object.defineProperty(exports, key, {
|
|
52
|
+
enumerable: true,
|
|
53
|
+
get: function () {
|
|
54
|
+
return _barrel4[key];
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
});
|
|
58
|
+
|
|
46
59
|
var _SourceDescription = require("./SourceDescription");
|
|
47
60
|
|
|
48
61
|
Object.keys(_SourceDescription).forEach(function (key) {
|
|
@@ -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;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"}
|
|
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;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"}
|
|
@@ -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":""}
|
|
@@ -3,4 +3,33 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
exports.findMediaTrackByUid = findMediaTrackByUid;
|
|
7
|
+
exports.findQualitiesByUid = findQualitiesByUid;
|
|
8
|
+
exports.findQualityByUid = findQualityByUid;
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Represents a media track (audio or video) of a media resource.
|
|
12
|
+
*
|
|
13
|
+
* @public
|
|
14
|
+
*/
|
|
15
|
+
function findMediaTrackByUid(mediaTracks, uid) {
|
|
16
|
+
return mediaTracks.find(track => track.uid === uid);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
function findQualityByUid(mediaTrack, uid) {
|
|
20
|
+
return mediaTrack.qualities.find(quality => quality.uid === uid);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
function findQualitiesByUid(mediaTrack, uid) {
|
|
24
|
+
if (uid && mediaTrack) {
|
|
25
|
+
if (Array.isArray(uid)) {
|
|
26
|
+
return mediaTrack.qualities.filter(quality => uid.includes(quality.uid));
|
|
27
|
+
} else {
|
|
28
|
+
const quality = findQualityByUid(mediaTrack, uid);
|
|
29
|
+
return quality ? [quality] : undefined;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
return undefined;
|
|
34
|
+
}
|
|
6
35
|
//# sourceMappingURL=MediaTrack.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["MediaTrack.ts"],"sourcesContent":["import type { Track } from './Track';\nimport type { Quality } from './Quality';\n\nexport type MediaTrackKind = 'main' | 'alternative';\n\n/**\n * Represents a media track (audio or video) of a media resource.\n *\n * @public\n */\nexport interface MediaTrack extends Track {\n /**\n * The identifier of the media track.\n *\n * @remarks\n * <br/> - This identifier can be used to distinguish between related tracks, e.g. tracks in the same list.\n */\n // Note: This identifier is a randomly generated string.\n readonly id: string;\n\n /**\n * A unique identifier of the media track.\n *\n * @remarks\n * <br/> - This identifier is unique across tracks of a THEOplayer instance and can be used to distinguish between tracks.\n * <br/> - This identifier is a randomly generated number.\n */\n readonly uid: number;\n\n /**\n * The kind of the media track, represented by a value from the following list:\n * <br/> - `'main'`: The track is the default track for playback\n * <br/> - `'alternative'`: The track is not the default track for playback\n */\n readonly kind: MediaTrackKind;\n\n /**\n * The label of the media track.\n */\n label: string;\n\n /**\n * The language of the media track.\n */\n readonly language: string;\n\n /**\n * The uid of the active quality of the media track, i.e. the quality that is currently being played.\n */\n readonly activeQuality: number | undefined;\n\n /**\n * The qualities of the media track.\n */\n readonly qualities: Quality[];\n\n /**\n * One or more desired uids of qualities of the media track.\n *\n * @remarks\n * <br/> - If desired qualities are present, the Adaptive Bitrate mechanism of the player will limit itself to these qualities.\n * <br/> - If one desired quality is present, the Adaptive Bitrate mechanism of the player will be disabled and the desired quality will be played back.\n */\n targetQuality: number | number[] | undefined;\n}\n"],"mappings":""}
|
|
1
|
+
{"version":3,"names":["findMediaTrackByUid","mediaTracks","uid","find","track","findQualityByUid","mediaTrack","qualities","quality","findQualitiesByUid","Array","isArray","filter","includes","undefined"],"sources":["MediaTrack.ts"],"sourcesContent":["import type { Track } from './Track';\nimport type { Quality } from './Quality';\n\nexport type MediaTrackKind = 'main' | 'alternative';\n\n/**\n * Represents a media track (audio or video) of a media resource.\n *\n * @public\n */\nexport interface MediaTrack extends Track {\n /**\n * The identifier of the media track.\n *\n * @remarks\n * <br/> - This identifier can be used to distinguish between related tracks, e.g. tracks in the same list.\n */\n // Note: This identifier is a randomly generated string.\n readonly id: string;\n\n /**\n * A unique identifier of the media track.\n *\n * @remarks\n * <br/> - This identifier is unique across tracks of a THEOplayer instance and can be used to distinguish between tracks.\n * <br/> - This identifier is a randomly generated number.\n */\n readonly uid: number;\n\n /**\n * The kind of the media track, represented by a value from the following list:\n * <br/> - `'main'`: The track is the default track for playback\n * <br/> - `'alternative'`: The track is not the default track for playback\n */\n readonly kind: MediaTrackKind;\n\n /**\n * The label of the media track.\n */\n readonly label: string;\n\n /**\n * The language of the media track.\n */\n readonly language: string;\n\n /**\n * The uid of the active quality of the media track, i.e. the quality that is currently being played.\n */\n readonly activeQuality: number | undefined;\n\n /**\n * The qualities of the media track.\n */\n readonly qualities: Quality[];\n\n /**\n * One or more desired uids of qualities of the media track.\n *\n * @remarks\n * <br/> - If desired qualities are present, the Adaptive Bitrate mechanism of the player will limit itself to these qualities.\n * <br/> - If one desired quality is present, the Adaptive Bitrate mechanism of the player will be disabled and the desired quality will be played back.\n */\n readonly targetQuality: number | number[] | undefined;\n}\n\nexport function findMediaTrackByUid(mediaTracks: MediaTrack[], uid: number | undefined): MediaTrack | undefined {\n return mediaTracks.find((track) => track.uid === uid);\n}\n\nexport function findQualityByUid(mediaTrack: MediaTrack, uid: number | undefined): Quality | undefined {\n return mediaTrack.qualities.find((quality) => quality.uid === uid);\n}\n\nexport function findQualitiesByUid(mediaTrack: MediaTrack | undefined, uid: number | number[] | undefined): Quality[] | undefined {\n if (uid && mediaTrack) {\n if (Array.isArray(uid)) {\n return mediaTrack.qualities.filter((quality) => uid.includes(quality.uid));\n } else {\n const quality = findQualityByUid(mediaTrack, uid);\n return quality ? [quality] : undefined;\n }\n }\n return undefined;\n}\n"],"mappings":";;;;;;;;;AAKA;AACA;AACA;AACA;AACA;AAyDO,SAASA,mBAAT,CAA6BC,WAA7B,EAAwDC,GAAxD,EAAyG;EAC9G,OAAOD,WAAW,CAACE,IAAZ,CAAkBC,KAAD,IAAWA,KAAK,CAACF,GAAN,KAAcA,GAA1C,CAAP;AACD;;AAEM,SAASG,gBAAT,CAA0BC,UAA1B,EAAkDJ,GAAlD,EAAgG;EACrG,OAAOI,UAAU,CAACC,SAAX,CAAqBJ,IAArB,CAA2BK,OAAD,IAAaA,OAAO,CAACN,GAAR,KAAgBA,GAAvD,CAAP;AACD;;AAEM,SAASO,kBAAT,CAA4BH,UAA5B,EAAgEJ,GAAhE,EAA2H;EAChI,IAAIA,GAAG,IAAII,UAAX,EAAuB;IACrB,IAAII,KAAK,CAACC,OAAN,CAAcT,GAAd,CAAJ,EAAwB;MACtB,OAAOI,UAAU,CAACC,SAAX,CAAqBK,MAArB,CAA6BJ,OAAD,IAAaN,GAAG,CAACW,QAAJ,CAAaL,OAAO,CAACN,GAArB,CAAzC,CAAP;IACD,CAFD,MAEO;MACL,MAAMM,OAAO,GAAGH,gBAAgB,CAACC,UAAD,EAAaJ,GAAb,CAAhC;MACA,OAAOM,OAAO,GAAG,CAACA,OAAD,CAAH,GAAeM,SAA7B;IACD;EACF;;EACD,OAAOA,SAAP;AACD"}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.fromBase64StringToUint8Array = fromBase64StringToUint8Array;
|
|
7
|
+
exports.fromObjectToBase64String = fromObjectToBase64String;
|
|
8
|
+
exports.fromObjectToString = fromObjectToString;
|
|
9
|
+
exports.fromObjectToUint8Array = fromObjectToUint8Array;
|
|
10
|
+
exports.fromStringToBase64String = fromStringToBase64String;
|
|
11
|
+
exports.fromStringToObject = fromStringToObject;
|
|
12
|
+
exports.fromStringToUint8Array = fromStringToUint8Array;
|
|
13
|
+
exports.fromUint8ArrayToBase64String = fromUint8ArrayToBase64String;
|
|
14
|
+
exports.fromUint8ArrayToObject = fromUint8ArrayToObject;
|
|
15
|
+
exports.fromUint8ArrayToString = fromUint8ArrayToString;
|
|
16
|
+
|
|
17
|
+
var _buffer = require("buffer");
|
|
18
|
+
|
|
19
|
+
// from object
|
|
20
|
+
function fromObjectToString(obj) {
|
|
21
|
+
return JSON.stringify(obj);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
function fromObjectToBase64String(obj) {
|
|
25
|
+
return fromStringToBase64String(fromObjectToString(obj));
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
function fromObjectToUint8Array(obj) {
|
|
29
|
+
return fromStringToUint8Array(fromObjectToString(obj));
|
|
30
|
+
} // from string
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
function fromStringToBase64String(str) {
|
|
34
|
+
return _buffer.Buffer.from(str, 'utf8').toString('base64');
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
function fromStringToUint8Array(str) {
|
|
38
|
+
return _buffer.Buffer.from(str, 'utf8');
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function fromStringToObject(str) {
|
|
42
|
+
return JSON.parse(str);
|
|
43
|
+
} // from base64 string
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
function fromBase64StringToUint8Array(str) {
|
|
47
|
+
return _buffer.Buffer.from(str, 'base64');
|
|
48
|
+
} // from uint8Array
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
function fromUint8ArrayToBase64String(array) {
|
|
52
|
+
return _buffer.Buffer.from(array).toString('base64');
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
function fromUint8ArrayToString(array) {
|
|
56
|
+
return _buffer.Buffer.from(array).toString('utf8');
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
function fromUint8ArrayToObject(array) {
|
|
60
|
+
return fromStringToObject(fromUint8ArrayToString(array));
|
|
61
|
+
}
|
|
62
|
+
//# sourceMappingURL=TypeUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["fromObjectToString","obj","JSON","stringify","fromObjectToBase64String","fromStringToBase64String","fromObjectToUint8Array","fromStringToUint8Array","str","Buffer","from","toString","fromStringToObject","parse","fromBase64StringToUint8Array","fromUint8ArrayToBase64String","array","fromUint8ArrayToString","fromUint8ArrayToObject"],"sources":["TypeUtils.ts"],"sourcesContent":["import { Buffer } from 'buffer';\n\n// from object\nexport function fromObjectToString(obj: { [key: string]: any }): string {\n return JSON.stringify(obj);\n}\nexport function fromObjectToBase64String(obj: { [key: string]: any }): string {\n return fromStringToBase64String(fromObjectToString(obj));\n}\nexport function fromObjectToUint8Array(obj: { [key: string]: any }): Uint8Array {\n return fromStringToUint8Array(fromObjectToString(obj));\n}\n\n// from string\nexport function fromStringToBase64String(str: string): string {\n return Buffer.from(str, 'utf8').toString('base64');\n}\nexport function fromStringToUint8Array(str: string): Uint8Array {\n return Buffer.from(str, 'utf8');\n}\nexport function fromStringToObject(str: string): { [key: string]: any } {\n return JSON.parse(str);\n}\n\n// from base64 string\nexport function fromBase64StringToUint8Array(str: string): Uint8Array {\n return Buffer.from(str, 'base64');\n}\n\n// from uint8Array\nexport function fromUint8ArrayToBase64String(array: Uint8Array): string {\n return Buffer.from(array).toString('base64');\n}\nexport function fromUint8ArrayToString(array: Uint8Array): string {\n return Buffer.from(array).toString('utf8');\n}\nexport function fromUint8ArrayToObject(array: Uint8Array): { [key: string]: any } {\n return fromStringToObject(fromUint8ArrayToString(array));\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;;AAEA;AACO,SAASA,kBAAT,CAA4BC,GAA5B,EAAiE;EACtE,OAAOC,IAAI,CAACC,SAAL,CAAeF,GAAf,CAAP;AACD;;AACM,SAASG,wBAAT,CAAkCH,GAAlC,EAAuE;EAC5E,OAAOI,wBAAwB,CAACL,kBAAkB,CAACC,GAAD,CAAnB,CAA/B;AACD;;AACM,SAASK,sBAAT,CAAgCL,GAAhC,EAAyE;EAC9E,OAAOM,sBAAsB,CAACP,kBAAkB,CAACC,GAAD,CAAnB,CAA7B;AACD,C,CAED;;;AACO,SAASI,wBAAT,CAAkCG,GAAlC,EAAuD;EAC5D,OAAOC,cAAA,CAAOC,IAAP,CAAYF,GAAZ,EAAiB,MAAjB,EAAyBG,QAAzB,CAAkC,QAAlC,CAAP;AACD;;AACM,SAASJ,sBAAT,CAAgCC,GAAhC,EAAyD;EAC9D,OAAOC,cAAA,CAAOC,IAAP,CAAYF,GAAZ,EAAiB,MAAjB,CAAP;AACD;;AACM,SAASI,kBAAT,CAA4BJ,GAA5B,EAAiE;EACtE,OAAON,IAAI,CAACW,KAAL,CAAWL,GAAX,CAAP;AACD,C,CAED;;;AACO,SAASM,4BAAT,CAAsCN,GAAtC,EAA+D;EACpE,OAAOC,cAAA,CAAOC,IAAP,CAAYF,GAAZ,EAAiB,QAAjB,CAAP;AACD,C,CAED;;;AACO,SAASO,4BAAT,CAAsCC,KAAtC,EAAiE;EACtE,OAAOP,cAAA,CAAOC,IAAP,CAAYM,KAAZ,EAAmBL,QAAnB,CAA4B,QAA5B,CAAP;AACD;;AACM,SAASM,sBAAT,CAAgCD,KAAhC,EAA2D;EAChE,OAAOP,cAAA,CAAOC,IAAP,CAAYM,KAAZ,EAAmBL,QAAnB,CAA4B,MAA5B,CAAP;AACD;;AACM,SAASO,sBAAT,CAAgCF,KAAhC,EAA2E;EAChF,OAAOJ,kBAAkB,CAACK,sBAAsB,CAACD,KAAD,CAAvB,CAAzB;AACD"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
|
|
7
|
+
var _TypeUtils = require("./TypeUtils");
|
|
8
|
+
|
|
9
|
+
Object.keys(_TypeUtils).forEach(function (key) {
|
|
10
|
+
if (key === "default" || key === "__esModule") return;
|
|
11
|
+
if (key in exports && exports[key] === _TypeUtils[key]) return;
|
|
12
|
+
Object.defineProperty(exports, key, {
|
|
13
|
+
enumerable: true,
|
|
14
|
+
get: function () {
|
|
15
|
+
return _TypeUtils[key];
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
//# sourceMappingURL=barrel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["barrel.ts"],"sourcesContent":["export * from './TypeUtils';\n"],"mappings":";;;;;;AAAA;;AAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA"}
|
package/lib/commonjs/index.js
CHANGED
|
@@ -4,8 +4,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
var _exportNames = {
|
|
7
|
-
THEOplayerView: true
|
|
7
|
+
THEOplayerView: true,
|
|
8
|
+
ContentProtectionRegistry: true
|
|
8
9
|
};
|
|
10
|
+
Object.defineProperty(exports, "ContentProtectionRegistry", {
|
|
11
|
+
enumerable: true,
|
|
12
|
+
get: function () {
|
|
13
|
+
return _ContentProtectionRegistry.ContentProtectionRegistry;
|
|
14
|
+
}
|
|
15
|
+
});
|
|
9
16
|
Object.defineProperty(exports, "THEOplayerView", {
|
|
10
17
|
enumerable: true,
|
|
11
18
|
get: function () {
|
|
@@ -28,4 +35,6 @@ Object.keys(_barrel).forEach(function (key) {
|
|
|
28
35
|
});
|
|
29
36
|
|
|
30
37
|
var _THEOplayerView = require("./internal/THEOplayerView");
|
|
38
|
+
|
|
39
|
+
var _ContentProtectionRegistry = require("./internal/drm/ContentProtectionRegistry");
|
|
31
40
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["index.tsx"],"sourcesContent":["export * from './api/barrel';\nexport { THEOplayerView } from './internal/THEOplayerView';\n"],"mappings":"
|
|
1
|
+
{"version":3,"names":[],"sources":["index.tsx"],"sourcesContent":["export * from './api/barrel';\nexport { THEOplayerView } from './internal/THEOplayerView';\nexport { ContentProtectionRegistry } from './internal/drm/ContentProtectionRegistry';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA;;AAAA;EAAA;EAAA;EAAA;EAAA;IAAA;IAAA;MAAA;IAAA;EAAA;AAAA;;AACA;;AACA"}
|
|
@@ -11,6 +11,10 @@ var _reactNative = require("react-native");
|
|
|
11
11
|
|
|
12
12
|
var _THEOplayerView = _interopRequireDefault(require("./THEOplayerView.style"));
|
|
13
13
|
|
|
14
|
+
var _THEOplayerNativeAdsAPI = require("./ads/THEOplayerNativeAdsAPI");
|
|
15
|
+
|
|
16
|
+
var _TypeUtils = require("./utils/TypeUtils");
|
|
17
|
+
|
|
14
18
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
19
|
|
|
16
20
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -27,6 +31,8 @@ class THEOplayerView extends _react.PureComponent {
|
|
|
27
31
|
|
|
28
32
|
_defineProperty(this, "_root", void 0);
|
|
29
33
|
|
|
34
|
+
_defineProperty(this, "_adsApi", void 0);
|
|
35
|
+
|
|
30
36
|
_defineProperty(this, "_onSourceChange", () => {
|
|
31
37
|
this.reset();
|
|
32
38
|
|
|
@@ -52,7 +58,9 @@ class THEOplayerView extends _react.PureComponent {
|
|
|
52
58
|
|
|
53
59
|
_defineProperty(this, "_onLoadedMetadata", event => {
|
|
54
60
|
if (this.props.onLoadedMetadata) {
|
|
55
|
-
this.props.onLoadedMetadata(event.nativeEvent
|
|
61
|
+
this.props.onLoadedMetadata({ ...event.nativeEvent,
|
|
62
|
+
duration: (0, _TypeUtils.decodeNanInf)(event.nativeEvent.duration)
|
|
63
|
+
});
|
|
56
64
|
}
|
|
57
65
|
});
|
|
58
66
|
|
|
@@ -84,6 +92,9 @@ class THEOplayerView extends _react.PureComponent {
|
|
|
84
92
|
});
|
|
85
93
|
|
|
86
94
|
_defineProperty(this, "_onPlaying", () => {
|
|
95
|
+
// potentially notify change in buffering state
|
|
96
|
+
this.maybeChangeBufferingState(false);
|
|
97
|
+
|
|
87
98
|
if (this.props.onPlaying) {
|
|
88
99
|
this.props.onPlaying();
|
|
89
100
|
}
|
|
@@ -130,7 +141,9 @@ class THEOplayerView extends _react.PureComponent {
|
|
|
130
141
|
|
|
131
142
|
_defineProperty(this, "_onDurationChange", event => {
|
|
132
143
|
if (this.props.onDurationChange) {
|
|
133
|
-
this.props.onDurationChange(
|
|
144
|
+
this.props.onDurationChange({
|
|
145
|
+
duration: (0, _TypeUtils.decodeNanInf)(event.nativeEvent.duration)
|
|
146
|
+
});
|
|
134
147
|
}
|
|
135
148
|
});
|
|
136
149
|
|
|
@@ -152,6 +165,12 @@ class THEOplayerView extends _react.PureComponent {
|
|
|
152
165
|
}
|
|
153
166
|
});
|
|
154
167
|
|
|
168
|
+
_defineProperty(this, "_onAdEvent", event => {
|
|
169
|
+
if (this.props.onAdEvent) {
|
|
170
|
+
this.props.onAdEvent(event.nativeEvent);
|
|
171
|
+
}
|
|
172
|
+
});
|
|
173
|
+
|
|
155
174
|
_defineProperty(this, "_onFullscreenPlayerWillPresent", () => {
|
|
156
175
|
if (this.props.onFullscreenPlayerWillPresent) {
|
|
157
176
|
this.props.onFullscreenPlayerWillPresent();
|
|
@@ -178,6 +197,7 @@ class THEOplayerView extends _react.PureComponent {
|
|
|
178
197
|
|
|
179
198
|
this._root = /*#__PURE__*/_react.default.createRef();
|
|
180
199
|
this.state = THEOplayerView.initialState;
|
|
200
|
+
this._adsApi = new _THEOplayerNativeAdsAPI.THEOplayerNativeAdsAPI(this);
|
|
181
201
|
}
|
|
182
202
|
|
|
183
203
|
componentWillUnmount() {
|
|
@@ -205,6 +225,14 @@ class THEOplayerView extends _react.PureComponent {
|
|
|
205
225
|
});
|
|
206
226
|
}
|
|
207
227
|
|
|
228
|
+
get nativeHandle() {
|
|
229
|
+
return (0, _reactNative.findNodeHandle)(this._root.current);
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
get ads() {
|
|
233
|
+
return this._adsApi;
|
|
234
|
+
}
|
|
235
|
+
|
|
208
236
|
reset() {
|
|
209
237
|
this.setState(THEOplayerView.initialState);
|
|
210
238
|
}
|
|
@@ -236,8 +264,18 @@ class THEOplayerView extends _react.PureComponent {
|
|
|
236
264
|
}
|
|
237
265
|
}
|
|
238
266
|
|
|
267
|
+
buildWrapperProps() {
|
|
268
|
+
const {
|
|
269
|
+
targetVideoQuality
|
|
270
|
+
} = this.props;
|
|
271
|
+
return Object.assign({}, { ...this.props,
|
|
272
|
+
// Always pass an array for targetVideoQuality.
|
|
273
|
+
targetVideoQuality: !targetVideoQuality ? [] : Array.isArray(targetVideoQuality) ? targetVideoQuality : [targetVideoQuality]
|
|
274
|
+
});
|
|
275
|
+
}
|
|
276
|
+
|
|
239
277
|
render() {
|
|
240
|
-
const wrapperProps =
|
|
278
|
+
const wrapperProps = this.buildWrapperProps();
|
|
241
279
|
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
242
280
|
style: [_THEOplayerView.default.base, wrapperProps.style]
|
|
243
281
|
}, /*#__PURE__*/_react.default.createElement(THEOplayerRCTView, _extends({
|
|
@@ -261,6 +299,7 @@ class THEOplayerView extends _react.PureComponent {
|
|
|
261
299
|
onNativeSegmentNotFound: this._onSegmentNotFound,
|
|
262
300
|
onNativeTextTrackListEvent: this._onTextTrackListEvent,
|
|
263
301
|
onNativeTextTrackEvent: this._onTextTrackEvent,
|
|
302
|
+
onNativeAdEvent: this._onAdEvent,
|
|
264
303
|
onNativeFullscreenPlayerWillPresent: this._onFullscreenPlayerWillPresent,
|
|
265
304
|
onNativeFullscreenPlayerDidPresent: this._onFullscreenPlayerDidPresent,
|
|
266
305
|
onNativeFullscreenPlayerWillDismiss: this._onFullscreenPlayerWillDismiss,
|