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
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
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; }
|
|
2
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
3
|
-
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); }
|
|
4
1
|
import { CacheStatus } from '../../api/cache/MediaCacheAPI';
|
|
5
2
|
import { DefaultEventDispatcher } from '../adapter/event/DefaultEventDispatcher';
|
|
6
3
|
import { CacheEventType } from '../../api/cache/events/CacheEvent';
|
|
@@ -11,67 +8,11 @@ import { toNativeCachingTaskParameters } from "./NativeCachingTaskParametersAdap
|
|
|
11
8
|
const TAG = "NativeMediaCache";
|
|
12
9
|
const NativeCacheModule = NativeModules.THEORCTCacheModule;
|
|
13
10
|
export class NativeMediaCache extends DefaultEventDispatcher {
|
|
11
|
+
_emitter = new NativeEventEmitter(NativeCacheModule);
|
|
12
|
+
_status = CacheStatus.uninitialised;
|
|
13
|
+
_tasks = [];
|
|
14
14
|
constructor() {
|
|
15
15
|
super();
|
|
16
|
-
_defineProperty(this, "_emitter", new NativeEventEmitter(NativeCacheModule));
|
|
17
|
-
_defineProperty(this, "_status", CacheStatus.uninitialised);
|
|
18
|
-
_defineProperty(this, "_tasks", []);
|
|
19
|
-
_defineProperty(this, "onCacheStatusChange", async event => {
|
|
20
|
-
if (this._status === CacheStatus.uninitialised) {
|
|
21
|
-
await this.getInitialState();
|
|
22
|
-
}
|
|
23
|
-
this._status = event.status;
|
|
24
|
-
this.dispatchEvent({
|
|
25
|
-
type: CacheEventType.statechange,
|
|
26
|
-
date: new Date()
|
|
27
|
-
});
|
|
28
|
-
});
|
|
29
|
-
_defineProperty(this, "onAddCachingTaskEvent", event => {
|
|
30
|
-
const task = new NativeCachingTaskAdapter(event.task);
|
|
31
|
-
this._tasks.push(task);
|
|
32
|
-
this.dispatchEvent({
|
|
33
|
-
type: CacheEventType.addtask,
|
|
34
|
-
task,
|
|
35
|
-
date: new Date()
|
|
36
|
-
});
|
|
37
|
-
});
|
|
38
|
-
_defineProperty(this, "onRemoveCachingTaskEvent", event => {
|
|
39
|
-
const task = this.taskById(event.task.id);
|
|
40
|
-
if (task) {
|
|
41
|
-
this._tasks = this._tasks.filter(task => task.id !== event.task.id);
|
|
42
|
-
this.dispatchEvent({
|
|
43
|
-
type: CacheEventType.removetask,
|
|
44
|
-
task,
|
|
45
|
-
date: new Date()
|
|
46
|
-
});
|
|
47
|
-
} else {
|
|
48
|
-
console.warn(TAG, `onRemoveCachingTaskEvent: CachingTask with id ${event.task.id} not found.`);
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
_defineProperty(this, "onCachingTaskProgressEvent", event => {
|
|
52
|
-
const task = this.taskById(event.id);
|
|
53
|
-
if (task) {
|
|
54
|
-
Object.assign(task, {
|
|
55
|
-
...event.progress
|
|
56
|
-
});
|
|
57
|
-
task.dispatchEvent({
|
|
58
|
-
type: CachingTaskEventType.progress,
|
|
59
|
-
date: new Date()
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
_defineProperty(this, "onCachingTaskStatusChangeEvent", event => {
|
|
64
|
-
const task = this.taskById(event.id);
|
|
65
|
-
if (task) {
|
|
66
|
-
Object.assign(task, {
|
|
67
|
-
...event
|
|
68
|
-
});
|
|
69
|
-
task.dispatchEvent({
|
|
70
|
-
type: CachingTaskEventType.statechange,
|
|
71
|
-
date: new Date()
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
16
|
this._emitter.addListener('onCacheStatusChange', this.onCacheStatusChange);
|
|
76
17
|
this._emitter.addListener('onAddCachingTaskEvent', this.onAddCachingTaskEvent);
|
|
77
18
|
this._emitter.addListener('onRemoveCachingTaskEvent', this.onRemoveCachingTaskEvent);
|
|
@@ -103,6 +44,62 @@ export class NativeMediaCache extends DefaultEventDispatcher {
|
|
|
103
44
|
this._status = initialState.status;
|
|
104
45
|
this._tasks = initialState.tasks.map(task => new NativeCachingTaskAdapter(task));
|
|
105
46
|
}
|
|
47
|
+
onCacheStatusChange = async event => {
|
|
48
|
+
if (this._status === CacheStatus.uninitialised) {
|
|
49
|
+
await this.getInitialState();
|
|
50
|
+
}
|
|
51
|
+
this._status = event.status;
|
|
52
|
+
this.dispatchEvent({
|
|
53
|
+
type: CacheEventType.statechange,
|
|
54
|
+
date: new Date()
|
|
55
|
+
});
|
|
56
|
+
};
|
|
57
|
+
onAddCachingTaskEvent = event => {
|
|
58
|
+
const task = new NativeCachingTaskAdapter(event.task);
|
|
59
|
+
this._tasks.push(task);
|
|
60
|
+
this.dispatchEvent({
|
|
61
|
+
type: CacheEventType.addtask,
|
|
62
|
+
task,
|
|
63
|
+
date: new Date()
|
|
64
|
+
});
|
|
65
|
+
};
|
|
66
|
+
onRemoveCachingTaskEvent = event => {
|
|
67
|
+
const task = this.taskById(event.task.id);
|
|
68
|
+
if (task) {
|
|
69
|
+
this._tasks = this._tasks.filter(task => task.id !== event.task.id);
|
|
70
|
+
this.dispatchEvent({
|
|
71
|
+
type: CacheEventType.removetask,
|
|
72
|
+
task,
|
|
73
|
+
date: new Date()
|
|
74
|
+
});
|
|
75
|
+
} else {
|
|
76
|
+
console.warn(TAG, `onRemoveCachingTaskEvent: CachingTask with id ${event.task.id} not found.`);
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
onCachingTaskProgressEvent = event => {
|
|
80
|
+
const task = this.taskById(event.id);
|
|
81
|
+
if (task) {
|
|
82
|
+
Object.assign(task, {
|
|
83
|
+
...event.progress
|
|
84
|
+
});
|
|
85
|
+
task.dispatchEvent({
|
|
86
|
+
type: CachingTaskEventType.progress,
|
|
87
|
+
date: new Date()
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
};
|
|
91
|
+
onCachingTaskStatusChangeEvent = event => {
|
|
92
|
+
const task = this.taskById(event.id);
|
|
93
|
+
if (task) {
|
|
94
|
+
Object.assign(task, {
|
|
95
|
+
...event
|
|
96
|
+
});
|
|
97
|
+
task.dispatchEvent({
|
|
98
|
+
type: CachingTaskEventType.statechange,
|
|
99
|
+
date: new Date()
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
};
|
|
106
103
|
taskById(id) {
|
|
107
104
|
return this._tasks.find(task => task.id === id);
|
|
108
105
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["CacheStatus","DefaultEventDispatcher","CacheEventType","CachingTaskEventType","NativeEventEmitter","NativeModules","NativeCachingTaskAdapter","toNativeCachingTaskParameters","TAG","NativeCacheModule","THEORCTCacheModule","NativeMediaCache","
|
|
1
|
+
{"version":3,"names":["CacheStatus","DefaultEventDispatcher","CacheEventType","CachingTaskEventType","NativeEventEmitter","NativeModules","NativeCachingTaskAdapter","toNativeCachingTaskParameters","TAG","NativeCacheModule","THEORCTCacheModule","NativeMediaCache","_emitter","_status","uninitialised","_tasks","constructor","addListener","onCacheStatusChange","onAddCachingTaskEvent","onRemoveCachingTaskEvent","onCachingTaskProgressEvent","onCachingTaskStatusChangeEvent","initialize","createTask","source","parameters","status","tasks","getInitialState","initialised","initialState","map","task","event","dispatchEvent","type","statechange","date","Date","push","addtask","taskById","id","filter","removetask","console","warn","Object","assign","progress","find","MediaCache"],"sourceRoot":"../../../../src","sources":["internal/cache/MediaCache.ts"],"mappings":"AAAA,SAASA,WAAW,QAAuB,+BAA+B;AAE1E,SAASC,sBAAsB,QAAQ,yCAAyC;AAEhF,SAASC,cAAc,QAAQ,mCAAmC;AAElE,SAA0BC,oBAAoB,QAAmB,yBAAyB;AAG1F,SAASC,kBAAkB,EAAEC,aAAa,QAAQ,cAAc;AAChE,SAA4BC,wBAAwB,QAAQ,4BAA4B;AACxF,SAASC,6BAA6B,QAAQ,sCAAsC;AAEpF,MAAMC,GAAG,GAAG,kBAAkB;AAE9B,MAAMC,iBAAiB,GAAGJ,aAAa,CAACK,kBAAkB;AA+B1D,OAAO,MAAMC,gBAAgB,SAASV,sBAAsB,CAAyC;EAC3FW,QAAQ,GAAuB,IAAIR,kBAAkB,CAACK,iBAAiB,CAAC;EACxEI,OAAO,GAAgBb,WAAW,CAACc,aAAa;EAChDC,MAAM,GAA+B,EAAE;EAE/CC,WAAWA,CAAA,EAAG;IACZ,KAAK,CAAC,CAAC;IACP,IAAI,CAACJ,QAAQ,CAACK,WAAW,CAAC,qBAAqB,EAAE,IAAI,CAACC,mBAAmB,CAAC;IAC1E,IAAI,CAACN,QAAQ,CAACK,WAAW,CAAC,uBAAuB,EAAE,IAAI,CAACE,qBAAqB,CAAC;IAC9E,IAAI,CAACP,QAAQ,CAACK,WAAW,CAAC,0BAA0B,EAAE,IAAI,CAACG,wBAAwB,CAAC;IACpF,IAAI,CAACR,QAAQ,CAACK,WAAW,CAAC,4BAA4B,EAAE,IAAI,CAACI,0BAA0B,CAAC;IACxF,IAAI,CAACT,QAAQ,CAACK,WAAW,CAAC,gCAAgC,EAAE,IAAI,CAACK,8BAA8B,CAAC;IAChG,KAAK,IAAI,CAACC,UAAU,CAAC,CAAC;EACxB;EAEA,MAAMC,UAAUA,CAACC,MAAyB,EAAEC,UAAiC,EAAwB;IACnG,OAAOjB,iBAAiB,CAACe,UAAU,CAACC,MAAM,EAAElB,6BAA6B,CAACmB,UAAU,CAAC,CAAC;EACxF;EAEA,IAAIC,MAAMA,CAAA,EAAgB;IACxB,OAAO,IAAI,CAACd,OAAO;EACrB;EAEA,IAAIe,KAAKA,CAAA,EAAoB;IAC3B,OAAO,IAAI,CAACb,MAAM;EACpB;EAEA,MAAcQ,UAAUA,CAAA,EAAkB;IACxC,MAAM,IAAI,CAACM,eAAe,CAAC,CAAC;;IAE5B;IACA,IAAI,IAAI,CAAChB,OAAO,KAAKb,WAAW,CAAC8B,WAAW,EAAE;MAC5C,MAAM,IAAI,CAACZ,mBAAmB,CAAC;QAC7BS,MAAM,EAAE,IAAI,CAACd;MACf,CAAC,CAAC;IACJ;EACF;EAEA,MAAcgB,eAAeA,CAAA,EAAkB;IAC7C,MAAME,YAAY,GAAG,MAAMtB,iBAAiB,CAACoB,eAAe,CAAC,CAAC;IAC9D,IAAI,CAAChB,OAAO,GAAGkB,YAAY,CAACJ,MAAM;IAClC,IAAI,CAACZ,MAAM,GAAGgB,YAAY,CAACH,KAAK,CAACI,GAAG,CAAEC,IAAuB,IAAK,IAAI3B,wBAAwB,CAAC2B,IAAI,CAAC,CAAC;EACvG;EAEQf,mBAAmB,GAAG,MAAOgB,KAAmC,IAAK;IAC3E,IAAI,IAAI,CAACrB,OAAO,KAAKb,WAAW,CAACc,aAAa,EAAE;MAC9C,MAAM,IAAI,CAACe,eAAe,CAAC,CAAC;IAC9B;IACA,IAAI,CAAChB,OAAO,GAAGqB,KAAK,CAACP,MAAM;IAC3B,IAAI,CAACQ,aAAa,CAAC;MACjBC,IAAI,EAAElC,cAAc,CAACmC,WAAW;MAChCC,IAAI,EAAE,IAAIC,IAAI,CAAC;IACjB,CAAC,CAAC;EACJ,CAAC;EAEOpB,qBAAqB,GAAIe,KAAgC,IAAK;IACpE,MAAMD,IAAI,GAAE,IAAI3B,wBAAwB,CAAC4B,KAAK,CAACD,IAAI,CAAC;IACpD,IAAI,CAAClB,MAAM,CAACyB,IAAI,CAACP,IAAI,CAAC;IACtB,IAAI,CAACE,aAAa,CAAC;MACjBC,IAAI,EAAElC,cAAc,CAACuC,OAAO;MAC5BR,IAAI;MACJK,IAAI,EAAE,IAAIC,IAAI,CAAC;IACjB,CAAC,CAAC;EACJ,CAAC;EAEOnB,wBAAwB,GAAIc,KAAmC,IAAK;IAC1E,MAAMD,IAAI,GAAG,IAAI,CAACS,QAAQ,CAACR,KAAK,CAACD,IAAI,CAACU,EAAE,CAAC;IACzC,IAAIV,IAAI,EAAE;MACR,IAAI,CAAClB,MAAM,GAAG,IAAI,CAACA,MAAM,CAAC6B,MAAM,CAAEX,IAAI,IAAKA,IAAI,CAACU,EAAE,KAAKT,KAAK,CAACD,IAAI,CAACU,EAAE,CAAC;MACrE,IAAI,CAACR,aAAa,CAAC;QACjBC,IAAI,EAAElC,cAAc,CAAC2C,UAAU;QAC/BZ,IAAI;QACJK,IAAI,EAAE,IAAIC,IAAI,CAAC;MACjB,CAAC,CAAC;IACJ,CAAC,MAAM;MACLO,OAAO,CAACC,IAAI,CAACvC,GAAG,EAAG,iDAAgD0B,KAAK,CAACD,IAAI,CAACU,EAAG,aAAY,CAAC;IAChG;EACF,CAAC;EAEOtB,0BAA0B,GAAIa,KAAqC,IAAK;IAC9E,MAAMD,IAAI,GAAG,IAAI,CAACS,QAAQ,CAACR,KAAK,CAACS,EAAE,CAAC;IACpC,IAAIV,IAAI,EAAE;MACRe,MAAM,CAACC,MAAM,CAAChB,IAAI,EAAE;QAAE,GAAGC,KAAK,CAACgB;MAAS,CAAC,CAAC;MAC1CjB,IAAI,CAACE,aAAa,CAAC;QACjBC,IAAI,EAAEjC,oBAAoB,CAAC+C,QAAQ;QACnCZ,IAAI,EAAE,IAAIC,IAAI,CAAC;MACjB,CAA6B,CAAC;IAChC;EACF,CAAC;EAEOjB,8BAA8B,GAAIY,KAAqC,IAAK;IAClF,MAAMD,IAAI,GAAG,IAAI,CAACS,QAAQ,CAACR,KAAK,CAACS,EAAE,CAAC;IACpC,IAAIV,IAAI,EAAE;MACRe,MAAM,CAACC,MAAM,CAAChB,IAAI,EAAE;QAAE,GAAGC;MAAM,CAAC,CAAC;MACjCD,IAAI,CAACE,aAAa,CAAC;QACjBC,IAAI,EAAEjC,oBAAoB,CAACkC,WAAW;QACtCC,IAAI,EAAE,IAAIC,IAAI,CAAC;MACjB,CAAiC,CAAC;IACpC;EACF,CAAC;EAEOG,QAAQA,CAACC,EAAU,EAAwC;IACjE,OAAO,IAAI,CAAC5B,MAAM,CAACoC,IAAI,CAAElB,IAAI,IAAKA,IAAI,CAACU,EAAE,KAAKA,EAAE,CAAC;EACnD;AACF;AAEA,OAAO,MAAMS,UAAU,GAAG,IAAIzC,gBAAgB,CAAC,CAAC"}
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
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; }
|
|
2
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
3
|
-
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); }
|
|
4
1
|
import { DefaultEventDispatcher } from '../adapter/event/DefaultEventDispatcher';
|
|
5
2
|
import * as THEOplayerWeb from 'theoplayer';
|
|
6
3
|
import { WebCachingTaskAdapter } from './WebCachingTaskAdapter';
|
|
@@ -8,23 +5,23 @@ import { CacheEventType } from 'react-native-theoplayer';
|
|
|
8
5
|
export class WebMediaCache extends DefaultEventDispatcher {
|
|
9
6
|
constructor() {
|
|
10
7
|
super();
|
|
11
|
-
_defineProperty(this, "onAddTask", event => {
|
|
12
|
-
this.dispatchEvent({
|
|
13
|
-
type: CacheEventType.addtask,
|
|
14
|
-
task: new WebCachingTaskAdapter(event.task),
|
|
15
|
-
date: event.date
|
|
16
|
-
});
|
|
17
|
-
});
|
|
18
|
-
_defineProperty(this, "onRemoveTask", event => {
|
|
19
|
-
this.dispatchEvent({
|
|
20
|
-
type: CacheEventType.removetask,
|
|
21
|
-
task: new WebCachingTaskAdapter(event.task),
|
|
22
|
-
date: event.date
|
|
23
|
-
});
|
|
24
|
-
});
|
|
25
8
|
THEOplayerWeb.cache.tasks.addEventListener('addtask', this.onAddTask);
|
|
26
9
|
THEOplayerWeb.cache.tasks.addEventListener('removetask', this.onRemoveTask);
|
|
27
10
|
}
|
|
11
|
+
onAddTask = event => {
|
|
12
|
+
this.dispatchEvent({
|
|
13
|
+
type: CacheEventType.addtask,
|
|
14
|
+
task: new WebCachingTaskAdapter(event.task),
|
|
15
|
+
date: event.date
|
|
16
|
+
});
|
|
17
|
+
};
|
|
18
|
+
onRemoveTask = event => {
|
|
19
|
+
this.dispatchEvent({
|
|
20
|
+
type: CacheEventType.removetask,
|
|
21
|
+
task: new WebCachingTaskAdapter(event.task),
|
|
22
|
+
date: event.date
|
|
23
|
+
});
|
|
24
|
+
};
|
|
28
25
|
createTask(source, parameters) {
|
|
29
26
|
return Promise.resolve(new WebCachingTaskAdapter(THEOplayerWeb.cache.createTask(source, parameters)));
|
|
30
27
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["DefaultEventDispatcher","THEOplayerWeb","WebCachingTaskAdapter","CacheEventType","WebMediaCache","constructor","
|
|
1
|
+
{"version":3,"names":["DefaultEventDispatcher","THEOplayerWeb","WebCachingTaskAdapter","CacheEventType","WebMediaCache","constructor","cache","tasks","addEventListener","onAddTask","onRemoveTask","event","dispatchEvent","type","addtask","task","date","removetask","createTask","source","parameters","Promise","resolve","status","map","MediaCache","window"],"sourceRoot":"../../../../src","sources":["internal/cache/MediaCache.web.ts"],"mappings":"AAEA,SAASA,sBAAsB,QAAQ,yCAAyC;AAKhF,OAAO,KAAKC,aAAa,MAAM,YAAY;AAC3C,SAASC,qBAAqB,QAAQ,yBAAyB;AAE/D,SAASC,cAAc,QAAQ,yBAAyB;AAExD,OAAO,MAAMC,aAAa,SAASJ,sBAAsB,CAAyC;EAChGK,WAAWA,CAAA,EAAG;IACZ,KAAK,CAAC,CAAC;IACPJ,aAAa,CAACK,KAAK,CAACC,KAAK,CAACC,gBAAgB,CAAC,SAAS,EAAE,IAAI,CAACC,SAAS,CAAC;IACrER,aAAa,CAACK,KAAK,CAACC,KAAK,CAACC,gBAAgB,CAAC,YAAY,EAAE,IAAI,CAACE,YAAY,CAAC;EAC7E;EAEQD,SAAS,GAAIE,KAA0B,IAAK;IAClD,IAAI,CAACC,aAAa,CAAC;MACjBC,IAAI,EAAEV,cAAc,CAACW,OAAO;MAC5BC,IAAI,EAAE,IAAIb,qBAAqB,CAACS,KAAK,CAACI,IAAI,CAAC;MAC3CC,IAAI,EAAEL,KAAK,CAACK;IACd,CAAC,CAAC;EACJ,CAAC;EAEON,YAAY,GAAIC,KAA6B,IAAK;IACxD,IAAI,CAACC,aAAa,CAAC;MACjBC,IAAI,EAAEV,cAAc,CAACc,UAAU;MAC/BF,IAAI,EAAE,IAAIb,qBAAqB,CAACS,KAAK,CAACI,IAAI,CAAC;MAC3CC,IAAI,EAAEL,KAAK,CAACK;IACd,CAAC,CAAC;EACJ,CAAC;EAEDE,UAAUA,CAACC,MAAyB,EAAEC,UAAiC,EAAwB;IAC7F,OAAOC,OAAO,CAACC,OAAO,CAAC,IAAIpB,qBAAqB,CAACD,aAAa,CAACK,KAAK,CAACY,UAAU,CAACC,MAAM,EAA6BC,UAAU,CAAC,CAAC,CAAC;EAClI;EAEA,IAAIG,MAAMA,CAAA,EAAgB;IACxB,OAAOtB,aAAa,CAACK,KAAK,CAACiB,MAAM;EACnC;;EAEA;EACA,IAAIhB,KAAKA,CAAA,EAAoB;IAC3B,OAAON,aAAa,CAACK,KAAK,CAACC,KAAK,CAACiB,GAAG,CAAET,IAAI,IAAK,IAAIb,qBAAqB,CAACa,IAAI,CAAC,CAAC;EACjF;AACF;AAEA,OAAO,MAAMU,UAAU,GAAG,IAAIrB,aAAa,CAAC,CAAC;;AAE7C;AACA;AACAsB,MAAM,CAACD,UAAU,GAAGA,UAAU"}
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
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; }
|
|
2
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
3
|
-
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); }
|
|
4
1
|
import { DefaultEventDispatcher } from '../adapter/event/DefaultEventDispatcher';
|
|
5
2
|
import { NativeModules } from 'react-native';
|
|
6
3
|
import { fromNativeCachingTaskParameters } from "./NativeCachingTaskParametersAdapter";
|
|
@@ -8,17 +5,6 @@ const NativeCacheModule = NativeModules.THEORCTCacheModule;
|
|
|
8
5
|
export class NativeCachingTaskAdapter extends DefaultEventDispatcher {
|
|
9
6
|
constructor(task) {
|
|
10
7
|
super();
|
|
11
|
-
_defineProperty(this, "bytes", void 0);
|
|
12
|
-
_defineProperty(this, "bytesCached", void 0);
|
|
13
|
-
_defineProperty(this, "cached", void 0);
|
|
14
|
-
_defineProperty(this, "duration", void 0);
|
|
15
|
-
_defineProperty(this, "id", void 0);
|
|
16
|
-
_defineProperty(this, "license", void 0);
|
|
17
|
-
_defineProperty(this, "parameters", void 0);
|
|
18
|
-
_defineProperty(this, "percentageCached", void 0);
|
|
19
|
-
_defineProperty(this, "secondsCached", void 0);
|
|
20
|
-
_defineProperty(this, "source", void 0);
|
|
21
|
-
_defineProperty(this, "status", void 0);
|
|
22
8
|
this.bytes = task.bytes;
|
|
23
9
|
this.cached = {
|
|
24
10
|
...task.cached
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["DefaultEventDispatcher","NativeModules","fromNativeCachingTaskParameters","NativeCacheModule","THEORCTCacheModule","NativeCachingTaskAdapter","constructor","task","
|
|
1
|
+
{"version":3,"names":["DefaultEventDispatcher","NativeModules","fromNativeCachingTaskParameters","NativeCacheModule","THEORCTCacheModule","NativeCachingTaskAdapter","constructor","task","bytes","cached","duration","id","bytesCached","license","renew","drmConfiguration","renewLicense","parameters","percentageCached","secondsCached","source","status","pause","pauseCachingTask","remove","removeCachingTask","start","startCachingTask"],"sourceRoot":"../../../../src","sources":["internal/cache/NativeCachingTaskAdapter.ts"],"mappings":"AAAA,SAASA,sBAAsB,QAAQ,yCAAyC;AAUhF,SAASC,aAAa,QAAQ,cAAc;AAE5C,SAASC,+BAA+B,QAAqC,sCAAsC;AAEnH,MAAMC,iBAAiB,GAAGF,aAAa,CAACG,kBAAkB;AAwB1D,OAAO,MAAMC,wBAAwB,SAASL,sBAAsB,CAA6C;EAa/GM,WAAWA,CAACC,IAAuB,EAAE;IACnC,KAAK,CAAC,CAAC;IACP,IAAI,CAACC,KAAK,GAAGD,IAAI,CAACC,KAAK;IACvB,IAAI,CAACC,MAAM,GAAG;MAAE,GAAGF,IAAI,CAACE;IAAO,CAAC;IAChC,IAAI,CAACC,QAAQ,GAAGH,IAAI,CAACG,QAAQ;IAC7B,IAAI,CAACC,EAAE,GAAGJ,IAAI,CAACI,EAAE;IACjB,IAAI,CAACC,WAAW,GAAGL,IAAI,CAACK,WAAW;IACnC,IAAI,CAACC,OAAO,GAAG;MACbC,KAAKA,CAACC,gBAAmC,EAAE;QACzCZ,iBAAiB,CAACa,YAAY,CAACT,IAAI,CAACI,EAAE,EAAEI,gBAAgB,CAAC;MAC3D;IACF,CAAC;IACD,IAAI,CAACE,UAAU,GAAGf,+BAA+B,CAACK,IAAI,CAACU,UAAU,CAAC;IAClE,IAAI,CAACC,gBAAgB,GAAGX,IAAI,CAACW,gBAAgB;IAC7C,IAAI,CAACC,aAAa,GAAGZ,IAAI,CAACY,aAAa;IACvC;IACA,IAAI,CAACC,MAAM,GAAG;MAAE,GAAGb,IAAI,CAACa;IAAO,CAAC;IAChC,IAAI,CAACC,MAAM,GAAGd,IAAI,CAACc,MAAM;EAC3B;EAEAC,KAAKA,CAAA,EAAS;IACZnB,iBAAiB,CAACoB,gBAAgB,CAAC,IAAI,CAACZ,EAAE,CAAC;EAC7C;EAEAa,MAAMA,CAAA,EAAS;IACbrB,iBAAiB,CAACsB,iBAAiB,CAAC,IAAI,CAACd,EAAE,CAAC;EAC9C;EAEAe,KAAKA,CAAA,EAAS;IACZvB,iBAAiB,CAACwB,gBAAgB,CAAC,IAAI,CAAChB,EAAE,CAAC;EAC7C;AACF"}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
export function fromNativeCachingTaskParameters(parameters) {
|
|
2
2
|
return {
|
|
3
3
|
amount: parameters.amount,
|
|
4
|
-
expirationDate: parameters
|
|
4
|
+
expirationDate: parameters?.expirationDate ? new Date(parameters?.expirationDate) : undefined,
|
|
5
5
|
bandwidth: parameters.bandwidth,
|
|
6
6
|
preferredTrackSelection: parameters.preferredTrackSelection,
|
|
7
7
|
allowsCellularAccess: parameters.allowsCellularAccess
|
|
8
8
|
};
|
|
9
9
|
}
|
|
10
10
|
export function toNativeCachingTaskParameters(parameters) {
|
|
11
|
-
var _parameters$expiratio;
|
|
12
11
|
return {
|
|
13
12
|
amount: parameters.amount,
|
|
14
|
-
expirationDate: parameters
|
|
13
|
+
expirationDate: parameters?.expirationDate?.getTime(),
|
|
15
14
|
bandwidth: parameters.bandwidth,
|
|
16
15
|
preferredTrackSelection: parameters.preferredTrackSelection,
|
|
17
16
|
allowsCellularAccess: parameters.allowsCellularAccess
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["fromNativeCachingTaskParameters","parameters","amount","expirationDate","Date","undefined","bandwidth","preferredTrackSelection","allowsCellularAccess","toNativeCachingTaskParameters","
|
|
1
|
+
{"version":3,"names":["fromNativeCachingTaskParameters","parameters","amount","expirationDate","Date","undefined","bandwidth","preferredTrackSelection","allowsCellularAccess","toNativeCachingTaskParameters","getTime"],"sourceRoot":"../../../../src","sources":["internal/cache/NativeCachingTaskParametersAdapter.ts"],"mappings":"AAaA,OAAO,SAASA,+BAA+BA,CAACC,UAAuC,EAAyB;EAC9G,OAAO;IACLC,MAAM,EAAED,UAAU,CAACC,MAAM;IACzBC,cAAc,EAAEF,UAAU,EAAEE,cAAc,GAAE,IAAIC,IAAI,CAACH,UAAU,EAAEE,cAAc,CAAC,GAAGE,SAAS;IAC5FC,SAAS,EAAEL,UAAU,CAACK,SAAS;IAC/BC,uBAAuB,EAAEN,UAAU,CAACM,uBAAuB;IAC3DC,oBAAoB,EAAEP,UAAU,CAACO;EACnC,CAAC;AACH;AAEA,OAAO,SAASC,6BAA6BA,CAACR,UAAiC,EAA+B;EAC5G,OAAO;IACLC,MAAM,EAAED,UAAU,CAACC,MAAM;IACzBC,cAAc,EAAEF,UAAU,EAAEE,cAAc,EAAEO,OAAO,CAAC,CAAC;IACrDJ,SAAS,EAAEL,UAAU,CAACK,SAAS;IAC/BC,uBAAuB,EAAEN,UAAU,CAACM,uBAAuB;IAC3DC,oBAAoB,EAAEP,UAAU,CAACO;EACnC,CAAC;AACH"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["WebCachingTaskAdapter","constructor","webCachingTask","bytes","bytesCached","cached","fromTimeRanges","duration","id","license","parameters","percentageCached","secondsCached","source","status","start","pause","remove","addEventListener","type","listener","removeEventListener","timeRanges","result","i","length","push","end"],"
|
|
1
|
+
{"version":3,"names":["WebCachingTaskAdapter","constructor","webCachingTask","bytes","bytesCached","cached","fromTimeRanges","duration","id","license","parameters","percentageCached","secondsCached","source","status","start","pause","remove","addEventListener","type","listener","removeEventListener","timeRanges","result","i","length","push","end"],"sourceRoot":"../../../../src","sources":["internal/cache/WebCachingTaskAdapter.ts"],"mappings":"AAcA,OAAO,MAAMA,qBAAqB,CAAwB;EACxDC,WAAWA,CAASC,cAA8B,EAAE;IAAA,KAAhCA,cAA8B,GAA9BA,cAA8B;EAAG;EAErD,IAAIC,KAAKA,CAAA,EAAW;IAClB,OAAO,IAAI,CAACD,cAAc,CAACC,KAAK;EAClC;EAEA,IAAIC,WAAWA,CAAA,EAAW;IACxB,OAAO,IAAI,CAACF,cAAc,CAACE,WAAW;EACxC;EAEA,IAAIC,MAAMA,CAAA,EAAgB;IACxB,OAAOC,cAAc,CAAC,IAAI,CAACJ,cAAc,CAACG,MAAM,CAAC;EACnD;EAEA,IAAIE,QAAQA,CAAA,EAAW;IACrB,OAAO,IAAI,CAACL,cAAc,CAACK,QAAQ;EACrC;EAEA,IAAIC,EAAEA,CAAA,EAAW;IACf,OAAO,IAAI,CAACN,cAAc,CAACM,EAAE;EAC/B;EAEA,IAAIC,OAAOA,CAAA,EAAuB;IAChC,OAAO,IAAI,CAACP,cAAc,CAACO,OAAO;EACpC;EAEA,IAAIC,UAAUA,CAAA,EAA0B;IACtC,OAAO,IAAI,CAACR,cAAc,CAACQ,UAAU;EACvC;EAEA,IAAIC,gBAAgBA,CAAA,EAAW;IAC7B,OAAO,IAAI,CAACT,cAAc,CAACS,gBAAgB;EAC7C;EAEA,IAAIC,aAAaA,CAAA,EAAW;IAC1B,OAAO,IAAI,CAACV,cAAc,CAACU,aAAa;EAC1C;EAEA,IAAIC,MAAMA,CAAA,EAAsB;IAC9B,OAAO,IAAI,CAACX,cAAc,CAACW,MAAM;EACnC;EAEA,IAAIC,MAAMA,CAAA,EAAoB;IAC5B,OAAO,IAAI,CAACZ,cAAc,CAACY,MAAM;EACnC;EAEAC,KAAKA,CAAA,EAAS;IACZ,IAAI,CAACb,cAAc,CAACa,KAAK,CAAC,CAAC;EAC7B;EAEAC,KAAKA,CAAA,EAAS;IACZ,IAAI,CAACd,cAAc,CAACc,KAAK,CAAC,CAAC;EAC7B;EAEAC,MAAMA,CAAA,EAAS;IACb,IAAI,CAACf,cAAc,CAACe,MAAM,CAAC,CAAC;EAC9B;EAEAC,gBAAgBA,CAAiDC,IAAqB,EAAEC,QAAmD,EAAE;IAC3I,IAAI,CAAClB,cAAc,CAACgB,gBAAgB,CAACC,IAAI,EAAEC,QAAwD,CAAC;EACtG;EAEAC,mBAAmBA,CACjBF,IAAqB,EACrBC,QAAmD,EAC7C;IACN,IAAI,CAAClB,cAAc,CAACmB,mBAAmB,CAACF,IAAI,EAAEC,QAAwD,CAAC;EACzG;AACF;AAEA,SAASd,cAAcA,CAACgB,UAAsB,EAAe;EAC3D,MAAMC,MAAmB,GAAG,EAAE;EAC9B,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGF,UAAU,CAACG,MAAM,EAAED,CAAC,EAAE,EAAE;IAC1CD,MAAM,CAACG,IAAI,CAAC;MACVX,KAAK,EAAEO,UAAU,CAACP,KAAK,CAACS,CAAC,CAAC,GAAG,GAAG;MAChCG,GAAG,EAAEL,UAAU,CAACK,GAAG,CAACH,CAAC,CAAC,GAAG;IAC3B,CAAC,CAAC;EACJ;EACA,OAAOD,MAAM;AACf"}
|