react-native-theoplayer 3.9.2 → 3.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +18 -1
- package/android/build.gradle +8 -8
- package/android/src/main/java/com/theoplayer/presentation/PresentationManager.kt +7 -0
- package/android/src/main/java/com/theoplayer/source/SourceAdapter.kt +2 -0
- package/ios/THEOplayerRCTPlayerAPI.swift +2 -2
- package/ios/ads/THEOplayerRCTAdsAPI+DAI.swift +8 -8
- package/ios/ads/THEOplayerRCTAdsAPI.swift +12 -12
- package/ios/backgroundAudio/THEOplayerRCTNowPlayingManager.swift +12 -3
- package/ios/casting/THEOplayerRCTCastAPI+Airplay.swift +8 -8
- package/ios/casting/THEOplayerRCTCastAPI+Chromecast.swift +12 -12
- package/ios/casting/THEOplayerRCTCastAPI.swift +2 -2
- package/lib/commonjs/api/THEOplayerView.js.map +1 -1
- package/lib/commonjs/api/abr/ABRConfiguration.js.map +1 -1
- package/lib/commonjs/api/abr/barrel.js.map +1 -1
- package/lib/commonjs/api/ads/Ad.js.map +1 -1
- package/lib/commonjs/api/ads/AdBreak.js.map +1 -1
- package/lib/commonjs/api/ads/AdsAPI.js.map +1 -1
- package/lib/commonjs/api/ads/AdsConfiguration.js.map +1 -1
- package/lib/commonjs/api/ads/CompanionAd.js.map +1 -1
- package/lib/commonjs/api/ads/GoogleDai.js.map +1 -1
- package/lib/commonjs/api/ads/GoogleImaAd.js.map +1 -1
- package/lib/commonjs/api/ads/GoogleImaConfiguration.js.map +1 -1
- package/lib/commonjs/api/ads/barrel.js.map +1 -1
- package/lib/commonjs/api/backgroundAudio/BackgroundAudioConfiguration.js.map +1 -1
- package/lib/commonjs/api/backgroundAudio/barrel.js.map +1 -1
- package/lib/commonjs/api/barrel.js.map +1 -1
- package/lib/commonjs/api/broadcast/EventBroadcastAPI.js.map +1 -1
- package/lib/commonjs/api/broadcast/barrel.js.map +1 -1
- package/lib/commonjs/api/cache/CachingPreferredTrackSelection.js.map +1 -1
- package/lib/commonjs/api/cache/CachingTask.js.map +1 -1
- package/lib/commonjs/api/cache/CachingTaskLicense.js.map +1 -1
- package/lib/commonjs/api/cache/CachingTaskList.js.map +1 -1
- package/lib/commonjs/api/cache/CachingTaskParameters.js.map +1 -1
- package/lib/commonjs/api/cache/MediaCacheAPI.js.map +1 -1
- package/lib/commonjs/api/cache/barrel.js.map +1 -1
- package/lib/commonjs/api/cache/events/CacheEvent.js.map +1 -1
- package/lib/commonjs/api/cache/events/CachingTaskEvent.js.map +1 -1
- package/lib/commonjs/api/cache/events/barrel.js.map +1 -1
- package/lib/commonjs/api/cache/hooks/barrel.js.map +1 -1
- package/lib/commonjs/api/cache/hooks/useCachingTaskList.js +1 -2
- package/lib/commonjs/api/cache/hooks/useCachingTaskList.js.map +1 -1
- package/lib/commonjs/api/cache/hooks/useCachingTaskProgress.js +1 -2
- package/lib/commonjs/api/cache/hooks/useCachingTaskProgress.js.map +1 -1
- package/lib/commonjs/api/cache/hooks/useCachingTaskStatus.js +1 -2
- package/lib/commonjs/api/cache/hooks/useCachingTaskStatus.js.map +1 -1
- package/lib/commonjs/api/cast/Airplay.js.map +1 -1
- package/lib/commonjs/api/cast/CastAPI.js.map +1 -1
- package/lib/commonjs/api/cast/CastConfiguration.js.map +1 -1
- package/lib/commonjs/api/cast/CastState.js.map +1 -1
- package/lib/commonjs/api/cast/Chromecast.js.map +1 -1
- package/lib/commonjs/api/cast/barrel.js.map +1 -1
- package/lib/commonjs/api/config/PlayerConfiguration.js.map +1 -1
- package/lib/commonjs/api/config/barrel.js.map +1 -1
- package/lib/commonjs/api/drm/ContentProtectionAPI.js.map +1 -1
- package/lib/commonjs/api/drm/ContentProtectionIntegration.js.map +1 -1
- package/lib/commonjs/api/drm/ContentProtectionIntegrationFactory.js.map +1 -1
- package/lib/commonjs/api/drm/ContentProtectionRequest.js.map +1 -1
- package/lib/commonjs/api/drm/ContentProtectionResponse.js.map +1 -1
- package/lib/commonjs/api/drm/barrel.js.map +1 -1
- package/lib/commonjs/api/error/ChromecastError.js.map +1 -1
- package/lib/commonjs/api/error/PlayerError.js.map +1 -1
- package/lib/commonjs/api/error/barrel.js.map +1 -1
- package/lib/commonjs/api/event/AdEvent.js.map +1 -1
- package/lib/commonjs/api/event/CastEvent.js.map +1 -1
- package/lib/commonjs/api/event/Event.js.map +1 -1
- package/lib/commonjs/api/event/EventDispatcher.js.map +1 -1
- package/lib/commonjs/api/event/EventListener.js.map +1 -1
- package/lib/commonjs/api/event/PlayerEvent.js.map +1 -1
- package/lib/commonjs/api/event/TrackEvent.js.map +1 -1
- package/lib/commonjs/api/event/barrel.js.map +1 -1
- package/lib/commonjs/api/media/MediaControlConfiguration.js.map +1 -1
- package/lib/commonjs/api/media/barrel.js.map +1 -1
- package/lib/commonjs/api/pip/PiPConfiguration.js.map +1 -1
- package/lib/commonjs/api/pip/barrel.js.map +1 -1
- package/lib/commonjs/api/player/PlayerEventMap.js.map +1 -1
- package/lib/commonjs/api/player/PlayerVersion.js.map +1 -1
- package/lib/commonjs/api/player/THEOplayer.js.map +1 -1
- package/lib/commonjs/api/player/barrel.js.map +1 -1
- package/lib/commonjs/api/presentation/PresentationMode.js.map +1 -1
- package/lib/commonjs/api/presentation/barrel.js.map +1 -1
- package/lib/commonjs/api/source/SourceDescription.js.map +1 -1
- package/lib/commonjs/api/source/ads/Ads.js.map +1 -1
- package/lib/commonjs/api/source/ads/FreeWheelAdDescription.js.map +1 -1
- package/lib/commonjs/api/source/ads/IMAAdDescription.js.map +1 -1
- package/lib/commonjs/api/source/ads/SpotXAdDescription.js.map +1 -1
- package/lib/commonjs/api/source/ads/THEOplayerAdDescription.js.map +1 -1
- package/lib/commonjs/api/source/ads/barrel.js.map +1 -1
- package/lib/commonjs/api/source/ads/ssai/GoogleDAIConfiguration.js.map +1 -1
- package/lib/commonjs/api/source/ads/ssai/ImagineServerSideAdInsertionConfiguration.js.map +1 -1
- package/lib/commonjs/api/source/ads/ssai/ServerSideAdInsertionConfiguration.js.map +1 -1
- package/lib/commonjs/api/source/ads/ssai/YospaceServerSideAdInsertionConfiguration.js.map +1 -1
- package/lib/commonjs/api/source/ads/ssai/barrel.js.map +1 -1
- package/lib/commonjs/api/source/analytics/AnalyticsDescription.js.map +1 -1
- package/lib/commonjs/api/source/analytics/barrel.js.map +1 -1
- package/lib/commonjs/api/source/barrel.js.map +1 -1
- package/lib/commonjs/api/source/dash/DashPlaybackConfiguration.js.map +1 -1
- package/lib/commonjs/api/source/dash/barrel.js.map +1 -1
- package/lib/commonjs/api/source/drm/DRMConfiguration.js.map +1 -1
- package/lib/commonjs/api/source/drm/barrel.js.map +1 -1
- package/lib/commonjs/api/source/hls/HlsPlaybackConfiguration.js.map +1 -1
- package/lib/commonjs/api/source/hls/barrel.js.map +1 -1
- package/lib/commonjs/api/source/metadata/MetadataDescription.js.map +1 -1
- package/lib/commonjs/api/source/metadata/barrel.js.map +1 -1
- package/lib/commonjs/api/timeranges/TimeRange.js.map +1 -1
- package/lib/commonjs/api/timeranges/barrel.js.map +1 -1
- package/lib/commonjs/api/track/DateRangeCue.js.map +1 -1
- package/lib/commonjs/api/track/MediaTrack.js.map +1 -1
- package/lib/commonjs/api/track/Quality.js.map +1 -1
- package/lib/commonjs/api/track/TextTrack.js.map +1 -1
- package/lib/commonjs/api/track/TextTrackCue.js.map +1 -1
- package/lib/commonjs/api/track/TextTrackStyle.js.map +1 -1
- package/lib/commonjs/api/track/Track.js +1 -1
- package/lib/commonjs/api/track/Track.js.map +1 -1
- package/lib/commonjs/api/track/barrel.js.map +1 -1
- package/lib/commonjs/api/ui/UIConfiguration.js.map +1 -1
- package/lib/commonjs/api/ui/barrel.js.map +1 -1
- package/lib/commonjs/api/utils/RetryConfiguration.js.map +1 -1
- package/lib/commonjs/api/utils/TypeUtils.js.map +1 -1
- package/lib/commonjs/api/utils/barrel.js.map +1 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/internal/THEOplayerView.js +133 -140
- package/lib/commonjs/internal/THEOplayerView.js.map +1 -1
- package/lib/commonjs/internal/THEOplayerView.style.js.map +1 -1
- package/lib/commonjs/internal/THEOplayerView.web.js +6 -8
- package/lib/commonjs/internal/THEOplayerView.web.js.map +1 -1
- package/lib/commonjs/internal/adapter/NativePlayerState.js.map +1 -1
- package/lib/commonjs/internal/adapter/THEOplayerAdapter.js +139 -151
- package/lib/commonjs/internal/adapter/THEOplayerAdapter.js.map +1 -1
- package/lib/commonjs/internal/adapter/THEOplayerWebAdapter.js +34 -55
- package/lib/commonjs/internal/adapter/THEOplayerWebAdapter.js.map +1 -1
- package/lib/commonjs/internal/adapter/WebEventForwarder.js +178 -186
- package/lib/commonjs/internal/adapter/WebEventForwarder.js.map +1 -1
- package/lib/commonjs/internal/adapter/abr/AbrAdapter.js +0 -6
- package/lib/commonjs/internal/adapter/abr/AbrAdapter.js.map +1 -1
- package/lib/commonjs/internal/adapter/ads/THEOplayerNativeAdsAdapter.js +0 -4
- package/lib/commonjs/internal/adapter/ads/THEOplayerNativeAdsAdapter.js.map +1 -1
- package/lib/commonjs/internal/adapter/ads/THEOplayerNativeGoogleDAI.js.map +1 -1
- package/lib/commonjs/internal/adapter/ads/THEOplayerWebAdsAdapter.js +7 -19
- package/lib/commonjs/internal/adapter/ads/THEOplayerWebAdsAdapter.js.map +1 -1
- package/lib/commonjs/internal/adapter/ads/THEOplayerWebGoogleDAI.js.map +1 -1
- package/lib/commonjs/internal/adapter/broadcast/EventBroadcastAdapter.js.map +1 -1
- package/lib/commonjs/internal/adapter/broadcast/EventBroadcastAdapter.web.js +1 -1
- package/lib/commonjs/internal/adapter/broadcast/EventBroadcastAdapter.web.js.map +1 -1
- package/lib/commonjs/internal/adapter/broadcast/web/DefaultWebEventDispatcher.js +8 -14
- package/lib/commonjs/internal/adapter/broadcast/web/DefaultWebEventDispatcher.js.map +1 -1
- package/lib/commonjs/internal/adapter/cast/THEOplayerNativeAirplay.js +8 -12
- package/lib/commonjs/internal/adapter/cast/THEOplayerNativeAirplay.js.map +1 -1
- package/lib/commonjs/internal/adapter/cast/THEOplayerNativeCastAdapter.js +4 -12
- package/lib/commonjs/internal/adapter/cast/THEOplayerNativeCastAdapter.js.map +1 -1
- package/lib/commonjs/internal/adapter/cast/THEOplayerNativeChromecast.js +8 -13
- package/lib/commonjs/internal/adapter/cast/THEOplayerNativeChromecast.js.map +1 -1
- package/lib/commonjs/internal/adapter/cast/THEOplayerWebCastAdapter.js +3 -10
- package/lib/commonjs/internal/adapter/cast/THEOplayerWebCastAdapter.js.map +1 -1
- package/lib/commonjs/internal/adapter/event/BaseEvent.js +1 -2
- package/lib/commonjs/internal/adapter/event/BaseEvent.js.map +1 -1
- package/lib/commonjs/internal/adapter/event/DefaultEventDispatcher.js +8 -14
- package/lib/commonjs/internal/adapter/event/DefaultEventDispatcher.js.map +1 -1
- package/lib/commonjs/internal/adapter/event/PlayerEvents.js +0 -6
- package/lib/commonjs/internal/adapter/event/PlayerEvents.js.map +1 -1
- package/lib/commonjs/internal/adapter/event/native/NativeAdEvent.js.map +1 -1
- package/lib/commonjs/internal/adapter/event/native/NativeCastEvent.js.map +1 -1
- package/lib/commonjs/internal/adapter/event/native/NativePlayerEvent.js.map +1 -1
- package/lib/commonjs/internal/adapter/event/native/NativeTrackEvent.js.map +1 -1
- package/lib/commonjs/internal/adapter/track/TextTrackStyleAdapter.js +10 -13
- package/lib/commonjs/internal/adapter/track/TextTrackStyleAdapter.js.map +1 -1
- package/lib/commonjs/internal/adapter/web/FullscreenAPI.js.map +1 -1
- package/lib/commonjs/internal/adapter/web/TrackUtils.js.map +1 -1
- package/lib/commonjs/internal/adapter/web/WebMediaSession.js +68 -80
- package/lib/commonjs/internal/adapter/web/WebMediaSession.js.map +1 -1
- package/lib/commonjs/internal/adapter/web/WebPresentationModeManager.js +22 -31
- package/lib/commonjs/internal/adapter/web/WebPresentationModeManager.js.map +1 -1
- package/lib/commonjs/internal/cache/MediaCache.js +59 -62
- package/lib/commonjs/internal/cache/MediaCache.js.map +1 -1
- package/lib/commonjs/internal/cache/MediaCache.web.js +14 -17
- package/lib/commonjs/internal/cache/MediaCache.web.js.map +1 -1
- package/lib/commonjs/internal/cache/NativeCachingTaskAdapter.js +0 -14
- package/lib/commonjs/internal/cache/NativeCachingTaskAdapter.js.map +1 -1
- package/lib/commonjs/internal/cache/NativeCachingTaskParametersAdapter.js +2 -3
- package/lib/commonjs/internal/cache/NativeCachingTaskParametersAdapter.js.map +1 -1
- package/lib/commonjs/internal/cache/WebCachingTaskAdapter.js.map +1 -1
- package/lib/commonjs/internal/drm/ContentProtectionRegistry.js +132 -138
- package/lib/commonjs/internal/drm/ContentProtectionRegistry.js.map +1 -1
- package/lib/commonjs/internal/drm/ContentProtectionRegistry.web.js.map +1 -1
- package/lib/commonjs/internal/drm/NativeCertificateRequest.js.map +1 -1
- package/lib/commonjs/internal/drm/NativeCertificateResponse.js.map +1 -1
- package/lib/commonjs/internal/drm/NativeContentProtectionEvent.js.map +1 -1
- package/lib/commonjs/internal/drm/NativeLicenseRequest.js.map +1 -1
- package/lib/commonjs/internal/drm/NativeLicenseResponse.js.map +1 -1
- package/lib/commonjs/internal/utils/CommonUtils.js.map +1 -1
- package/lib/commonjs/internal/utils/Dimensions.js.map +1 -1
- package/lib/commonjs/internal/utils/TypeUtils.js.map +1 -1
- package/lib/commonjs/internal/utils/arrayUtil.js.map +1 -1
- package/lib/commonjs/web/platform/browser.d.js.map +1 -1
- package/lib/module/api/THEOplayerView.js.map +1 -1
- package/lib/module/api/abr/ABRConfiguration.js.map +1 -1
- package/lib/module/api/abr/barrel.js.map +1 -1
- package/lib/module/api/ads/Ad.js.map +1 -1
- package/lib/module/api/ads/AdBreak.js.map +1 -1
- package/lib/module/api/ads/AdsAPI.js.map +1 -1
- package/lib/module/api/ads/AdsConfiguration.js.map +1 -1
- package/lib/module/api/ads/CompanionAd.js.map +1 -1
- package/lib/module/api/ads/GoogleDai.js.map +1 -1
- package/lib/module/api/ads/GoogleImaAd.js.map +1 -1
- package/lib/module/api/ads/GoogleImaConfiguration.js.map +1 -1
- package/lib/module/api/ads/barrel.js.map +1 -1
- package/lib/module/api/backgroundAudio/BackgroundAudioConfiguration.js.map +1 -1
- package/lib/module/api/backgroundAudio/barrel.js.map +1 -1
- package/lib/module/api/barrel.js.map +1 -1
- package/lib/module/api/broadcast/EventBroadcastAPI.js.map +1 -1
- package/lib/module/api/broadcast/barrel.js.map +1 -1
- package/lib/module/api/cache/CachingPreferredTrackSelection.js.map +1 -1
- package/lib/module/api/cache/CachingTask.js.map +1 -1
- package/lib/module/api/cache/CachingTaskLicense.js.map +1 -1
- package/lib/module/api/cache/CachingTaskList.js.map +1 -1
- package/lib/module/api/cache/CachingTaskParameters.js.map +1 -1
- package/lib/module/api/cache/MediaCacheAPI.js.map +1 -1
- package/lib/module/api/cache/barrel.js.map +1 -1
- package/lib/module/api/cache/events/CacheEvent.js.map +1 -1
- package/lib/module/api/cache/events/CachingTaskEvent.js.map +1 -1
- package/lib/module/api/cache/events/barrel.js.map +1 -1
- package/lib/module/api/cache/hooks/barrel.js.map +1 -1
- package/lib/module/api/cache/hooks/useCachingTaskList.js +1 -2
- package/lib/module/api/cache/hooks/useCachingTaskList.js.map +1 -1
- package/lib/module/api/cache/hooks/useCachingTaskProgress.js +1 -2
- package/lib/module/api/cache/hooks/useCachingTaskProgress.js.map +1 -1
- package/lib/module/api/cache/hooks/useCachingTaskStatus.js +1 -2
- package/lib/module/api/cache/hooks/useCachingTaskStatus.js.map +1 -1
- package/lib/module/api/cast/Airplay.js.map +1 -1
- package/lib/module/api/cast/CastAPI.js.map +1 -1
- package/lib/module/api/cast/CastConfiguration.js.map +1 -1
- package/lib/module/api/cast/CastState.js.map +1 -1
- package/lib/module/api/cast/Chromecast.js.map +1 -1
- package/lib/module/api/cast/barrel.js.map +1 -1
- package/lib/module/api/config/PlayerConfiguration.js.map +1 -1
- package/lib/module/api/config/barrel.js.map +1 -1
- package/lib/module/api/drm/ContentProtectionAPI.js.map +1 -1
- package/lib/module/api/drm/ContentProtectionIntegration.js.map +1 -1
- package/lib/module/api/drm/ContentProtectionIntegrationFactory.js.map +1 -1
- package/lib/module/api/drm/ContentProtectionRequest.js.map +1 -1
- package/lib/module/api/drm/ContentProtectionResponse.js.map +1 -1
- package/lib/module/api/drm/barrel.js.map +1 -1
- package/lib/module/api/error/ChromecastError.js.map +1 -1
- package/lib/module/api/error/PlayerError.js.map +1 -1
- package/lib/module/api/error/barrel.js.map +1 -1
- package/lib/module/api/event/AdEvent.js.map +1 -1
- package/lib/module/api/event/CastEvent.js.map +1 -1
- package/lib/module/api/event/Event.js.map +1 -1
- package/lib/module/api/event/EventDispatcher.js.map +1 -1
- package/lib/module/api/event/EventListener.js.map +1 -1
- package/lib/module/api/event/PlayerEvent.js.map +1 -1
- package/lib/module/api/event/TrackEvent.js.map +1 -1
- package/lib/module/api/event/barrel.js.map +1 -1
- package/lib/module/api/media/MediaControlConfiguration.js.map +1 -1
- package/lib/module/api/media/barrel.js.map +1 -1
- package/lib/module/api/pip/PiPConfiguration.js.map +1 -1
- package/lib/module/api/pip/barrel.js.map +1 -1
- package/lib/module/api/player/PlayerEventMap.js.map +1 -1
- package/lib/module/api/player/PlayerVersion.js.map +1 -1
- package/lib/module/api/player/THEOplayer.js.map +1 -1
- package/lib/module/api/player/barrel.js.map +1 -1
- package/lib/module/api/presentation/PresentationMode.js.map +1 -1
- package/lib/module/api/presentation/barrel.js.map +1 -1
- package/lib/module/api/source/SourceDescription.js.map +1 -1
- package/lib/module/api/source/ads/Ads.js.map +1 -1
- package/lib/module/api/source/ads/FreeWheelAdDescription.js.map +1 -1
- package/lib/module/api/source/ads/IMAAdDescription.js.map +1 -1
- package/lib/module/api/source/ads/SpotXAdDescription.js.map +1 -1
- package/lib/module/api/source/ads/THEOplayerAdDescription.js.map +1 -1
- package/lib/module/api/source/ads/barrel.js.map +1 -1
- package/lib/module/api/source/ads/ssai/GoogleDAIConfiguration.js.map +1 -1
- package/lib/module/api/source/ads/ssai/ImagineServerSideAdInsertionConfiguration.js.map +1 -1
- package/lib/module/api/source/ads/ssai/ServerSideAdInsertionConfiguration.js.map +1 -1
- package/lib/module/api/source/ads/ssai/YospaceServerSideAdInsertionConfiguration.js.map +1 -1
- package/lib/module/api/source/ads/ssai/barrel.js.map +1 -1
- package/lib/module/api/source/analytics/AnalyticsDescription.js.map +1 -1
- package/lib/module/api/source/analytics/barrel.js.map +1 -1
- package/lib/module/api/source/barrel.js.map +1 -1
- package/lib/module/api/source/dash/DashPlaybackConfiguration.js.map +1 -1
- package/lib/module/api/source/dash/barrel.js.map +1 -1
- package/lib/module/api/source/drm/DRMConfiguration.js.map +1 -1
- package/lib/module/api/source/drm/barrel.js.map +1 -1
- package/lib/module/api/source/hls/HlsPlaybackConfiguration.js.map +1 -1
- package/lib/module/api/source/hls/barrel.js.map +1 -1
- package/lib/module/api/source/metadata/MetadataDescription.js.map +1 -1
- package/lib/module/api/source/metadata/barrel.js.map +1 -1
- package/lib/module/api/timeranges/TimeRange.js.map +1 -1
- package/lib/module/api/timeranges/barrel.js.map +1 -1
- package/lib/module/api/track/DateRangeCue.js.map +1 -1
- package/lib/module/api/track/MediaTrack.js.map +1 -1
- package/lib/module/api/track/Quality.js.map +1 -1
- package/lib/module/api/track/TextTrack.js.map +1 -1
- package/lib/module/api/track/TextTrackCue.js.map +1 -1
- package/lib/module/api/track/TextTrackStyle.js.map +1 -1
- package/lib/module/api/track/Track.js +1 -1
- package/lib/module/api/track/Track.js.map +1 -1
- package/lib/module/api/track/barrel.js.map +1 -1
- package/lib/module/api/ui/UIConfiguration.js.map +1 -1
- package/lib/module/api/ui/barrel.js.map +1 -1
- package/lib/module/api/utils/RetryConfiguration.js.map +1 -1
- package/lib/module/api/utils/TypeUtils.js.map +1 -1
- package/lib/module/api/utils/barrel.js.map +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/internal/THEOplayerView.js +133 -140
- package/lib/module/internal/THEOplayerView.js.map +1 -1
- package/lib/module/internal/THEOplayerView.style.js.map +1 -1
- package/lib/module/internal/THEOplayerView.web.js +6 -8
- package/lib/module/internal/THEOplayerView.web.js.map +1 -1
- package/lib/module/internal/adapter/NativePlayerState.js.map +1 -1
- package/lib/module/internal/adapter/THEOplayerAdapter.js +139 -151
- package/lib/module/internal/adapter/THEOplayerAdapter.js.map +1 -1
- package/lib/module/internal/adapter/THEOplayerWebAdapter.js +34 -55
- package/lib/module/internal/adapter/THEOplayerWebAdapter.js.map +1 -1
- package/lib/module/internal/adapter/WebEventForwarder.js +178 -186
- package/lib/module/internal/adapter/WebEventForwarder.js.map +1 -1
- package/lib/module/internal/adapter/abr/AbrAdapter.js +0 -6
- package/lib/module/internal/adapter/abr/AbrAdapter.js.map +1 -1
- package/lib/module/internal/adapter/ads/THEOplayerNativeAdsAdapter.js +0 -4
- package/lib/module/internal/adapter/ads/THEOplayerNativeAdsAdapter.js.map +1 -1
- package/lib/module/internal/adapter/ads/THEOplayerNativeGoogleDAI.js.map +1 -1
- package/lib/module/internal/adapter/ads/THEOplayerWebAdsAdapter.js +7 -19
- package/lib/module/internal/adapter/ads/THEOplayerWebAdsAdapter.js.map +1 -1
- package/lib/module/internal/adapter/ads/THEOplayerWebGoogleDAI.js.map +1 -1
- package/lib/module/internal/adapter/broadcast/EventBroadcastAdapter.js.map +1 -1
- package/lib/module/internal/adapter/broadcast/EventBroadcastAdapter.web.js +1 -1
- package/lib/module/internal/adapter/broadcast/EventBroadcastAdapter.web.js.map +1 -1
- package/lib/module/internal/adapter/broadcast/web/DefaultWebEventDispatcher.js +8 -14
- package/lib/module/internal/adapter/broadcast/web/DefaultWebEventDispatcher.js.map +1 -1
- package/lib/module/internal/adapter/cast/THEOplayerNativeAirplay.js +8 -12
- package/lib/module/internal/adapter/cast/THEOplayerNativeAirplay.js.map +1 -1
- package/lib/module/internal/adapter/cast/THEOplayerNativeCastAdapter.js +4 -12
- package/lib/module/internal/adapter/cast/THEOplayerNativeCastAdapter.js.map +1 -1
- package/lib/module/internal/adapter/cast/THEOplayerNativeChromecast.js +8 -13
- package/lib/module/internal/adapter/cast/THEOplayerNativeChromecast.js.map +1 -1
- package/lib/module/internal/adapter/cast/THEOplayerWebCastAdapter.js +3 -10
- package/lib/module/internal/adapter/cast/THEOplayerWebCastAdapter.js.map +1 -1
- package/lib/module/internal/adapter/event/BaseEvent.js +1 -2
- package/lib/module/internal/adapter/event/BaseEvent.js.map +1 -1
- package/lib/module/internal/adapter/event/DefaultEventDispatcher.js +8 -14
- package/lib/module/internal/adapter/event/DefaultEventDispatcher.js.map +1 -1
- package/lib/module/internal/adapter/event/PlayerEvents.js +0 -6
- package/lib/module/internal/adapter/event/PlayerEvents.js.map +1 -1
- package/lib/module/internal/adapter/event/native/NativeAdEvent.js.map +1 -1
- package/lib/module/internal/adapter/event/native/NativeCastEvent.js.map +1 -1
- package/lib/module/internal/adapter/event/native/NativePlayerEvent.js.map +1 -1
- package/lib/module/internal/adapter/event/native/NativeTrackEvent.js.map +1 -1
- package/lib/module/internal/adapter/track/TextTrackStyleAdapter.js +10 -13
- package/lib/module/internal/adapter/track/TextTrackStyleAdapter.js.map +1 -1
- package/lib/module/internal/adapter/web/FullscreenAPI.js.map +1 -1
- package/lib/module/internal/adapter/web/TrackUtils.js.map +1 -1
- package/lib/module/internal/adapter/web/WebMediaSession.js +68 -80
- package/lib/module/internal/adapter/web/WebMediaSession.js.map +1 -1
- package/lib/module/internal/adapter/web/WebPresentationModeManager.js +22 -31
- package/lib/module/internal/adapter/web/WebPresentationModeManager.js.map +1 -1
- package/lib/module/internal/cache/MediaCache.js +59 -62
- package/lib/module/internal/cache/MediaCache.js.map +1 -1
- package/lib/module/internal/cache/MediaCache.web.js +14 -17
- package/lib/module/internal/cache/MediaCache.web.js.map +1 -1
- package/lib/module/internal/cache/NativeCachingTaskAdapter.js +0 -14
- package/lib/module/internal/cache/NativeCachingTaskAdapter.js.map +1 -1
- package/lib/module/internal/cache/NativeCachingTaskParametersAdapter.js +2 -3
- package/lib/module/internal/cache/NativeCachingTaskParametersAdapter.js.map +1 -1
- package/lib/module/internal/cache/WebCachingTaskAdapter.js.map +1 -1
- package/lib/module/internal/drm/ContentProtectionRegistry.js +132 -138
- package/lib/module/internal/drm/ContentProtectionRegistry.js.map +1 -1
- package/lib/module/internal/drm/ContentProtectionRegistry.web.js.map +1 -1
- package/lib/module/internal/drm/NativeCertificateRequest.js.map +1 -1
- package/lib/module/internal/drm/NativeCertificateResponse.js.map +1 -1
- package/lib/module/internal/drm/NativeContentProtectionEvent.js.map +1 -1
- package/lib/module/internal/drm/NativeLicenseRequest.js.map +1 -1
- package/lib/module/internal/drm/NativeLicenseResponse.js.map +1 -1
- package/lib/module/internal/utils/CommonUtils.js.map +1 -1
- package/lib/module/internal/utils/Dimensions.js.map +1 -1
- package/lib/module/internal/utils/TypeUtils.js.map +1 -1
- package/lib/module/internal/utils/arrayUtil.js.map +1 -1
- package/lib/module/web/platform/browser.d.js.map +1 -1
- package/lib/typescript/__tests__/index.test.d.ts +1 -0
- package/lib/typescript/__tests__/index.test.d.ts.map +1 -0
- package/lib/typescript/api/THEOplayerView.d.ts +1 -0
- package/lib/typescript/api/THEOplayerView.d.ts.map +1 -0
- package/lib/typescript/api/abr/ABRConfiguration.d.ts +1 -0
- package/lib/typescript/api/abr/ABRConfiguration.d.ts.map +1 -0
- package/lib/typescript/api/abr/barrel.d.ts +1 -0
- package/lib/typescript/api/abr/barrel.d.ts.map +1 -0
- package/lib/typescript/api/ads/Ad.d.ts +1 -0
- package/lib/typescript/api/ads/Ad.d.ts.map +1 -0
- package/lib/typescript/api/ads/AdBreak.d.ts +1 -0
- package/lib/typescript/api/ads/AdBreak.d.ts.map +1 -0
- package/lib/typescript/api/ads/AdsAPI.d.ts +1 -0
- package/lib/typescript/api/ads/AdsAPI.d.ts.map +1 -0
- package/lib/typescript/api/ads/AdsConfiguration.d.ts +1 -0
- package/lib/typescript/api/ads/AdsConfiguration.d.ts.map +1 -0
- package/lib/typescript/api/ads/CompanionAd.d.ts +1 -0
- package/lib/typescript/api/ads/CompanionAd.d.ts.map +1 -0
- package/lib/typescript/api/ads/GoogleDai.d.ts +1 -0
- package/lib/typescript/api/ads/GoogleDai.d.ts.map +1 -0
- package/lib/typescript/api/ads/GoogleImaAd.d.ts +1 -0
- package/lib/typescript/api/ads/GoogleImaAd.d.ts.map +1 -0
- package/lib/typescript/api/ads/GoogleImaConfiguration.d.ts +1 -0
- package/lib/typescript/api/ads/GoogleImaConfiguration.d.ts.map +1 -0
- package/lib/typescript/api/ads/barrel.d.ts +1 -0
- package/lib/typescript/api/ads/barrel.d.ts.map +1 -0
- package/lib/typescript/api/backgroundAudio/BackgroundAudioConfiguration.d.ts +1 -0
- package/lib/typescript/api/backgroundAudio/BackgroundAudioConfiguration.d.ts.map +1 -0
- package/lib/typescript/api/backgroundAudio/barrel.d.ts +1 -0
- package/lib/typescript/api/backgroundAudio/barrel.d.ts.map +1 -0
- package/lib/typescript/api/barrel.d.ts +1 -0
- package/lib/typescript/api/barrel.d.ts.map +1 -0
- package/lib/typescript/api/broadcast/EventBroadcastAPI.d.ts +1 -0
- package/lib/typescript/api/broadcast/EventBroadcastAPI.d.ts.map +1 -0
- package/lib/typescript/api/broadcast/barrel.d.ts +1 -0
- package/lib/typescript/api/broadcast/barrel.d.ts.map +1 -0
- package/lib/typescript/api/cache/CachingPreferredTrackSelection.d.ts +1 -0
- package/lib/typescript/api/cache/CachingPreferredTrackSelection.d.ts.map +1 -0
- package/lib/typescript/api/cache/CachingTask.d.ts +1 -0
- package/lib/typescript/api/cache/CachingTask.d.ts.map +1 -0
- package/lib/typescript/api/cache/CachingTaskLicense.d.ts +1 -0
- package/lib/typescript/api/cache/CachingTaskLicense.d.ts.map +1 -0
- package/lib/typescript/api/cache/CachingTaskList.d.ts +1 -0
- package/lib/typescript/api/cache/CachingTaskList.d.ts.map +1 -0
- package/lib/typescript/api/cache/CachingTaskParameters.d.ts +1 -0
- package/lib/typescript/api/cache/CachingTaskParameters.d.ts.map +1 -0
- package/lib/typescript/api/cache/MediaCacheAPI.d.ts +1 -0
- package/lib/typescript/api/cache/MediaCacheAPI.d.ts.map +1 -0
- package/lib/typescript/api/cache/barrel.d.ts +1 -0
- package/lib/typescript/api/cache/barrel.d.ts.map +1 -0
- package/lib/typescript/api/cache/events/CacheEvent.d.ts +1 -0
- package/lib/typescript/api/cache/events/CacheEvent.d.ts.map +1 -0
- package/lib/typescript/api/cache/events/CachingTaskEvent.d.ts +1 -0
- package/lib/typescript/api/cache/events/CachingTaskEvent.d.ts.map +1 -0
- package/lib/typescript/api/cache/events/barrel.d.ts +1 -0
- package/lib/typescript/api/cache/events/barrel.d.ts.map +1 -0
- package/lib/typescript/api/cache/hooks/barrel.d.ts +1 -0
- package/lib/typescript/api/cache/hooks/barrel.d.ts.map +1 -0
- package/lib/typescript/api/cache/hooks/useCachingTaskList.d.ts +1 -0
- package/lib/typescript/api/cache/hooks/useCachingTaskList.d.ts.map +1 -0
- package/lib/typescript/api/cache/hooks/useCachingTaskProgress.d.ts +1 -0
- package/lib/typescript/api/cache/hooks/useCachingTaskProgress.d.ts.map +1 -0
- package/lib/typescript/api/cache/hooks/useCachingTaskStatus.d.ts +1 -0
- package/lib/typescript/api/cache/hooks/useCachingTaskStatus.d.ts.map +1 -0
- package/lib/typescript/api/cast/Airplay.d.ts +1 -0
- package/lib/typescript/api/cast/Airplay.d.ts.map +1 -0
- package/lib/typescript/api/cast/CastAPI.d.ts +1 -0
- package/lib/typescript/api/cast/CastAPI.d.ts.map +1 -0
- package/lib/typescript/api/cast/CastConfiguration.d.ts +1 -0
- package/lib/typescript/api/cast/CastConfiguration.d.ts.map +1 -0
- package/lib/typescript/api/cast/CastState.d.ts +1 -0
- package/lib/typescript/api/cast/CastState.d.ts.map +1 -0
- package/lib/typescript/api/cast/Chromecast.d.ts +1 -0
- package/lib/typescript/api/cast/Chromecast.d.ts.map +1 -0
- package/lib/typescript/api/cast/barrel.d.ts +1 -0
- package/lib/typescript/api/cast/barrel.d.ts.map +1 -0
- package/lib/typescript/api/config/PlayerConfiguration.d.ts +1 -0
- package/lib/typescript/api/config/PlayerConfiguration.d.ts.map +1 -0
- package/lib/typescript/api/config/barrel.d.ts +1 -0
- package/lib/typescript/api/config/barrel.d.ts.map +1 -0
- package/lib/typescript/api/drm/ContentProtectionAPI.d.ts +1 -0
- package/lib/typescript/api/drm/ContentProtectionAPI.d.ts.map +1 -0
- package/lib/typescript/api/drm/ContentProtectionIntegration.d.ts +1 -0
- package/lib/typescript/api/drm/ContentProtectionIntegration.d.ts.map +1 -0
- package/lib/typescript/api/drm/ContentProtectionIntegrationFactory.d.ts +1 -0
- package/lib/typescript/api/drm/ContentProtectionIntegrationFactory.d.ts.map +1 -0
- package/lib/typescript/api/drm/ContentProtectionRequest.d.ts +1 -0
- package/lib/typescript/api/drm/ContentProtectionRequest.d.ts.map +1 -0
- package/lib/typescript/api/drm/ContentProtectionResponse.d.ts +1 -0
- package/lib/typescript/api/drm/ContentProtectionResponse.d.ts.map +1 -0
- package/lib/typescript/api/drm/barrel.d.ts +1 -0
- package/lib/typescript/api/drm/barrel.d.ts.map +1 -0
- package/lib/typescript/api/error/ChromecastError.d.ts +1 -0
- package/lib/typescript/api/error/ChromecastError.d.ts.map +1 -0
- package/lib/typescript/api/error/PlayerError.d.ts +1 -0
- package/lib/typescript/api/error/PlayerError.d.ts.map +1 -0
- package/lib/typescript/api/error/barrel.d.ts +1 -0
- package/lib/typescript/api/error/barrel.d.ts.map +1 -0
- package/lib/typescript/api/event/AdEvent.d.ts +1 -0
- package/lib/typescript/api/event/AdEvent.d.ts.map +1 -0
- package/lib/typescript/api/event/CastEvent.d.ts +1 -0
- package/lib/typescript/api/event/CastEvent.d.ts.map +1 -0
- package/lib/typescript/api/event/Event.d.ts +1 -0
- package/lib/typescript/api/event/Event.d.ts.map +1 -0
- package/lib/typescript/api/event/EventDispatcher.d.ts +1 -0
- package/lib/typescript/api/event/EventDispatcher.d.ts.map +1 -0
- package/lib/typescript/api/event/EventListener.d.ts +1 -0
- package/lib/typescript/api/event/EventListener.d.ts.map +1 -0
- package/lib/typescript/api/event/PlayerEvent.d.ts +1 -0
- package/lib/typescript/api/event/PlayerEvent.d.ts.map +1 -0
- package/lib/typescript/api/event/TrackEvent.d.ts +1 -0
- package/lib/typescript/api/event/TrackEvent.d.ts.map +1 -0
- package/lib/typescript/api/event/barrel.d.ts +1 -0
- package/lib/typescript/api/event/barrel.d.ts.map +1 -0
- package/lib/typescript/api/media/MediaControlConfiguration.d.ts +1 -0
- package/lib/typescript/api/media/MediaControlConfiguration.d.ts.map +1 -0
- package/lib/typescript/api/media/barrel.d.ts +1 -0
- package/lib/typescript/api/media/barrel.d.ts.map +1 -0
- package/lib/typescript/api/pip/PiPConfiguration.d.ts +1 -0
- package/lib/typescript/api/pip/PiPConfiguration.d.ts.map +1 -0
- package/lib/typescript/api/pip/barrel.d.ts +1 -0
- package/lib/typescript/api/pip/barrel.d.ts.map +1 -0
- package/lib/typescript/api/player/PlayerEventMap.d.ts +1 -0
- package/lib/typescript/api/player/PlayerEventMap.d.ts.map +1 -0
- package/lib/typescript/api/player/PlayerVersion.d.ts +1 -0
- package/lib/typescript/api/player/PlayerVersion.d.ts.map +1 -0
- package/lib/typescript/api/player/THEOplayer.d.ts +1 -0
- package/lib/typescript/api/player/THEOplayer.d.ts.map +1 -0
- package/lib/typescript/api/player/barrel.d.ts +1 -0
- package/lib/typescript/api/player/barrel.d.ts.map +1 -0
- package/lib/typescript/api/presentation/PresentationMode.d.ts +1 -0
- package/lib/typescript/api/presentation/PresentationMode.d.ts.map +1 -0
- package/lib/typescript/api/presentation/barrel.d.ts +1 -0
- package/lib/typescript/api/presentation/barrel.d.ts.map +1 -0
- package/lib/typescript/api/source/SourceDescription.d.ts +1 -0
- package/lib/typescript/api/source/SourceDescription.d.ts.map +1 -0
- package/lib/typescript/api/source/ads/Ads.d.ts +1 -0
- package/lib/typescript/api/source/ads/Ads.d.ts.map +1 -0
- package/lib/typescript/api/source/ads/FreeWheelAdDescription.d.ts +1 -0
- package/lib/typescript/api/source/ads/FreeWheelAdDescription.d.ts.map +1 -0
- package/lib/typescript/api/source/ads/IMAAdDescription.d.ts +1 -0
- package/lib/typescript/api/source/ads/IMAAdDescription.d.ts.map +1 -0
- package/lib/typescript/api/source/ads/SpotXAdDescription.d.ts +1 -0
- package/lib/typescript/api/source/ads/SpotXAdDescription.d.ts.map +1 -0
- package/lib/typescript/api/source/ads/THEOplayerAdDescription.d.ts +1 -0
- package/lib/typescript/api/source/ads/THEOplayerAdDescription.d.ts.map +1 -0
- package/lib/typescript/api/source/ads/barrel.d.ts +1 -0
- package/lib/typescript/api/source/ads/barrel.d.ts.map +1 -0
- package/lib/typescript/api/source/ads/ssai/GoogleDAIConfiguration.d.ts +1 -0
- package/lib/typescript/api/source/ads/ssai/GoogleDAIConfiguration.d.ts.map +1 -0
- package/lib/typescript/api/source/ads/ssai/ImagineServerSideAdInsertionConfiguration.d.ts +1 -0
- package/lib/typescript/api/source/ads/ssai/ImagineServerSideAdInsertionConfiguration.d.ts.map +1 -0
- package/lib/typescript/api/source/ads/ssai/ServerSideAdInsertionConfiguration.d.ts +1 -0
- package/lib/typescript/api/source/ads/ssai/ServerSideAdInsertionConfiguration.d.ts.map +1 -0
- package/lib/typescript/api/source/ads/ssai/YospaceServerSideAdInsertionConfiguration.d.ts +1 -0
- package/lib/typescript/api/source/ads/ssai/YospaceServerSideAdInsertionConfiguration.d.ts.map +1 -0
- package/lib/typescript/api/source/ads/ssai/barrel.d.ts +1 -0
- package/lib/typescript/api/source/ads/ssai/barrel.d.ts.map +1 -0
- package/lib/typescript/api/source/analytics/AnalyticsDescription.d.ts +1 -0
- package/lib/typescript/api/source/analytics/AnalyticsDescription.d.ts.map +1 -0
- package/lib/typescript/api/source/analytics/barrel.d.ts +1 -0
- package/lib/typescript/api/source/analytics/barrel.d.ts.map +1 -0
- package/lib/typescript/api/source/barrel.d.ts +1 -0
- package/lib/typescript/api/source/barrel.d.ts.map +1 -0
- package/lib/typescript/api/source/dash/DashPlaybackConfiguration.d.ts +1 -0
- package/lib/typescript/api/source/dash/DashPlaybackConfiguration.d.ts.map +1 -0
- package/lib/typescript/api/source/dash/barrel.d.ts +1 -0
- package/lib/typescript/api/source/dash/barrel.d.ts.map +1 -0
- package/lib/typescript/api/source/drm/DRMConfiguration.d.ts +1 -0
- package/lib/typescript/api/source/drm/DRMConfiguration.d.ts.map +1 -0
- package/lib/typescript/api/source/drm/barrel.d.ts +1 -0
- package/lib/typescript/api/source/drm/barrel.d.ts.map +1 -0
- package/lib/typescript/api/source/hls/HlsPlaybackConfiguration.d.ts +1 -0
- package/lib/typescript/api/source/hls/HlsPlaybackConfiguration.d.ts.map +1 -0
- package/lib/typescript/api/source/hls/barrel.d.ts +1 -0
- package/lib/typescript/api/source/hls/barrel.d.ts.map +1 -0
- package/lib/typescript/api/source/metadata/MetadataDescription.d.ts +1 -0
- package/lib/typescript/api/source/metadata/MetadataDescription.d.ts.map +1 -0
- package/lib/typescript/api/source/metadata/barrel.d.ts +1 -0
- package/lib/typescript/api/source/metadata/barrel.d.ts.map +1 -0
- package/lib/typescript/api/timeranges/TimeRange.d.ts +1 -0
- package/lib/typescript/api/timeranges/TimeRange.d.ts.map +1 -0
- package/lib/typescript/api/timeranges/barrel.d.ts +1 -0
- package/lib/typescript/api/timeranges/barrel.d.ts.map +1 -0
- package/lib/typescript/api/track/DateRangeCue.d.ts +1 -0
- package/lib/typescript/api/track/DateRangeCue.d.ts.map +1 -0
- package/lib/typescript/api/track/MediaTrack.d.ts +1 -0
- package/lib/typescript/api/track/MediaTrack.d.ts.map +1 -0
- package/lib/typescript/api/track/Quality.d.ts +1 -0
- package/lib/typescript/api/track/Quality.d.ts.map +1 -0
- package/lib/typescript/api/track/TextTrack.d.ts +1 -0
- package/lib/typescript/api/track/TextTrack.d.ts.map +1 -0
- package/lib/typescript/api/track/TextTrackCue.d.ts +1 -0
- package/lib/typescript/api/track/TextTrackCue.d.ts.map +1 -0
- package/lib/typescript/api/track/TextTrackStyle.d.ts +1 -0
- package/lib/typescript/api/track/TextTrackStyle.d.ts.map +1 -0
- package/lib/typescript/api/track/Track.d.ts +1 -0
- package/lib/typescript/api/track/Track.d.ts.map +1 -0
- package/lib/typescript/api/track/barrel.d.ts +1 -0
- package/lib/typescript/api/track/barrel.d.ts.map +1 -0
- package/lib/typescript/api/ui/UIConfiguration.d.ts +1 -0
- package/lib/typescript/api/ui/UIConfiguration.d.ts.map +1 -0
- package/lib/typescript/api/ui/barrel.d.ts +1 -0
- package/lib/typescript/api/ui/barrel.d.ts.map +1 -0
- package/lib/typescript/api/utils/RetryConfiguration.d.ts +1 -0
- package/lib/typescript/api/utils/RetryConfiguration.d.ts.map +1 -0
- package/lib/typescript/api/utils/TypeUtils.d.ts +1 -0
- package/lib/typescript/api/utils/TypeUtils.d.ts.map +1 -0
- package/lib/typescript/api/utils/barrel.d.ts +1 -0
- package/lib/typescript/api/utils/barrel.d.ts.map +1 -0
- package/lib/typescript/index.d.ts +1 -0
- package/lib/typescript/index.d.ts.map +1 -0
- package/lib/typescript/internal/THEOplayerView.d.ts +1 -0
- package/lib/typescript/internal/THEOplayerView.d.ts.map +1 -0
- package/lib/typescript/internal/THEOplayerView.style.d.ts +1 -0
- package/lib/typescript/internal/THEOplayerView.style.d.ts.map +1 -0
- package/lib/typescript/internal/THEOplayerView.web.d.ts +1 -0
- package/lib/typescript/internal/THEOplayerView.web.d.ts.map +1 -0
- package/lib/typescript/internal/adapter/NativePlayerState.d.ts +1 -0
- package/lib/typescript/internal/adapter/NativePlayerState.d.ts.map +1 -0
- package/lib/typescript/internal/adapter/THEOplayerAdapter.d.ts +1 -0
- package/lib/typescript/internal/adapter/THEOplayerAdapter.d.ts.map +1 -0
- package/lib/typescript/internal/adapter/THEOplayerWebAdapter.d.ts +1 -0
- package/lib/typescript/internal/adapter/THEOplayerWebAdapter.d.ts.map +1 -0
- package/lib/typescript/internal/adapter/WebEventForwarder.d.ts +1 -0
- package/lib/typescript/internal/adapter/WebEventForwarder.d.ts.map +1 -0
- package/lib/typescript/internal/adapter/abr/AbrAdapter.d.ts +1 -0
- package/lib/typescript/internal/adapter/abr/AbrAdapter.d.ts.map +1 -0
- package/lib/typescript/internal/adapter/ads/THEOplayerNativeAdsAdapter.d.ts +1 -0
- package/lib/typescript/internal/adapter/ads/THEOplayerNativeAdsAdapter.d.ts.map +1 -0
- package/lib/typescript/internal/adapter/ads/THEOplayerNativeGoogleDAI.d.ts +1 -0
- package/lib/typescript/internal/adapter/ads/THEOplayerNativeGoogleDAI.d.ts.map +1 -0
- package/lib/typescript/internal/adapter/ads/THEOplayerWebAdsAdapter.d.ts +1 -0
- package/lib/typescript/internal/adapter/ads/THEOplayerWebAdsAdapter.d.ts.map +1 -0
- package/lib/typescript/internal/adapter/ads/THEOplayerWebGoogleDAI.d.ts +1 -0
- package/lib/typescript/internal/adapter/ads/THEOplayerWebGoogleDAI.d.ts.map +1 -0
- package/lib/typescript/internal/adapter/broadcast/EventBroadcastAdapter.d.ts +1 -0
- package/lib/typescript/internal/adapter/broadcast/EventBroadcastAdapter.d.ts.map +1 -0
- package/lib/typescript/internal/adapter/broadcast/EventBroadcastAdapter.web.d.ts +1 -0
- package/lib/typescript/internal/adapter/broadcast/EventBroadcastAdapter.web.d.ts.map +1 -0
- package/lib/typescript/internal/adapter/broadcast/web/DefaultWebEventDispatcher.d.ts +2 -1
- package/lib/typescript/internal/adapter/broadcast/web/DefaultWebEventDispatcher.d.ts.map +1 -0
- package/lib/typescript/internal/adapter/cast/THEOplayerNativeAirplay.d.ts +1 -0
- package/lib/typescript/internal/adapter/cast/THEOplayerNativeAirplay.d.ts.map +1 -0
- package/lib/typescript/internal/adapter/cast/THEOplayerNativeCastAdapter.d.ts +1 -0
- package/lib/typescript/internal/adapter/cast/THEOplayerNativeCastAdapter.d.ts.map +1 -0
- package/lib/typescript/internal/adapter/cast/THEOplayerNativeChromecast.d.ts +1 -0
- package/lib/typescript/internal/adapter/cast/THEOplayerNativeChromecast.d.ts.map +1 -0
- package/lib/typescript/internal/adapter/cast/THEOplayerWebCastAdapter.d.ts +1 -0
- package/lib/typescript/internal/adapter/cast/THEOplayerWebCastAdapter.d.ts.map +1 -0
- package/lib/typescript/internal/adapter/event/BaseEvent.d.ts +1 -0
- package/lib/typescript/internal/adapter/event/BaseEvent.d.ts.map +1 -0
- package/lib/typescript/internal/adapter/event/DefaultEventDispatcher.d.ts +2 -1
- package/lib/typescript/internal/adapter/event/DefaultEventDispatcher.d.ts.map +1 -0
- package/lib/typescript/internal/adapter/event/PlayerEvents.d.ts +1 -0
- package/lib/typescript/internal/adapter/event/PlayerEvents.d.ts.map +1 -0
- package/lib/typescript/internal/adapter/event/native/NativeAdEvent.d.ts +1 -0
- package/lib/typescript/internal/adapter/event/native/NativeAdEvent.d.ts.map +1 -0
- package/lib/typescript/internal/adapter/event/native/NativeCastEvent.d.ts +1 -0
- package/lib/typescript/internal/adapter/event/native/NativeCastEvent.d.ts.map +1 -0
- package/lib/typescript/internal/adapter/event/native/NativePlayerEvent.d.ts +1 -0
- package/lib/typescript/internal/adapter/event/native/NativePlayerEvent.d.ts.map +1 -0
- package/lib/typescript/internal/adapter/event/native/NativeTrackEvent.d.ts +1 -0
- package/lib/typescript/internal/adapter/event/native/NativeTrackEvent.d.ts.map +1 -0
- package/lib/typescript/internal/adapter/track/TextTrackStyleAdapter.d.ts +1 -0
- package/lib/typescript/internal/adapter/track/TextTrackStyleAdapter.d.ts.map +1 -0
- package/lib/typescript/internal/adapter/web/FullscreenAPI.d.ts +1 -0
- package/lib/typescript/internal/adapter/web/FullscreenAPI.d.ts.map +1 -0
- package/lib/typescript/internal/adapter/web/TrackUtils.d.ts +1 -0
- package/lib/typescript/internal/adapter/web/TrackUtils.d.ts.map +1 -0
- package/lib/typescript/internal/adapter/web/WebMediaSession.d.ts +1 -0
- package/lib/typescript/internal/adapter/web/WebMediaSession.d.ts.map +1 -0
- package/lib/typescript/internal/adapter/web/WebPresentationModeManager.d.ts +1 -0
- package/lib/typescript/internal/adapter/web/WebPresentationModeManager.d.ts.map +1 -0
- package/lib/typescript/internal/cache/MediaCache.d.ts +1 -0
- package/lib/typescript/internal/cache/MediaCache.d.ts.map +1 -0
- package/lib/typescript/internal/cache/MediaCache.web.d.ts +1 -0
- package/lib/typescript/internal/cache/MediaCache.web.d.ts.map +1 -0
- package/lib/typescript/internal/cache/NativeCachingTaskAdapter.d.ts +1 -0
- package/lib/typescript/internal/cache/NativeCachingTaskAdapter.d.ts.map +1 -0
- package/lib/typescript/internal/cache/NativeCachingTaskParametersAdapter.d.ts +1 -0
- package/lib/typescript/internal/cache/NativeCachingTaskParametersAdapter.d.ts.map +1 -0
- package/lib/typescript/internal/cache/WebCachingTaskAdapter.d.ts +1 -0
- package/lib/typescript/internal/cache/WebCachingTaskAdapter.d.ts.map +1 -0
- package/lib/typescript/internal/drm/ContentProtectionRegistry.d.ts +1 -0
- package/lib/typescript/internal/drm/ContentProtectionRegistry.d.ts.map +1 -0
- package/lib/typescript/internal/drm/ContentProtectionRegistry.web.d.ts +1 -0
- package/lib/typescript/internal/drm/ContentProtectionRegistry.web.d.ts.map +1 -0
- package/lib/typescript/internal/drm/NativeCertificateRequest.d.ts +1 -0
- package/lib/typescript/internal/drm/NativeCertificateRequest.d.ts.map +1 -0
- package/lib/typescript/internal/drm/NativeCertificateResponse.d.ts +1 -0
- package/lib/typescript/internal/drm/NativeCertificateResponse.d.ts.map +1 -0
- package/lib/typescript/internal/drm/NativeContentProtectionEvent.d.ts +1 -0
- package/lib/typescript/internal/drm/NativeContentProtectionEvent.d.ts.map +1 -0
- package/lib/typescript/internal/drm/NativeLicenseRequest.d.ts +1 -0
- package/lib/typescript/internal/drm/NativeLicenseRequest.d.ts.map +1 -0
- package/lib/typescript/internal/drm/NativeLicenseResponse.d.ts +1 -0
- package/lib/typescript/internal/drm/NativeLicenseResponse.d.ts.map +1 -0
- package/lib/typescript/internal/utils/CommonUtils.d.ts +1 -0
- package/lib/typescript/internal/utils/CommonUtils.d.ts.map +1 -0
- package/lib/typescript/internal/utils/Dimensions.d.ts +1 -0
- package/lib/typescript/internal/utils/Dimensions.d.ts.map +1 -0
- package/lib/typescript/internal/utils/TypeUtils.d.ts +1 -0
- package/lib/typescript/internal/utils/TypeUtils.d.ts.map +1 -0
- package/lib/typescript/internal/utils/arrayUtil.d.ts +1 -0
- package/lib/typescript/internal/utils/arrayUtil.d.ts.map +1 -0
- package/package.json +12 -38
- package/react-native-theoplayer.podspec +5 -5
- package/src/internal/THEOplayerView.tsx +1 -1
- package/src/internal/adapter/THEOplayerAdapter.ts +1 -1
- package/src/internal/adapter/web/WebMediaSession.ts +1 -1
- package/android/local/com/theoplayer/android-connector/mediasession/5.11.0-local/mediasession-5.11.0-local.aar +0 -0
- package/android/local/com/theoplayer/android-connector/mediasession/5.11.0-local/mediasession-5.11.0-local.pom +0 -15
- package/android/local/com/theoplayer/android-connector/mediasession/maven-metadata-local.xml +0 -13
|
@@ -10,143 +10,11 @@ var _NativeLicenseResponse = require("./NativeLicenseResponse");
|
|
|
10
10
|
var _NativeCertificateRequest = require("./NativeCertificateRequest");
|
|
11
11
|
var _NativeCertificateResponse = require("./NativeCertificateResponse");
|
|
12
12
|
var _TypeUtils = require("../utils/TypeUtils");
|
|
13
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
14
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
15
|
-
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
16
13
|
const NativeContentProtectionModule = _reactNative.NativeModules.THEORCTContentProtectionModule;
|
|
17
14
|
class NativeContentProtectionRegistry {
|
|
15
|
+
registeredFactories = [];
|
|
16
|
+
currentIntegration = undefined;
|
|
18
17
|
constructor() {
|
|
19
|
-
_defineProperty(this, "emitter", void 0);
|
|
20
|
-
_defineProperty(this, "registeredFactories", []);
|
|
21
|
-
_defineProperty(this, "currentIntegration", undefined);
|
|
22
|
-
_defineProperty(this, "onBuildIntegrationRequest", event => {
|
|
23
|
-
const {
|
|
24
|
-
requestId,
|
|
25
|
-
integrationId,
|
|
26
|
-
keySystemId,
|
|
27
|
-
drmConfig
|
|
28
|
-
} = event;
|
|
29
|
-
console.log('NativeContentProtectionModule', `onBuildIntegrationRequest ${integrationId} ${keySystemId}`);
|
|
30
|
-
const factory = this.getFactory(integrationId, keySystemId);
|
|
31
|
-
if (factory) {
|
|
32
|
-
this.currentIntegration = {
|
|
33
|
-
integrationId,
|
|
34
|
-
keySystemId,
|
|
35
|
-
integration: factory.build(drmConfig)
|
|
36
|
-
};
|
|
37
|
-
NativeContentProtectionModule.onBuildProcessed({
|
|
38
|
-
requestId,
|
|
39
|
-
resultString: 'success'
|
|
40
|
-
});
|
|
41
|
-
} else {
|
|
42
|
-
NativeContentProtectionModule.onBuildProcessed({
|
|
43
|
-
requestId,
|
|
44
|
-
resultString: 'failed'
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
_defineProperty(this, "onCertificateRequest", async request => {
|
|
49
|
-
const {
|
|
50
|
-
requestId,
|
|
51
|
-
integrationId,
|
|
52
|
-
keySystemId
|
|
53
|
-
} = request;
|
|
54
|
-
console.log('NativeContentProtectionModule', `onCertificateRequest ${integrationId} ${keySystemId}`);
|
|
55
|
-
const integration = this.getIntegration(integrationId, keySystemId);
|
|
56
|
-
if (integration !== null && integration !== void 0 && integration.onCertificateRequest) {
|
|
57
|
-
const result = await integration.onCertificateRequest((0, _NativeCertificateRequest.fromNativeCertificateRequest)(request));
|
|
58
|
-
// TODO: we also want to support ArrayBufferView results
|
|
59
|
-
if ((0, _TypeUtils.isBufferSource)(result)) {
|
|
60
|
-
const nativeResponse = (0, _NativeCertificateResponse.toNativeCertificateResponseResult)(requestId, integrationId, keySystemId, result);
|
|
61
|
-
NativeContentProtectionModule.onCertificateRequestProcessedAsCertificate(nativeResponse);
|
|
62
|
-
} else if (result) {
|
|
63
|
-
const modifiedNativeRequest = (0, _NativeCertificateRequest.toNativeCertificateRequest)(requestId, integrationId, keySystemId, result);
|
|
64
|
-
NativeContentProtectionModule.onCertificateRequestProcessedAsRequest(modifiedNativeRequest);
|
|
65
|
-
}
|
|
66
|
-
} else {
|
|
67
|
-
NativeContentProtectionModule.onCertificateRequestProcessedAsRequest(request);
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
_defineProperty(this, "onCertificateResponse", async response => {
|
|
71
|
-
const {
|
|
72
|
-
requestId,
|
|
73
|
-
integrationId,
|
|
74
|
-
keySystemId
|
|
75
|
-
} = response;
|
|
76
|
-
console.log('NativeContentProtectionModule', `onCertificateResponse ${integrationId} ${keySystemId}`);
|
|
77
|
-
const integration = this.getIntegration(integrationId, keySystemId);
|
|
78
|
-
if (integration !== null && integration !== void 0 && integration.onCertificateResponse) {
|
|
79
|
-
const responseResult = await integration.onCertificateResponse((0, _NativeCertificateResponse.fromNativeCertificateResponse)(response));
|
|
80
|
-
// TODO: we also want to support ArrayBufferView results
|
|
81
|
-
const modifiedNativeResponse = (0, _NativeCertificateResponse.toNativeCertificateResponseResult)(requestId, integrationId, keySystemId, responseResult);
|
|
82
|
-
NativeContentProtectionModule.onCertificateResponseProcessed(modifiedNativeResponse);
|
|
83
|
-
} else {
|
|
84
|
-
NativeContentProtectionModule.onCertificateResponseProcessed(response);
|
|
85
|
-
}
|
|
86
|
-
});
|
|
87
|
-
_defineProperty(this, "onLicenseRequest", async request => {
|
|
88
|
-
const {
|
|
89
|
-
requestId,
|
|
90
|
-
integrationId,
|
|
91
|
-
keySystemId
|
|
92
|
-
} = request;
|
|
93
|
-
console.log('NativeContentProtectionModule', `onLicenseRequest ${integrationId} ${keySystemId}`);
|
|
94
|
-
const integration = this.getIntegration(integrationId, keySystemId);
|
|
95
|
-
// Optionally let the custom integration modify the request.
|
|
96
|
-
if (integration !== null && integration !== void 0 && integration.onLicenseRequest) {
|
|
97
|
-
const result = await integration.onLicenseRequest((0, _NativeLicenseRequest.fromNativeLicenseRequest)(request));
|
|
98
|
-
// TODO: we also want to support ArrayBufferView results
|
|
99
|
-
if ((0, _TypeUtils.isBufferSource)(result)) {
|
|
100
|
-
const nativeResponse = (0, _NativeLicenseResponse.toNativeLicenseResponseResult)(requestId, integrationId, keySystemId, result);
|
|
101
|
-
NativeContentProtectionModule.onLicenseRequestProcessedAsLicense(nativeResponse);
|
|
102
|
-
} else if (result) {
|
|
103
|
-
const modifiedNativeRequest = (0, _NativeLicenseRequest.toNativeLicenseRequest)(requestId, integrationId, keySystemId, result);
|
|
104
|
-
NativeContentProtectionModule.onLicenseRequestProcessedAsRequest(modifiedNativeRequest);
|
|
105
|
-
}
|
|
106
|
-
} else {
|
|
107
|
-
NativeContentProtectionModule.onLicenseRequestProcessedAsRequest(request);
|
|
108
|
-
}
|
|
109
|
-
});
|
|
110
|
-
_defineProperty(this, "onLicenseResponse", async response => {
|
|
111
|
-
const {
|
|
112
|
-
requestId,
|
|
113
|
-
integrationId,
|
|
114
|
-
keySystemId
|
|
115
|
-
} = response;
|
|
116
|
-
console.log('NativeContentProtectionModule', `onLicenseResponse ${integrationId} ${keySystemId}`);
|
|
117
|
-
const integration = this.getIntegration(integrationId, keySystemId);
|
|
118
|
-
if (integration !== null && integration !== void 0 && integration.onLicenseResponse) {
|
|
119
|
-
const responseResult = await integration.onLicenseResponse((0, _NativeLicenseResponse.fromNativeLicenseResponse)(response));
|
|
120
|
-
// TODO: we also want to support ArrayBufferView results
|
|
121
|
-
const modifiedNativeResponse = (0, _NativeLicenseResponse.toNativeLicenseResponseResult)(requestId, integrationId, keySystemId, responseResult);
|
|
122
|
-
NativeContentProtectionModule.onLicenseResponseProcessed(modifiedNativeResponse);
|
|
123
|
-
} else {
|
|
124
|
-
NativeContentProtectionModule.onLicenseResponseProcessed(response);
|
|
125
|
-
}
|
|
126
|
-
});
|
|
127
|
-
_defineProperty(this, "onExtractFairplayContentId", async event => {
|
|
128
|
-
const {
|
|
129
|
-
integrationId,
|
|
130
|
-
keySystemId,
|
|
131
|
-
fairplaySkdUrl,
|
|
132
|
-
requestId
|
|
133
|
-
} = event;
|
|
134
|
-
console.log('NativeContentProtectionModule', `onExtractFairplayContentId ${integrationId} ${keySystemId}`);
|
|
135
|
-
const integration = this.getIntegration(integrationId, keySystemId);
|
|
136
|
-
if (integration !== null && integration !== void 0 && integration.extractFairplayContentId) {
|
|
137
|
-
const contentId = await integration.extractFairplayContentId(fairplaySkdUrl);
|
|
138
|
-
NativeContentProtectionModule.onExtractFairplayContentIdProcessed({
|
|
139
|
-
requestId,
|
|
140
|
-
contentId
|
|
141
|
-
});
|
|
142
|
-
} else {
|
|
143
|
-
const contentId = fairplaySkdUrl;
|
|
144
|
-
NativeContentProtectionModule.onExtractFairplayContentIdProcessed({
|
|
145
|
-
requestId,
|
|
146
|
-
contentId
|
|
147
|
-
});
|
|
148
|
-
}
|
|
149
|
-
});
|
|
150
18
|
this.emitter = new _reactNative.NativeEventEmitter(NativeContentProtectionModule);
|
|
151
19
|
this.emitter.addListener('onBuildIntegration', this.onBuildIntegrationRequest);
|
|
152
20
|
this.emitter.addListener('onCertificateRequest', this.onCertificateRequest);
|
|
@@ -164,13 +32,139 @@ class NativeContentProtectionRegistry {
|
|
|
164
32
|
NativeContentProtectionModule.registerContentProtectionIntegration(integrationId, keySystemId);
|
|
165
33
|
}
|
|
166
34
|
getFactory(integrationId, keySystemId) {
|
|
167
|
-
|
|
168
|
-
return (_this$registeredFacto = this.registeredFactories.find(init => init.integrationId === integrationId && init.keySystemId === keySystemId)) === null || _this$registeredFacto === void 0 ? void 0 : _this$registeredFacto.integrationFactory;
|
|
35
|
+
return this.registeredFactories.find(init => init.integrationId === integrationId && init.keySystemId === keySystemId)?.integrationFactory;
|
|
169
36
|
}
|
|
170
37
|
getIntegration(integrationId, keySystemId) {
|
|
171
|
-
|
|
172
|
-
return ((_this$currentIntegrat = this.currentIntegration) === null || _this$currentIntegrat === void 0 ? void 0 : _this$currentIntegrat.integrationId) === integrationId && ((_this$currentIntegrat2 = this.currentIntegration) === null || _this$currentIntegrat2 === void 0 ? void 0 : _this$currentIntegrat2.keySystemId) === keySystemId ? (_this$currentIntegrat3 = this.currentIntegration) === null || _this$currentIntegrat3 === void 0 ? void 0 : _this$currentIntegrat3.integration : undefined;
|
|
38
|
+
return this.currentIntegration?.integrationId === integrationId && this.currentIntegration?.keySystemId === keySystemId ? this.currentIntegration?.integration : undefined;
|
|
173
39
|
}
|
|
40
|
+
onBuildIntegrationRequest = event => {
|
|
41
|
+
const {
|
|
42
|
+
requestId,
|
|
43
|
+
integrationId,
|
|
44
|
+
keySystemId,
|
|
45
|
+
drmConfig
|
|
46
|
+
} = event;
|
|
47
|
+
console.log('NativeContentProtectionModule', `onBuildIntegrationRequest ${integrationId} ${keySystemId}`);
|
|
48
|
+
const factory = this.getFactory(integrationId, keySystemId);
|
|
49
|
+
if (factory) {
|
|
50
|
+
this.currentIntegration = {
|
|
51
|
+
integrationId,
|
|
52
|
+
keySystemId,
|
|
53
|
+
integration: factory.build(drmConfig)
|
|
54
|
+
};
|
|
55
|
+
NativeContentProtectionModule.onBuildProcessed({
|
|
56
|
+
requestId,
|
|
57
|
+
resultString: 'success'
|
|
58
|
+
});
|
|
59
|
+
} else {
|
|
60
|
+
NativeContentProtectionModule.onBuildProcessed({
|
|
61
|
+
requestId,
|
|
62
|
+
resultString: 'failed'
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
onCertificateRequest = async request => {
|
|
67
|
+
const {
|
|
68
|
+
requestId,
|
|
69
|
+
integrationId,
|
|
70
|
+
keySystemId
|
|
71
|
+
} = request;
|
|
72
|
+
console.log('NativeContentProtectionModule', `onCertificateRequest ${integrationId} ${keySystemId}`);
|
|
73
|
+
const integration = this.getIntegration(integrationId, keySystemId);
|
|
74
|
+
if (integration?.onCertificateRequest) {
|
|
75
|
+
const result = await integration.onCertificateRequest((0, _NativeCertificateRequest.fromNativeCertificateRequest)(request));
|
|
76
|
+
// TODO: we also want to support ArrayBufferView results
|
|
77
|
+
if ((0, _TypeUtils.isBufferSource)(result)) {
|
|
78
|
+
const nativeResponse = (0, _NativeCertificateResponse.toNativeCertificateResponseResult)(requestId, integrationId, keySystemId, result);
|
|
79
|
+
NativeContentProtectionModule.onCertificateRequestProcessedAsCertificate(nativeResponse);
|
|
80
|
+
} else if (result) {
|
|
81
|
+
const modifiedNativeRequest = (0, _NativeCertificateRequest.toNativeCertificateRequest)(requestId, integrationId, keySystemId, result);
|
|
82
|
+
NativeContentProtectionModule.onCertificateRequestProcessedAsRequest(modifiedNativeRequest);
|
|
83
|
+
}
|
|
84
|
+
} else {
|
|
85
|
+
NativeContentProtectionModule.onCertificateRequestProcessedAsRequest(request);
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
onCertificateResponse = async response => {
|
|
89
|
+
const {
|
|
90
|
+
requestId,
|
|
91
|
+
integrationId,
|
|
92
|
+
keySystemId
|
|
93
|
+
} = response;
|
|
94
|
+
console.log('NativeContentProtectionModule', `onCertificateResponse ${integrationId} ${keySystemId}`);
|
|
95
|
+
const integration = this.getIntegration(integrationId, keySystemId);
|
|
96
|
+
if (integration?.onCertificateResponse) {
|
|
97
|
+
const responseResult = await integration.onCertificateResponse((0, _NativeCertificateResponse.fromNativeCertificateResponse)(response));
|
|
98
|
+
// TODO: we also want to support ArrayBufferView results
|
|
99
|
+
const modifiedNativeResponse = (0, _NativeCertificateResponse.toNativeCertificateResponseResult)(requestId, integrationId, keySystemId, responseResult);
|
|
100
|
+
NativeContentProtectionModule.onCertificateResponseProcessed(modifiedNativeResponse);
|
|
101
|
+
} else {
|
|
102
|
+
NativeContentProtectionModule.onCertificateResponseProcessed(response);
|
|
103
|
+
}
|
|
104
|
+
};
|
|
105
|
+
onLicenseRequest = async request => {
|
|
106
|
+
const {
|
|
107
|
+
requestId,
|
|
108
|
+
integrationId,
|
|
109
|
+
keySystemId
|
|
110
|
+
} = request;
|
|
111
|
+
console.log('NativeContentProtectionModule', `onLicenseRequest ${integrationId} ${keySystemId}`);
|
|
112
|
+
const integration = this.getIntegration(integrationId, keySystemId);
|
|
113
|
+
// Optionally let the custom integration modify the request.
|
|
114
|
+
if (integration?.onLicenseRequest) {
|
|
115
|
+
const result = await integration.onLicenseRequest((0, _NativeLicenseRequest.fromNativeLicenseRequest)(request));
|
|
116
|
+
// TODO: we also want to support ArrayBufferView results
|
|
117
|
+
if ((0, _TypeUtils.isBufferSource)(result)) {
|
|
118
|
+
const nativeResponse = (0, _NativeLicenseResponse.toNativeLicenseResponseResult)(requestId, integrationId, keySystemId, result);
|
|
119
|
+
NativeContentProtectionModule.onLicenseRequestProcessedAsLicense(nativeResponse);
|
|
120
|
+
} else if (result) {
|
|
121
|
+
const modifiedNativeRequest = (0, _NativeLicenseRequest.toNativeLicenseRequest)(requestId, integrationId, keySystemId, result);
|
|
122
|
+
NativeContentProtectionModule.onLicenseRequestProcessedAsRequest(modifiedNativeRequest);
|
|
123
|
+
}
|
|
124
|
+
} else {
|
|
125
|
+
NativeContentProtectionModule.onLicenseRequestProcessedAsRequest(request);
|
|
126
|
+
}
|
|
127
|
+
};
|
|
128
|
+
onLicenseResponse = async response => {
|
|
129
|
+
const {
|
|
130
|
+
requestId,
|
|
131
|
+
integrationId,
|
|
132
|
+
keySystemId
|
|
133
|
+
} = response;
|
|
134
|
+
console.log('NativeContentProtectionModule', `onLicenseResponse ${integrationId} ${keySystemId}`);
|
|
135
|
+
const integration = this.getIntegration(integrationId, keySystemId);
|
|
136
|
+
if (integration?.onLicenseResponse) {
|
|
137
|
+
const responseResult = await integration.onLicenseResponse((0, _NativeLicenseResponse.fromNativeLicenseResponse)(response));
|
|
138
|
+
// TODO: we also want to support ArrayBufferView results
|
|
139
|
+
const modifiedNativeResponse = (0, _NativeLicenseResponse.toNativeLicenseResponseResult)(requestId, integrationId, keySystemId, responseResult);
|
|
140
|
+
NativeContentProtectionModule.onLicenseResponseProcessed(modifiedNativeResponse);
|
|
141
|
+
} else {
|
|
142
|
+
NativeContentProtectionModule.onLicenseResponseProcessed(response);
|
|
143
|
+
}
|
|
144
|
+
};
|
|
145
|
+
onExtractFairplayContentId = async event => {
|
|
146
|
+
const {
|
|
147
|
+
integrationId,
|
|
148
|
+
keySystemId,
|
|
149
|
+
fairplaySkdUrl,
|
|
150
|
+
requestId
|
|
151
|
+
} = event;
|
|
152
|
+
console.log('NativeContentProtectionModule', `onExtractFairplayContentId ${integrationId} ${keySystemId}`);
|
|
153
|
+
const integration = this.getIntegration(integrationId, keySystemId);
|
|
154
|
+
if (integration?.extractFairplayContentId) {
|
|
155
|
+
const contentId = await integration.extractFairplayContentId(fairplaySkdUrl);
|
|
156
|
+
NativeContentProtectionModule.onExtractFairplayContentIdProcessed({
|
|
157
|
+
requestId,
|
|
158
|
+
contentId
|
|
159
|
+
});
|
|
160
|
+
} else {
|
|
161
|
+
const contentId = fairplaySkdUrl;
|
|
162
|
+
NativeContentProtectionModule.onExtractFairplayContentIdProcessed({
|
|
163
|
+
requestId,
|
|
164
|
+
contentId
|
|
165
|
+
});
|
|
166
|
+
}
|
|
167
|
+
};
|
|
174
168
|
}
|
|
175
169
|
exports.NativeContentProtectionRegistry = NativeContentProtectionRegistry;
|
|
176
170
|
const ContentProtectionRegistry = exports.ContentProtectionRegistry = new NativeContentProtectionRegistry();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_NativeLicenseRequest","_NativeLicenseResponse","_NativeCertificateRequest","_NativeCertificateResponse","_TypeUtils","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","call","TypeError","Number","NativeContentProtectionModule","NativeModules","THEORCTContentProtectionModule","NativeContentProtectionRegistry","constructor","event","requestId","integrationId","keySystemId","drmConfig","console","log","factory","getFactory","currentIntegration","integration","build","onBuildProcessed","resultString","request","getIntegration","onCertificateRequest","result","fromNativeCertificateRequest","isBufferSource","nativeResponse","toNativeCertificateResponseResult","onCertificateRequestProcessedAsCertificate","modifiedNativeRequest","toNativeCertificateRequest","onCertificateRequestProcessedAsRequest","response","onCertificateResponse","responseResult","fromNativeCertificateResponse","modifiedNativeResponse","onCertificateResponseProcessed","onLicenseRequest","fromNativeLicenseRequest","toNativeLicenseResponseResult","onLicenseRequestProcessedAsLicense","toNativeLicenseRequest","onLicenseRequestProcessedAsRequest","onLicenseResponse","fromNativeLicenseResponse","onLicenseResponseProcessed","fairplaySkdUrl","extractFairplayContentId","contentId","onExtractFairplayContentIdProcessed","emitter","NativeEventEmitter","addListener","onBuildIntegrationRequest","onExtractFairplayContentId","registerContentProtectionIntegration","integrationFactory","registeredFactories","push","_this$registeredFacto","find","init","_this$currentIntegrat","_this$currentIntegrat2","_this$currentIntegrat3","exports","ContentProtectionRegistry"],"sources":["ContentProtectionRegistry.ts"],"sourcesContent":["import type { CertificateRequest, ContentProtectionAPI, DRMConfiguration, LicenseRequest } from 'react-native-theoplayer';\nimport type { KeySystemId } from 'react-native-theoplayer';\nimport type { ContentProtectionIntegrationFactory } from 'react-native-theoplayer';\nimport { NativeEventEmitter, NativeModules } from 'react-native';\nimport type { ContentProtectionIntegration } from 'react-native-theoplayer';\nimport type { NativeContentProtectionEvent } from './NativeContentProtectionEvent';\nimport { fromNativeLicenseRequest, NativeLicenseRequest, toNativeLicenseRequest } from './NativeLicenseRequest';\nimport { fromNativeLicenseResponse, NativeLicenseResponse, toNativeLicenseResponseResult } from './NativeLicenseResponse';\nimport { fromNativeCertificateRequest, NativeCertificateRequest, toNativeCertificateRequest } from './NativeCertificateRequest';\nimport { fromNativeCertificateResponse, NativeCertificateResponse, toNativeCertificateResponseResult } from './NativeCertificateResponse';\nimport { isBufferSource } from '../utils/TypeUtils';\n\nconst NativeContentProtectionModule = NativeModules.THEORCTContentProtectionModule;\n\ninterface WrappedContentProtectionIntegrationFactory {\n integrationId: string;\n keySystemId: string;\n integrationFactory: ContentProtectionIntegrationFactory;\n}\n\ninterface WrappedContentProtectionIntegration {\n integrationId: string;\n keySystemId: string;\n integration: ContentProtectionIntegration;\n}\n\ninterface BuildEvent extends NativeContentProtectionEvent {\n drmConfig: DRMConfiguration;\n}\n\ninterface ExtractFaiplayContentIdEvent extends NativeContentProtectionEvent {\n fairplaySkdUrl: string;\n}\n\nexport class NativeContentProtectionRegistry implements ContentProtectionAPI {\n private emitter: NativeEventEmitter;\n private registeredFactories: WrappedContentProtectionIntegrationFactory[] = [];\n private currentIntegration: WrappedContentProtectionIntegration | undefined = undefined;\n\n constructor() {\n this.emitter = new NativeEventEmitter(NativeContentProtectionModule);\n this.emitter.addListener('onBuildIntegration', this.onBuildIntegrationRequest);\n this.emitter.addListener('onCertificateRequest', this.onCertificateRequest);\n this.emitter.addListener('onCertificateResponse', this.onCertificateResponse);\n this.emitter.addListener('onLicenseRequest', this.onLicenseRequest);\n this.emitter.addListener('onLicenseResponse', this.onLicenseResponse);\n this.emitter.addListener('onExtractFairplayContentId', this.onExtractFairplayContentId);\n }\n\n registerContentProtectionIntegration(integrationId: string, keySystemId: KeySystemId, integrationFactory: ContentProtectionIntegrationFactory) {\n this.registeredFactories.push({\n integrationId,\n keySystemId,\n integrationFactory,\n });\n NativeContentProtectionModule.registerContentProtectionIntegration(integrationId, keySystemId);\n }\n\n private getFactory(integrationId: string, keySystemId: string): ContentProtectionIntegrationFactory | undefined {\n return this.registeredFactories.find((init) => init.integrationId === integrationId && init.keySystemId === keySystemId)?.integrationFactory;\n }\n\n private getIntegration(integrationId: string, keySystemId: string): ContentProtectionIntegration | undefined {\n return this.currentIntegration?.integrationId === integrationId && this.currentIntegration?.keySystemId === keySystemId\n ? this.currentIntegration?.integration\n : undefined;\n }\n\n private onBuildIntegrationRequest = (event: BuildEvent) => {\n const { requestId, integrationId, keySystemId, drmConfig } = event;\n console.log('NativeContentProtectionModule', `onBuildIntegrationRequest ${integrationId} ${keySystemId}`);\n const factory = this.getFactory(integrationId, keySystemId);\n if (factory) {\n this.currentIntegration = {\n integrationId,\n keySystemId,\n integration: factory.build(drmConfig),\n };\n NativeContentProtectionModule.onBuildProcessed({ requestId, resultString: 'success' });\n } else {\n NativeContentProtectionModule.onBuildProcessed({\n requestId,\n resultString: 'failed',\n });\n }\n };\n\n private onCertificateRequest = async (request: NativeCertificateRequest) => {\n const { requestId, integrationId, keySystemId } = request;\n console.log('NativeContentProtectionModule', `onCertificateRequest ${integrationId} ${keySystemId}`);\n const integration = this.getIntegration(integrationId, keySystemId);\n if (integration?.onCertificateRequest) {\n const result = await integration.onCertificateRequest(fromNativeCertificateRequest(request));\n // TODO: we also want to support ArrayBufferView results\n if (isBufferSource(result)) {\n const nativeResponse = toNativeCertificateResponseResult(requestId, integrationId, keySystemId, result as ArrayBuffer);\n NativeContentProtectionModule.onCertificateRequestProcessedAsCertificate(nativeResponse);\n } else if (result as CertificateRequest) {\n const modifiedNativeRequest = toNativeCertificateRequest(requestId, integrationId, keySystemId, result as CertificateRequest);\n NativeContentProtectionModule.onCertificateRequestProcessedAsRequest(modifiedNativeRequest);\n }\n } else {\n NativeContentProtectionModule.onCertificateRequestProcessedAsRequest(request);\n }\n };\n\n private onCertificateResponse = async (response: NativeCertificateResponse) => {\n const { requestId, integrationId, keySystemId } = response;\n console.log('NativeContentProtectionModule', `onCertificateResponse ${integrationId} ${keySystemId}`);\n const integration = this.getIntegration(integrationId, keySystemId);\n if (integration?.onCertificateResponse) {\n const responseResult = await integration.onCertificateResponse(fromNativeCertificateResponse(response));\n // TODO: we also want to support ArrayBufferView results\n const modifiedNativeResponse = toNativeCertificateResponseResult(requestId, integrationId, keySystemId, responseResult as ArrayBuffer);\n NativeContentProtectionModule.onCertificateResponseProcessed(modifiedNativeResponse);\n } else {\n NativeContentProtectionModule.onCertificateResponseProcessed(response);\n }\n };\n\n private onLicenseRequest = async (request: NativeLicenseRequest) => {\n const { requestId, integrationId, keySystemId } = request;\n console.log('NativeContentProtectionModule', `onLicenseRequest ${integrationId} ${keySystemId}`);\n const integration = this.getIntegration(integrationId, keySystemId);\n // Optionally let the custom integration modify the request.\n if (integration?.onLicenseRequest) {\n const result = await integration.onLicenseRequest(fromNativeLicenseRequest(request));\n // TODO: we also want to support ArrayBufferView results\n if (isBufferSource(result)) {\n const nativeResponse = toNativeLicenseResponseResult(requestId, integrationId, keySystemId, result as ArrayBuffer);\n NativeContentProtectionModule.onLicenseRequestProcessedAsLicense(nativeResponse);\n } else if (result as LicenseRequest) {\n const modifiedNativeRequest = toNativeLicenseRequest(requestId, integrationId, keySystemId, result as LicenseRequest);\n NativeContentProtectionModule.onLicenseRequestProcessedAsRequest(modifiedNativeRequest);\n }\n } else {\n NativeContentProtectionModule.onLicenseRequestProcessedAsRequest(request);\n }\n };\n\n private onLicenseResponse = async (response: NativeLicenseResponse) => {\n const { requestId, integrationId, keySystemId } = response;\n console.log('NativeContentProtectionModule', `onLicenseResponse ${integrationId} ${keySystemId}`);\n const integration = this.getIntegration(integrationId, keySystemId);\n if (integration?.onLicenseResponse) {\n const responseResult = await integration.onLicenseResponse(fromNativeLicenseResponse(response));\n // TODO: we also want to support ArrayBufferView results\n const modifiedNativeResponse = toNativeLicenseResponseResult(requestId, integrationId, keySystemId, responseResult as ArrayBuffer);\n NativeContentProtectionModule.onLicenseResponseProcessed(modifiedNativeResponse);\n } else {\n NativeContentProtectionModule.onLicenseResponseProcessed(response);\n }\n };\n\n private onExtractFairplayContentId = async (event: ExtractFaiplayContentIdEvent) => {\n const { integrationId, keySystemId, fairplaySkdUrl, requestId } = event;\n console.log('NativeContentProtectionModule', `onExtractFairplayContentId ${integrationId} ${keySystemId}`);\n const integration = this.getIntegration(integrationId, keySystemId);\n if (integration?.extractFairplayContentId) {\n const contentId = await integration.extractFairplayContentId(fairplaySkdUrl);\n NativeContentProtectionModule.onExtractFairplayContentIdProcessed({\n requestId,\n contentId,\n });\n } else {\n const contentId = fairplaySkdUrl;\n NativeContentProtectionModule.onExtractFairplayContentIdProcessed({\n requestId,\n contentId,\n });\n }\n };\n}\n\nexport const ContentProtectionRegistry = new NativeContentProtectionRegistry();\n"],"mappings":";;;;;;AAGA,IAAAA,YAAA,GAAAC,OAAA;AAGA,IAAAC,qBAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAF,OAAA;AACA,IAAAG,yBAAA,GAAAH,OAAA;AACA,IAAAI,0BAAA,GAAAJ,OAAA;AACA,IAAAK,UAAA,GAAAL,OAAA;AAAoD,SAAAM,gBAAAC,GAAA,EAAAC,GAAA,EAAAC,KAAA,IAAAD,GAAA,GAAAE,cAAA,CAAAF,GAAA,OAAAA,GAAA,IAAAD,GAAA,IAAAI,MAAA,CAAAC,cAAA,CAAAL,GAAA,EAAAC,GAAA,IAAAC,KAAA,EAAAA,KAAA,EAAAI,UAAA,QAAAC,YAAA,QAAAC,QAAA,oBAAAR,GAAA,CAAAC,GAAA,IAAAC,KAAA,WAAAF,GAAA;AAAA,SAAAG,eAAAM,GAAA,QAAAR,GAAA,GAAAS,YAAA,CAAAD,GAAA,2BAAAR,GAAA,gBAAAA,GAAA,GAAAU,MAAA,CAAAV,GAAA;AAAA,SAAAS,aAAAE,KAAA,EAAAC,IAAA,eAAAD,KAAA,iBAAAA,KAAA,kBAAAA,KAAA,MAAAE,IAAA,GAAAF,KAAA,CAAAG,MAAA,CAAAC,WAAA,OAAAF,IAAA,KAAAG,SAAA,QAAAC,GAAA,GAAAJ,IAAA,CAAAK,IAAA,CAAAP,KAAA,EAAAC,IAAA,2BAAAK,GAAA,sBAAAA,GAAA,YAAAE,SAAA,4DAAAP,IAAA,gBAAAF,MAAA,GAAAU,MAAA,EAAAT,KAAA;AAEpD,MAAMU,6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BAAA,CAAyBvD,WAAW,MAAKA,WAAW,IAAAwD,sBAAA,GACnH,IAAI,CAAClD,kBAAkB,cAAAkD,sBAAA,uBAAvBA,sBAAA,CAAyBjD,WAAW,GACpCpB,SAAS;EACf;AA0GF;AAACsE,OAAA,CAAA9D,+BAAA,GAAAA,+BAAA;AAEM,MAAM+D,yBAAyB,GAAAD,OAAA,CAAAC,yBAAA,GAAG,IAAI/D,+BAA+B,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"names":["_reactNative","require","_NativeLicenseRequest","_NativeLicenseResponse","_NativeCertificateRequest","_NativeCertificateResponse","_TypeUtils","NativeContentProtectionModule","NativeModules","THEORCTContentProtectionModule","NativeContentProtectionRegistry","registeredFactories","currentIntegration","undefined","constructor","emitter","NativeEventEmitter","addListener","onBuildIntegrationRequest","onCertificateRequest","onCertificateResponse","onLicenseRequest","onLicenseResponse","onExtractFairplayContentId","registerContentProtectionIntegration","integrationId","keySystemId","integrationFactory","push","getFactory","find","init","getIntegration","integration","event","requestId","drmConfig","console","log","factory","build","onBuildProcessed","resultString","request","result","fromNativeCertificateRequest","isBufferSource","nativeResponse","toNativeCertificateResponseResult","onCertificateRequestProcessedAsCertificate","modifiedNativeRequest","toNativeCertificateRequest","onCertificateRequestProcessedAsRequest","response","responseResult","fromNativeCertificateResponse","modifiedNativeResponse","onCertificateResponseProcessed","fromNativeLicenseRequest","toNativeLicenseResponseResult","onLicenseRequestProcessedAsLicense","toNativeLicenseRequest","onLicenseRequestProcessedAsRequest","fromNativeLicenseResponse","onLicenseResponseProcessed","fairplaySkdUrl","extractFairplayContentId","contentId","onExtractFairplayContentIdProcessed","exports","ContentProtectionRegistry"],"sourceRoot":"../../../../src","sources":["internal/drm/ContentProtectionRegistry.ts"],"mappings":";;;;;;AAGA,IAAAA,YAAA,GAAAC,OAAA;AAGA,IAAAC,qBAAA,GAAAD,OAAA;AACA,IAAAE,sBAAA,GAAAF,OAAA;AACA,IAAAG,yBAAA,GAAAH,OAAA;AACA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erContentProtectionIntegration","integrationId","keySystem","integrationFactory","exports","ContentProtectionRegistry"],"
|
|
1
|
+
{"version":3,"names":["_theoplayer","require","WebContentProtectionRegistry","registerContentProtectionIntegration","integrationId","keySystem","integrationFactory","exports","ContentProtectionRegistry"],"sourceRoot":"../../../../src","sources":["internal/drm/ContentProtectionRegistry.web.ts"],"mappings":";;;;;;AACA,IAAAA,WAAA,GAAAC,OAAA;AAEO,MAAMC,4BAA4B,CAAiC;EACxEC,oCAAoCA,CAACC,aAAqB,EAAEC,SAAsB,EAAEC,kBAAuD,EAAQ;IACjJ,IAAAH,gDAAoC,EAACC,aAAa,EAAEC,SAAS,EAAEC,kBAAkB,CAAC;EACpF;AACF;AAACC,OAAA,CAAAL,4BAAA,GAAAA,4BAAA;AAEM,MAAMM,yBAAyB,GAAAD,OAAA,CAAAC,yBAAA,GAAG,IAAIN,4BAA4B,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNativeTheoplayer","require","fromNativeCertificateRequest","request","url","method","headers","useCredentials","base64body","body","fromBase64StringToUint8Array","toNativeCertificateRequest","requestId","integrationId","keySystemId","fromUint8ArrayToBase64String"],"
|
|
1
|
+
{"version":3,"names":["_reactNativeTheoplayer","require","fromNativeCertificateRequest","request","url","method","headers","useCredentials","base64body","body","fromBase64StringToUint8Array","toNativeCertificateRequest","requestId","integrationId","keySystemId","fromUint8ArrayToBase64String"],"sourceRoot":"../../../../src","sources":["internal/drm/NativeCertificateRequest.ts"],"mappings":";;;;;;;AAEA,IAAAA,sBAAA,GAAAC,OAAA;AAUO,SAASC,4BAA4BA,CAACC,OAAiC,EAAsB;EAClG,MAAM;IAAEC,GAAG;IAAEC,MAAM;IAAEC,OAAO;IAAEC,cAAc;IAAEC;EAAW,CAAC,GAAGL,OAAO;EACpE,MAAMM,IAAI,GAAGD,UAAU,GAAG,IAAAE,mDAA4B,EAACF,UAAU,CAAC,GAAG,IAAI;EACzE,OAAO;IACLJ,GAAG;IACHC,MAAM;IACNC,OAAO;IACPC,cAAc;IACdE;EACF,CAAC;AACH;AAEO,SAASE,0BAA0BA,CACxCC,SAAiB,EACjBC,aAAqB,EACrBC,WAAmB,EACnBX,OAA2B,EACD;EAC1B,OAAO;IACLS,SAAS;IACTC,aAAa;IACbC,WAAW;IACXV,GAAG,EAAED,OAAO,CAACC,GAAG;IAChBC,MAAM,EAAEF,OAAO,CAACE,MAAM;IACtBC,OAAO,EAAEH,OAAO,CAACG,OAAO;IACxBC,cAAc,EAAEJ,OAAO,CAACI,cAAc,IAAI,KAAK;IAC/CC,UAAU,EAAEL,OAAO,CAACM,IAAI,GAAG,IAAAM,mDAA4B,EAACZ,OAAO,CAACM,IAAI,CAAC,GAAG;EAC1E,CAAC;AACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_NativeCertificateRequest","require","_reactNativeTheoplayer","fromNativeCertificateResponse","response","url","status","statusText","headers","base64body","request","body","fromBase64StringToUint8Array","Uint8Array","fromNativeCertificateRequest","toNativeCertificateResponseResult","requestId","integrationId","keySystemId","fromUint8ArrayToBase64String"],"
|
|
1
|
+
{"version":3,"names":["_NativeCertificateRequest","require","_reactNativeTheoplayer","fromNativeCertificateResponse","response","url","status","statusText","headers","base64body","request","body","fromBase64StringToUint8Array","Uint8Array","fromNativeCertificateRequest","toNativeCertificateResponseResult","requestId","integrationId","keySystemId","fromUint8ArrayToBase64String"],"sourceRoot":"../../../../src","sources":["internal/drm/NativeCertificateResponse.ts"],"mappings":";;;;;;;AAGA,IAAAA,yBAAA,GAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAD,OAAA;AAeO,SAASE,6BAA6BA,CAACC,QAAmC,EAAuB;EACtG,MAAM;IAAEC,GAAG;IAAEC,MAAM;IAAEC,UAAU;IAAEC,OAAO;IAAEC,UAAU;IAAEC;EAAQ,CAAC,GAAGN,QAAQ;EAC1E,MAAMO,IAAI,GAAGF,UAAU,GAAG,IAAAG,mDAA4B,EAACH,UAAU,CAAC,GAAG,IAAII,UAAU,CAAC,CAAC;EACrF,OAAO;IACLR,GAAG;IACHC,MAAM;IACNC,UAAU;IACVC,OAAO;IACPG,IAAI;IACJD,OAAO,EAAE,IAAAI,sDAA4B,EAACJ,OAAO;EAC/C,CAAC;AACH;AAEO,SAASK,iCAAiCA,CAC/CC,SAAiB,EACjBC,aAAqB,EACrBC,WAAmB,EACnBd,QAAqB,EACY;EACjC,OAAO;IACLY,SAAS;IACTC,aAAa;IACbC,WAAW;IACXT,UAAU,EAAEL,QAAQ,GAAG,IAAAe,mDAA4B,EAAC,IAAIN,UAAU,CAACT,QAAQ,CAAC,CAAC,GAAG;EAClF,CAAC;AACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["internal/drm/NativeContentProtectionEvent.ts"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNativeTheoplayer","require","fromNativeLicenseRequest","request","url","method","headers","useCredentials","base64body","fairplaySkdUrl","body","fromBase64StringToUint8Array","toNativeLicenseRequest","requestId","integrationId","keySystemId","fromUint8ArrayToBase64String"],"
|
|
1
|
+
{"version":3,"names":["_reactNativeTheoplayer","require","fromNativeLicenseRequest","request","url","method","headers","useCredentials","base64body","fairplaySkdUrl","body","fromBase64StringToUint8Array","toNativeLicenseRequest","requestId","integrationId","keySystemId","fromUint8ArrayToBase64String"],"sourceRoot":"../../../../src","sources":["internal/drm/NativeLicenseRequest.ts"],"mappings":";;;;;;;AAEA,IAAAA,sBAAA,GAAAC,OAAA;AAWO,SAASC,wBAAwBA,CAACC,OAA6B,EAAkB;EACtF,MAAM;IAAEC,GAAG;IAAEC,MAAM;IAAEC,OAAO;IAAEC,cAAc;IAAEC,UAAU;IAAEC;EAAe,CAAC,GAAGN,OAAO;EACpF,MAAMO,IAAI,GAAGF,UAAU,GAAG,IAAAG,mDAA4B,EAACH,UAAU,CAAC,GAAG,IAAI;EACzE,OAAO;IACLJ,GAAG;IACHC,MAAM;IACNC,OAAO;IACPC,cAAc;IACdG,IAAI;IACJD;EACF,CAAC;AACH;AAEO,SAASG,sBAAsBA,CAACC,SAAiB,EAAEC,aAAqB,EAAEC,WAAmB,EAAEZ,OAAuB,EAAwB;EACnJ,OAAO;IACLU,SAAS;IACTC,aAAa;IACbC,WAAW;IACXX,GAAG,EAAED,OAAO,CAACC,GAAG;IAChBC,MAAM,EAAEF,OAAO,CAACE,MAAM;IACtBC,OAAO,EAAEH,OAAO,CAACG,OAAO;IACxBC,cAAc,EAAEJ,OAAO,CAACI,cAAc,IAAI,KAAK;IAC/CC,UAAU,EAAEL,OAAO,CAACO,IAAI,GAAG,IAAAM,mDAA4B,EAACb,OAAO,CAACO,IAAI,CAAC,GAAG,IAAI;IAC5ED,cAAc,EAAEN,OAAO,CAACM;EAC1B,CAAC;AACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_NativeLicenseRequest","require","_reactNativeTheoplayer","fromNativeLicenseResponse","response","url","status","statusText","headers","base64body","request","body","fromBase64StringToUint8Array","Uint8Array","fromNativeLicenseRequest","toNativeLicenseResponseResult","requestId","integrationId","keySystemId","fromUint8ArrayToBase64String"],"
|
|
1
|
+
{"version":3,"names":["_NativeLicenseRequest","require","_reactNativeTheoplayer","fromNativeLicenseResponse","response","url","status","statusText","headers","base64body","request","body","fromBase64StringToUint8Array","Uint8Array","fromNativeLicenseRequest","toNativeLicenseResponseResult","requestId","integrationId","keySystemId","fromUint8ArrayToBase64String"],"sourceRoot":"../../../../src","sources":["internal/drm/NativeLicenseResponse.ts"],"mappings":";;;;;;;AAGA,IAAAA,qBAAA,GAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAD,OAAA;AAeO,SAASE,yBAAyBA,CAACC,QAA+B,EAAmB;EAC1F,MAAM;IAAEC,GAAG;IAAEC,MAAM;IAAEC,UAAU;IAAEC,OAAO;IAAEC,UAAU;IAAEC;EAAQ,CAAC,GAAGN,QAAQ;EAC1E,MAAMO,IAAI,GAAGF,UAAU,GAAG,IAAAG,mDAA4B,EAACH,UAAU,CAAC,GAAG,IAAII,UAAU,CAAC,CAAC;EACrF,OAAO;IACLR,GAAG;IACHC,MAAM;IACNC,UAAU;IACVC,OAAO;IACPG,IAAI;IACJD,OAAO,EAAE,IAAAI,8CAAwB,EAACJ,OAAO;EAC3C,CAAC;AACH;AAEO,SAASK,6BAA6BA,CAC3CC,SAAiB,EACjBC,aAAqB,EACrBC,WAAmB,EACnBd,QAAqB,EACQ;EAC7B,OAAO;IACLY,SAAS;IACTC,aAAa;IACbC,WAAW;IACXT,UAAU,EAAEL,QAAQ,GAAG,IAAAe,mDAA4B,EAAC,IAAIN,UAAU,CAACT,QAAQ,CAAC,CAAC,GAAG;EAClF,CAAC;AACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["noOp"],"
|
|
1
|
+
{"version":3,"names":["noOp"],"sourceRoot":"../../../../src","sources":["internal/utils/CommonUtils.ts"],"mappings":";;;;;;AAAO,SAASA,IAAIA,CAAA,EAAS;EAC3B;AACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","getFullscreenSize","screenSize","Dimensions","get","Platform","OS","Version","statusBarHeight","StatusBar","currentHeight","width","height"],"
|
|
1
|
+
{"version":3,"names":["_reactNative","require","getFullscreenSize","screenSize","Dimensions","get","Platform","OS","Version","statusBarHeight","StatusBar","currentHeight","width","height"],"sourceRoot":"../../../../src","sources":["internal/utils/Dimensions.ts"],"mappings":";;;;;;AACA,IAAAA,YAAA,GAAAC,OAAA;AAEA;AACA;AACA;AACO,SAASC,iBAAiBA,CAAA,EAAe;EAC9C,MAAMC,UAAU,GAAGC,uBAAU,CAACC,GAAG,CAAC,QAAQ,CAAC;;EAE3C;EACA,IAAIC,qBAAQ,CAACC,EAAE,KAAK,SAAS,IAAID,qBAAQ,CAACE,OAAO,IAAI,EAAE,EAAE;IACvD,MAAMC,eAAe,GAAIC,sBAAS,CAACC,aAAa,IAAI,CAAE;IACtD,IAAIR,UAAU,CAACS,KAAK,GAAGT,UAAU,CAACU,MAAM,EAAE;MAAE;MAC1C,IAAIV,UAAU,CAACU,MAAM,KAAKT,uBAAU,CAACC,GAAG,CAAC,QAAQ,CAAC,CAACQ,MAAM,GAAGJ,eAAe,EAAE;QAC3EN,UAAU,CAACU,MAAM,GAAGV,UAAU,CAACU,MAAM,GAAGJ,eAAe;MACzD;IACF,CAAC,MAAM;MAAE;MACP,IAAIN,UAAU,CAACS,KAAK,KAAKR,uBAAU,CAACC,GAAG,CAAC,QAAQ,CAAC,CAACO,KAAK,EAAE;QACvDT,UAAU,CAACS,KAAK,GAAGT,UAAU,CAACS,KAAK,GAAGH,eAAe;MACvD;IACF;EACF;EACA,OAAON,UAAU;AACnB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["NAN_VALUE","POS_INF_VALUE","decodeNanInf","v","NaN","Infinity","objectToString","exports","toString","viewClasses","arrayContainsElement_","array","element","indexOf","isArrayBufferView_","ArrayBuffer","isView","obj","call","isBufferSource","bufferSource"],"
|
|
1
|
+
{"version":3,"names":["NAN_VALUE","POS_INF_VALUE","decodeNanInf","v","NaN","Infinity","objectToString","exports","toString","viewClasses","arrayContainsElement_","array","element","indexOf","isArrayBufferView_","ArrayBuffer","isView","obj","call","isBufferSource","bufferSource"],"sourceRoot":"../../../../src","sources":["internal/utils/TypeUtils.ts"],"mappings":";;;;;;;;;;AAAA,MAAMA,SAAS,GAAG,CAAC,CAAC;AACpB,MAAMC,aAAa,GAAG,CAAC,CAAC;;AAExB;AACO,SAASC,YAAYA,CAACC,CAAS,EAAU;EAC9C,IAAIA,CAAC,KAAKH,SAAS,EAAE;IACnB,OAAOI,GAAG;EACZ;EACA,IAAID,CAAC,KAAKF,aAAa,EAAE;IACvB,OAAOI,QAAQ;EACjB;EACA,OAAOF,CAAC;AACV;AAEO,MAAMG,cAAc,GAAAC,OAAA,CAAAD,cAAA,GAAG,CAAC,CAAC,CAACE,QAAQ;AAEzC,MAAMC,WAAW,GAAG,CAClB,oBAAoB,EACpB,qBAAqB,EACrB,4BAA4B,EAC5B,qBAAqB,EACrB,sBAAsB,EACtB,qBAAqB,EACrB,sBAAsB,EACtB,uBAAuB,EACvB,uBAAuB,EACvB,mBAAmB,CACpB;AAEM,SAASC,qBAAqBA,CAAIC,KAAuB,EAAEC,OAAU,EAAW;EACrF,OAAOD,KAAK,CAACE,OAAO,CAACD,OAAO,CAAC,KAAK,CAAC,CAAC;AACtC;AAEO,MAAME,kBAA6C,GAAAP,OAAA,CAAAO,kBAAA,GACxDC,WAAW,CAACC,MAAM,KAAMC,GAAG,IAAKA,GAAG,IAAIP,qBAAqB,CAACD,WAAW,EAAEH,cAAc,CAACY,IAAI,CAACD,GAAG,CAAC,CAAC,CAAC;AAE/F,SAASE,cAAcA,CAACC,YAAiB,EAAgC;EAC9E,OAAOA,YAAY,YAAYL,WAAW,IAAID,kBAAkB,CAACM,YAAY,CAAC;AAChF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["arrayRemoveElement","array","element","index","indexOf","arrayRemoveAt","splice"],"
|
|
1
|
+
{"version":3,"names":["arrayRemoveElement","array","element","index","indexOf","arrayRemoveAt","splice"],"sourceRoot":"../../../../src","sources":["internal/utils/arrayUtil.ts"],"mappings":";;;;;;;AAAO,SAASA,kBAAkBA,CAAIC,KAAU,EAAEC,OAAU,EAAW;EACrE,MAAMC,KAAK,GAAGF,KAAK,CAACG,OAAO,CAACF,OAAO,CAAC;EACpC,IAAIC,KAAK,KAAK,CAAC,CAAC,EAAE;IAChB,OAAO,KAAK;EACd;EACAE,aAAa,CAACJ,KAAK,EAAEE,KAAK,CAAC;EAC3B,OAAO,IAAI;AACb;AAEO,SAASE,aAAaA,CAAIJ,KAAU,EAAEE,KAAa,EAAQ;EAChEF,KAAK,CAACK,MAAM,CAACH,KAAK,EAAE,CAAC,CAAC;AACxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["web/platform/browser.d.ts"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["api/THEOplayerView.ts"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["ABRStrategyType"],"
|
|
1
|
+
{"version":3,"names":["ABRStrategyType"],"sourceRoot":"../../../../src","sources":["api/abr/ABRConfiguration.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAYA,eAAe,0BAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAA,OAAfA,eAAe;AAAA;;AAM3B;AACA;AACA;AACA;AACA;;AAUA;AACA;AACA;AACA;AACA;;AAeA;AACA;AACA;AACA;AACA;;AAGA;AACA;AACA;AACA;AACA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["api/abr/barrel.ts"],"mappings":"AAAA,cAAc,oBAAoB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["api/ads/Ad.ts"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["api/ads/AdBreak.ts"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["api/ads/AdsAPI.ts"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["api/ads/AdsConfiguration.ts"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["api/ads/CompanionAd.ts"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["api/ads/GoogleDai.ts"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["api/ads/GoogleImaAd.ts"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["api/ads/GoogleImaConfiguration.ts"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["api/ads/barrel.ts"],"mappings":"AAAA,cAAc,MAAM;AACpB,cAAc,WAAW;AACzB,cAAc,oBAAoB;AAClC,cAAc,UAAU;AACxB,cAAc,eAAe;AAC7B,cAAc,aAAa;AAC3B,cAAc,eAAe;AAC7B,cAAc,0BAA0B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["api/backgroundAudio/BackgroundAudioConfiguration.ts"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["api/backgroundAudio/barrel.ts"],"mappings":"AAAA,cAAc,gCAAgC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["api/barrel.ts"],"mappings":"AAAA,cAAc,cAAc;AAC5B,cAAc,cAAc;AAC5B,cAAc,0BAA0B;AACxC,cAAc,oBAAoB;AAClC,cAAc,gBAAgB;AAC9B,cAAc,eAAe;AAC7B,cAAc,cAAc;AAC5B,cAAc,iBAAiB;AAC/B,cAAc,gBAAgB;AAC9B,cAAc,gBAAgB;AAC9B,cAAc,gBAAgB;AAC9B,cAAc,cAAc;AAC5B,cAAc,iBAAiB;AAC/B,cAAc,qBAAqB;AACnC,cAAc,gBAAgB;AAC9B,cAAc,gBAAgB;AAC9B,cAAc,kBAAkB;AAChC,cAAc,iBAAiB;AAC/B,cAAc,uBAAuB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["api/broadcast/EventBroadcastAPI.ts"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["api/broadcast/barrel.ts"],"mappings":"AAAA,cAAc,qBAAqB"}
|