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 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../../src","sources":["api/source/ads/ssai/ImagineServerSideAdInsertionConfiguration.ts"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../../src","sources":["api/source/ads/ssai/ServerSideAdInsertionConfiguration.ts"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../../src","sources":["api/source/ads/ssai/YospaceServerSideAdInsertionConfiguration.ts"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../../src","sources":["api/source/ads/ssai/barrel.ts"],"mappings":"AAAA,cAAc,0BAA0B;AACxC,cAAc,6CAA6C;AAC3D,cAAc,sCAAsC;AACpD,cAAc,6CAA6C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["api/source/analytics/AnalyticsDescription.ts"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["api/source/analytics/barrel.ts"],"mappings":"AAAA,cAAc,wBAAwB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["api/source/barrel.ts"],"mappings":"AAAA,cAAc,cAAc;AAC5B,cAAc,oBAAoB;AAClC,cAAc,cAAc;AAC5B,cAAc,eAAe;AAC7B,cAAc,cAAc;AAC5B,cAAc,mBAAmB;AACjC,cAAc,qBAAqB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["api/source/dash/DashPlaybackConfiguration.ts"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["api/source/dash/barrel.ts"],"mappings":"AAAA,cAAc,6BAA6B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["api/source/drm/DRMConfiguration.ts"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["api/source/drm/barrel.ts"],"mappings":"AAAA,cAAc,oBAAoB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["api/source/hls/HlsPlaybackConfiguration.ts"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["api/source/hls/barrel.ts"],"mappings":"AAAA,cAAc,4BAA4B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["api/source/metadata/MetadataDescription.ts"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["api/source/metadata/barrel.ts"],"mappings":"AAAA,cAAc,uBAAuB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["api/timeranges/TimeRange.ts"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["api/timeranges/barrel.ts"],"mappings":"AAAA,cAAc,aAAa"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["isDateRangeCue","cue","customAttributes","undefined"],"
|
|
1
|
+
{"version":3,"names":["isDateRangeCue","cue","customAttributes","undefined"],"sourceRoot":"../../../../src","sources":["api/track/DateRangeCue.ts"],"mappings":"AAEA;AACA;AACA;AACA;AACA;;AA8DA;AACA;AACA;AACA,OAAO,SAASA,cAAcA,CAACC,GAAiB,EAAuB;EACrE,OAAQA,GAAG,CAAkBC,gBAAgB,IAAIC,SAAS;AAC5D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["findMediaTrackByUid","mediaTracks","uid","find","track","findQualityByUid","mediaTrack","qualities","quality","findQualitiesByUid","Array","isArray","filter","includes","undefined"],"
|
|
1
|
+
{"version":3,"names":["findMediaTrackByUid","mediaTracks","uid","find","track","findQualityByUid","mediaTrack","qualities","quality","findQualitiesByUid","Array","isArray","filter","includes","undefined"],"sourceRoot":"../../../../src","sources":["api/track/MediaTrack.ts"],"mappings":"AAKA;AACA;AACA;AACA;AACA;;AAgDA,OAAO,SAASA,mBAAmBA,CAACC,WAAyB,EAAEC,GAAuB,EAA0B;EAC9G,OAAOD,WAAW,CAACE,IAAI,CAAEC,KAAK,IAAKA,KAAK,CAACF,GAAG,KAAKA,GAAG,CAAC;AACvD;AAEA,OAAO,SAASG,gBAAgBA,CAACC,UAAsB,EAAEJ,GAAuB,EAAuB;EACrG,OAAOI,UAAU,CAACC,SAAS,CAACJ,IAAI,CAAEK,OAAO,IAAKA,OAAO,CAACN,GAAG,KAAKA,GAAG,CAAC;AACpE;AAEA,OAAO,SAASO,kBAAkBA,CAACH,UAAkC,EAAEJ,GAAkC,EAAyB;EAChI,IAAIA,GAAG,IAAII,UAAU,EAAE;IACrB,IAAII,KAAK,CAACC,OAAO,CAACT,GAAG,CAAC,EAAE;MACtB,OAAOI,UAAU,CAACC,SAAS,CAACK,MAAM,CAAEJ,OAAO,IAAKN,GAAG,CAACW,QAAQ,CAACL,OAAO,CAACN,GAAG,CAAC,CAAC;IAC5E,CAAC,MAAM;MACL,MAAMM,OAAO,GAAGH,gBAAgB,CAACC,UAAU,EAAEJ,GAAG,CAAC;MACjD,OAAOM,OAAO,GAAG,CAACA,OAAO,CAAC,GAAGM,SAAS;IACxC;EACF;EACA,OAAOA,SAAS;AAClB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["api/track/Quality.ts"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["TextTrackType","TextTrackKind","TextTrackMode","filterRenderableTracks","textTracks","filter","textTrack","kind","filterThumbnailTracks","find","isThumbnailTrack","label","hasTextTrackCue","cue","cues","c","uid","removeTextTrackCue","addTextTrackCue","push","findTextTrackByUid","t"],"
|
|
1
|
+
{"version":3,"names":["TextTrackType","TextTrackKind","TextTrackMode","filterRenderableTracks","textTracks","filter","textTrack","kind","filterThumbnailTracks","find","isThumbnailTrack","label","hasTextTrackCue","cue","cues","c","uid","removeTextTrackCue","addTextTrackCue","push","findTextTrackByUid","t"],"sourceRoot":"../../../../src","sources":["api/track/TextTrack.ts"],"mappings":"AAGA,WAAYA,aAAa,0BAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAA,OAAbA,aAAa;AAAA;AAWzB,WAAYC,aAAa,0BAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAA,OAAbA,aAAa;AAAA;AASzB,WAAYC,aAAa,0BAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAA,OAAbA,aAAa;AAAA;AA8EzB;AACA;AACA;AACA;AACA,OAAO,SAASC,sBAAsBA,CAACC,UAAmC,EAA2B;EACnG,OAAOA,UAAU,IAAIA,UAAU,CAACC,MAAM,CAAEC,SAAS,IAAKA,SAAS,CAACC,IAAI,KAAK,WAAW,IAAID,SAAS,CAACC,IAAI,KAAK,UAAU,CAAC;AACxH;;AAEA;AACA;AACA;AACA,OAAO,SAASC,qBAAqBA,CAACJ,UAAmC,EAAyB;EAChG,OAAOA,UAAU,IAAIA,UAAU,CAACK,IAAI,CAACC,gBAAgB,CAAC;AACxD;;AAEA;AACA;AACA;AACA,OAAO,SAASA,gBAAgBA,CAACJ,SAAgC,EAAW;EAC1E,OAAO,CAAC,CAACA,SAAS,KAAKA,SAAS,CAACC,IAAI,KAAK,YAAY,IAAKD,SAAS,CAACC,IAAI,KAAK,UAAU,IAAID,SAAS,CAACK,KAAK,KAAK,YAAa,CAAC;AAChI;AAEA,OAAO,SAASC,eAAeA,CAACN,SAAoB,EAAEO,GAAiB,EAAW;EAChF,OAAO,CAAC,EAAEP,SAAS,CAACQ,IAAI,IAAID,GAAG,IAAIP,SAAS,CAACQ,IAAI,CAACL,IAAI,CAAEM,CAAC,IAAKF,GAAG,CAACG,GAAG,KAAKD,CAAC,CAACC,GAAG,CAAC,CAAC;AACnF;AAEA,OAAO,SAASC,kBAAkBA,CAACX,SAAqB,EAAEO,GAAkB,EAAE;EAC5E,IAAIP,SAAS,IAAIA,SAAS,CAACQ,IAAI,IAAID,GAAG,IAAID,eAAe,CAACN,SAAS,EAAEO,GAAG,CAAC,EAAE;IACzEP,SAAS,CAACQ,IAAI,GAAGR,SAAS,CAACQ,IAAI,CAACT,MAAM,CAAEU,CAAC,IAAKA,CAAC,CAACC,GAAG,KAAKH,GAAG,CAACG,GAAG,CAAC;EAClE;AACF;AAEA,OAAO,SAASE,eAAeA,CAACZ,SAAqB,EAAEO,GAAkB,EAAE;EACzE,IAAIP,SAAS,IAAIA,SAAS,CAACQ,IAAI,IAAID,GAAG,IAAI,CAACD,eAAe,CAACN,SAAS,EAAEO,GAAG,CAAC,EAAE;IAC1EP,SAAS,CAACQ,IAAI,CAACK,IAAI,CAACN,GAAG,CAAC;EAC1B;AACF;AAEA,OAAO,SAASO,kBAAkBA,CAAChB,UAAuB,EAAEY,GAAW,EAAyB;EAC9F,OAAOZ,UAAU,CAACK,IAAI,CAAEY,CAAC,IAAKA,CAAC,CAACL,GAAG,KAAKA,GAAG,CAAC;AAC9C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["api/track/TextTrackCue.ts"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["EdgeStyle"],"
|
|
1
|
+
{"version":3,"names":["EdgeStyle"],"sourceRoot":"../../../../src","sources":["api/track/TextTrackStyle.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;;AAgGA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,WAAYA,SAAS,0BAATA,SAAS;EAATA,SAAS;EAATA,SAAS;EAATA,SAAS;EAATA,SAAS;EAATA,SAAS;EAAA,OAATA,SAAS;AAAA"}
|
|
@@ -17,6 +17,6 @@ export function addTrack(trackList, track) {
|
|
|
17
17
|
return trackList && track && !hasTrack(trackList, track) ? sortTracks([...trackList, track]) : trackList;
|
|
18
18
|
}
|
|
19
19
|
export function sortTracks(trackList) {
|
|
20
|
-
return
|
|
20
|
+
return trackList?.sort((t1, t2) => t1.uid - t2.uid) || [];
|
|
21
21
|
}
|
|
22
22
|
//# sourceMappingURL=Track.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["hasTrack","trackList","track","find","t","uid","removeTrack","filter","addTrack","sortTracks","sort","t1","t2"],"
|
|
1
|
+
{"version":3,"names":["hasTrack","trackList","track","find","t","uid","removeTrack","filter","addTrack","sortTracks","sort","t1","t2"],"sourceRoot":"../../../../src","sources":["api/track/Track.ts"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAyCA,OAAO,SAASA,QAAQA,CAAuBC,SAAmB,EAAEC,KAAa,EAAW;EAC1F,OAAO,CAAC,EAAED,SAAS,IAAIC,KAAK,IAAID,SAAS,CAACE,IAAI,CAAEC,CAAC,IAAKA,CAAC,CAACC,GAAG,KAAKH,KAAK,CAACG,GAAG,CAAC,CAAC;AAC7E;AAEA,OAAO,SAASC,WAAWA,CAAuBL,SAAmB,EAAEC,KAAa,EAAY;EAC9F,OAAOD,SAAS,IAAIC,KAAK,GAAGD,SAAS,CAACM,MAAM,CAAEH,CAAC,IAAKA,CAAC,CAACC,GAAG,KAAKH,KAAK,CAACG,GAAG,CAAC,GAAGJ,SAAS;AACtF;AAEA,OAAO,SAASO,QAAQA,CAAuBP,SAAmB,EAAEC,KAAa,EAAY;EAC3F,OAAOD,SAAS,IAAIC,KAAK,IAAI,CAACF,QAAQ,CAACC,SAAS,EAAEC,KAAK,CAAC,GAAGO,UAAU,CAAC,CAAC,GAAGR,SAAS,EAAEC,KAAK,CAAC,CAAC,GAAGD,SAAS;AAC1G;AAEA,OAAO,SAASQ,UAAUA,CAAuBR,SAAoB,EAAY;EAC/E,OAAOA,SAAS,EAAES,IAAI,CAAC,CAACC,EAAU,EAAEC,EAAU,KAAKD,EAAE,CAACN,GAAG,GAAGO,EAAE,CAACP,GAAG,CAAC,IAAI,EAAE;AAC3E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["api/track/barrel.ts"],"mappings":"AAAA,cAAc,cAAc;AAC5B,cAAc,WAAW;AACzB,cAAc,aAAa;AAC3B,cAAc,gBAAgB;AAC9B,cAAc,SAAS;AACvB,cAAc,kBAAkB;AAChC,cAAc,gBAAgB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["api/ui/UIConfiguration.ts"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["api/ui/barrel.ts"],"mappings":"AAAA,cAAc,mBAAmB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["api/utils/RetryConfiguration.ts"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["Buffer","fromObjectToString","obj","JSON","stringify","fromObjectToBase64String","fromStringToBase64String","fromObjectToUint8Array","fromStringToUint8Array","str","from","toString","fromStringToObject","parse","fromBase64StringToUint8Array","fromUint8ArrayToBase64String","array","fromUint8ArrayToString","fromUint8ArrayToObject"],"
|
|
1
|
+
{"version":3,"names":["Buffer","fromObjectToString","obj","JSON","stringify","fromObjectToBase64String","fromStringToBase64String","fromObjectToUint8Array","fromStringToUint8Array","str","from","toString","fromStringToObject","parse","fromBase64StringToUint8Array","fromUint8ArrayToBase64String","array","fromUint8ArrayToString","fromUint8ArrayToObject"],"sourceRoot":"../../../../src","sources":["api/utils/TypeUtils.ts"],"mappings":"AAAA,SAASA,MAAM,QAAQ,QAAQ;;AAE/B;AACA,OAAO,SAASC,kBAAkBA,CAACC,GAA2B,EAAU;EACtE,OAAOC,IAAI,CAACC,SAAS,CAACF,GAAG,CAAC;AAC5B;AACA,OAAO,SAASG,wBAAwBA,CAACH,GAA2B,EAAU;EAC5E,OAAOI,wBAAwB,CAACL,kBAAkB,CAACC,GAAG,CAAC,CAAC;AAC1D;AACA,OAAO,SAASK,sBAAsBA,CAACL,GAA2B,EAAc;EAC9E,OAAOM,sBAAsB,CAACP,kBAAkB,CAACC,GAAG,CAAC,CAAC;AACxD;;AAEA;AACA,OAAO,SAASI,wBAAwBA,CAACG,GAAW,EAAU;EAC5D,OAAOT,MAAM,CAACU,IAAI,CAACD,GAAG,EAAE,MAAM,CAAC,CAACE,QAAQ,CAAC,QAAQ,CAAC;AACpD;AACA,OAAO,SAASH,sBAAsBA,CAACC,GAAW,EAAc;EAC9D,OAAOT,MAAM,CAACU,IAAI,CAACD,GAAG,EAAE,MAAM,CAAC;AACjC;AACA,OAAO,SAASG,kBAAkBA,CAACH,GAAW,EAA0B;EACtE,OAAON,IAAI,CAACU,KAAK,CAACJ,GAAG,CAAC;AACxB;;AAEA;AACA,OAAO,SAASK,4BAA4BA,CAACL,GAAW,EAAc;EACpE,OAAOT,MAAM,CAACU,IAAI,CAACD,GAAG,EAAE,QAAQ,CAAC;AACnC;;AAEA;AACA,OAAO,SAASM,4BAA4BA,CAACC,KAAiB,EAAU;EACtE,OAAOhB,MAAM,CAACU,IAAI,CAACM,KAAK,CAAC,CAACL,QAAQ,CAAC,QAAQ,CAAC;AAC9C;AACA,OAAO,SAASM,sBAAsBA,CAACD,KAAiB,EAAU;EAChE,OAAOhB,MAAM,CAACU,IAAI,CAACM,KAAK,CAAC,CAACL,QAAQ,CAAC,MAAM,CAAC;AAC5C;AACA,OAAO,SAASO,sBAAsBA,CAACF,KAAiB,EAA0B;EAChF,OAAOJ,kBAAkB,CAACK,sBAAsB,CAACD,KAAK,CAAC,CAAC;AAC1D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["api/utils/barrel.ts"],"mappings":"AAAA,cAAc,aAAa"}
|
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["THEOplayerView","ContentProtectionRegistry","MediaCache"],"
|
|
1
|
+
{"version":3,"names":["THEOplayerView","ContentProtectionRegistry","MediaCache"],"sourceRoot":"../../src","sources":["index.tsx"],"mappings":"AAAA,cAAc,cAAc;AAC5B,SAASA,cAAc,QAAQ,2BAA2B;AAC1D,SAASC,yBAAyB,QAAQ,0CAA0C;AACpF,SAASC,UAAU,QAAQ,6BAA6B"}
|
|
@@ -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 React, { PureComponent } from 'react';
|
|
5
2
|
import { Dimensions, findNodeHandle, Platform, requireNativeComponent, StyleSheet, UIManager, View } from 'react-native';
|
|
6
3
|
import { isDateRangeCue, PresentationMode } from 'react-native-theoplayer';
|
|
@@ -14,138 +11,14 @@ import { THEOplayerAdapter } from './adapter/THEOplayerAdapter';
|
|
|
14
11
|
import { getFullscreenSize } from './utils/Dimensions';
|
|
15
12
|
const INVALID_HANDLE = -1;
|
|
16
13
|
export class THEOplayerView extends PureComponent {
|
|
14
|
+
_dimensionsHandler = undefined;
|
|
15
|
+
static initialState = {
|
|
16
|
+
error: undefined,
|
|
17
|
+
presentationMode: PresentationMode.inline,
|
|
18
|
+
screenSize: getFullscreenSize()
|
|
19
|
+
};
|
|
17
20
|
constructor(props) {
|
|
18
21
|
super(props);
|
|
19
|
-
_defineProperty(this, "_root", void 0);
|
|
20
|
-
_defineProperty(this, "_facade", void 0);
|
|
21
|
-
_defineProperty(this, "_dimensionsHandler", undefined);
|
|
22
|
-
_defineProperty(this, "_onDimensionsChanged", () => {
|
|
23
|
-
this.setState({
|
|
24
|
-
screenSize: getFullscreenSize()
|
|
25
|
-
});
|
|
26
|
-
});
|
|
27
|
-
_defineProperty(this, "_onNativePlayerReady", event => {
|
|
28
|
-
var _this$props$onPlayerR, _this$props;
|
|
29
|
-
// Optionally apply an initial player state
|
|
30
|
-
const {
|
|
31
|
-
version,
|
|
32
|
-
state
|
|
33
|
-
} = event === null || event === void 0 ? void 0 : event.nativeEvent;
|
|
34
|
-
this._facade.initializeFromNativePlayer_(version, state);
|
|
35
|
-
(_this$props$onPlayerR = (_this$props = this.props).onPlayerReady) === null || _this$props$onPlayerR === void 0 || _this$props$onPlayerR.call(_this$props, this._facade);
|
|
36
|
-
});
|
|
37
|
-
_defineProperty(this, "_onSourceChange", () => {
|
|
38
|
-
this.reset();
|
|
39
|
-
this._facade.dispatchEvent(new BaseEvent(PlayerEventType.SOURCE_CHANGE));
|
|
40
|
-
});
|
|
41
|
-
_defineProperty(this, "_onLoadStart", () => {
|
|
42
|
-
this._facade.dispatchEvent(new BaseEvent(PlayerEventType.LOAD_START));
|
|
43
|
-
});
|
|
44
|
-
_defineProperty(this, "_onLoadedData", () => {
|
|
45
|
-
this._facade.dispatchEvent(new BaseEvent(PlayerEventType.LOADED_DATA));
|
|
46
|
-
});
|
|
47
|
-
_defineProperty(this, "_onLoadedMetadata", event => {
|
|
48
|
-
const nativeEvent = event.nativeEvent;
|
|
49
|
-
this._facade.dispatchEvent(new DefaultLoadedMetadataEvent(nativeEvent.textTracks, nativeEvent.audioTracks, nativeEvent.videoTracks, decodeNanInf(nativeEvent.duration), nativeEvent.selectedTextTrack, nativeEvent.selectedVideoTrack, nativeEvent.selectedAudioTrack));
|
|
50
|
-
});
|
|
51
|
-
_defineProperty(this, "_onVolumeChange", event => {
|
|
52
|
-
this._facade.dispatchEvent(new DefaultVolumeChangeEvent(event.nativeEvent.volume, event.nativeEvent.muted));
|
|
53
|
-
});
|
|
54
|
-
_defineProperty(this, "_onError", event => {
|
|
55
|
-
const {
|
|
56
|
-
error
|
|
57
|
-
} = event.nativeEvent;
|
|
58
|
-
this.setState({
|
|
59
|
-
error
|
|
60
|
-
});
|
|
61
|
-
this._facade.dispatchEvent(new DefaultErrorEvent(event.nativeEvent.error));
|
|
62
|
-
});
|
|
63
|
-
_defineProperty(this, "_onProgress", event => {
|
|
64
|
-
this._facade.dispatchEvent(new DefaultProgressEvent(event.nativeEvent.seekable, event.nativeEvent.buffered));
|
|
65
|
-
});
|
|
66
|
-
_defineProperty(this, "_onCanPlay", () => {
|
|
67
|
-
this._facade.dispatchEvent(new BaseEvent(PlayerEventType.CANPLAY));
|
|
68
|
-
});
|
|
69
|
-
_defineProperty(this, "_onPlay", () => {
|
|
70
|
-
this._facade.dispatchEvent(new BaseEvent(PlayerEventType.PLAY));
|
|
71
|
-
});
|
|
72
|
-
_defineProperty(this, "_onPlaying", () => {
|
|
73
|
-
this._facade.dispatchEvent(new BaseEvent(PlayerEventType.PLAYING));
|
|
74
|
-
});
|
|
75
|
-
_defineProperty(this, "_onPause", () => {
|
|
76
|
-
this._facade.dispatchEvent(new BaseEvent(PlayerEventType.PAUSE));
|
|
77
|
-
});
|
|
78
|
-
_defineProperty(this, "_onSeeking", () => {
|
|
79
|
-
this._facade.dispatchEvent(new BaseEvent(PlayerEventType.SEEKING));
|
|
80
|
-
});
|
|
81
|
-
_defineProperty(this, "_onSeeked", () => {
|
|
82
|
-
this._facade.dispatchEvent(new BaseEvent(PlayerEventType.SEEKED));
|
|
83
|
-
});
|
|
84
|
-
_defineProperty(this, "_onWaiting", () => {
|
|
85
|
-
this._facade.dispatchEvent(new BaseEvent(PlayerEventType.WAITING));
|
|
86
|
-
});
|
|
87
|
-
_defineProperty(this, "_onEnded", () => {
|
|
88
|
-
this._facade.dispatchEvent(new BaseEvent(PlayerEventType.ENDED));
|
|
89
|
-
});
|
|
90
|
-
_defineProperty(this, "_onReadStateChange", event => {
|
|
91
|
-
this._facade.dispatchEvent(new DefaultReadyStateChangeEvent(event.nativeEvent.readyState));
|
|
92
|
-
});
|
|
93
|
-
_defineProperty(this, "_onTimeUpdate", event => {
|
|
94
|
-
this._facade.dispatchEvent(new DefaultTimeupdateEvent(event.nativeEvent.currentTime, event.nativeEvent.currentProgramDateTime));
|
|
95
|
-
});
|
|
96
|
-
_defineProperty(this, "_onDurationChange", event => {
|
|
97
|
-
this._facade.dispatchEvent(new DefaultDurationChangeEvent(decodeNanInf(event.nativeEvent.duration)));
|
|
98
|
-
});
|
|
99
|
-
_defineProperty(this, "_onRateChange", event => {
|
|
100
|
-
this._facade.dispatchEvent(new DefaultRateChangeEvent(event.nativeEvent.playbackRate));
|
|
101
|
-
});
|
|
102
|
-
_defineProperty(this, "_onSegmentNotFound", event => {
|
|
103
|
-
const nativeEvent = event.nativeEvent;
|
|
104
|
-
this._facade.dispatchEvent(new DefaultSegmentNotFoundEvent(nativeEvent.segmentStartTime, nativeEvent.error, nativeEvent.retryCount));
|
|
105
|
-
});
|
|
106
|
-
_defineProperty(this, "_onTextTrackListEvent", event => {
|
|
107
|
-
const nativeEvent = event.nativeEvent;
|
|
108
|
-
this._facade.dispatchEvent(new DefaultTextTrackListEvent(toTrackListEventType(nativeEvent.type), nativeEvent.track));
|
|
109
|
-
});
|
|
110
|
-
_defineProperty(this, "_onTextTrackEvent", event => {
|
|
111
|
-
const nativeEvent = event.nativeEvent;
|
|
112
|
-
const cue = nativeEvent.cue;
|
|
113
|
-
if (cue) {
|
|
114
|
-
this.normalizeCue(cue);
|
|
115
|
-
}
|
|
116
|
-
this._facade.dispatchEvent(new DefaultTextTrackEvent(toTextTrackEventType(nativeEvent.type), nativeEvent.trackUid, cue));
|
|
117
|
-
});
|
|
118
|
-
_defineProperty(this, "_onMediaTrackListEvent", event => {
|
|
119
|
-
const nativeEvent = event.nativeEvent;
|
|
120
|
-
this._facade.dispatchEvent(new DefaultMediaTrackListEvent(toTrackListEventType(nativeEvent.type), toMediaTrackType(nativeEvent.trackType), nativeEvent.track));
|
|
121
|
-
});
|
|
122
|
-
_defineProperty(this, "_onMediaTrackEvent", event => {
|
|
123
|
-
const nativeEvent = event.nativeEvent;
|
|
124
|
-
this._facade.dispatchEvent(new DefaultMediaTrackEvent(toMediaTrackTypeEventType(nativeEvent.type), toMediaTrackType(nativeEvent.trackType), nativeEvent.trackUid, nativeEvent.qualities));
|
|
125
|
-
});
|
|
126
|
-
_defineProperty(this, "_onAdEvent", event => {
|
|
127
|
-
const nativeEvent = event.nativeEvent;
|
|
128
|
-
this._facade.dispatchEvent(new DefaultAdEvent(nativeEvent.type, nativeEvent.ad));
|
|
129
|
-
});
|
|
130
|
-
_defineProperty(this, "_onCastEvent", event => {
|
|
131
|
-
switch (event.nativeEvent.type) {
|
|
132
|
-
case CastEventType.CHROMECAST_STATE_CHANGE:
|
|
133
|
-
this._facade.dispatchEvent(new DefaultChromecastChangeEvent(event.nativeEvent.state));
|
|
134
|
-
break;
|
|
135
|
-
case CastEventType.AIRPLAY_STATE_CHANGE:
|
|
136
|
-
this._facade.dispatchEvent(new DefaultAirplayStateChangeEvent(event.nativeEvent.state));
|
|
137
|
-
break;
|
|
138
|
-
case CastEventType.CHROMECAST_ERROR:
|
|
139
|
-
this._facade.dispatchEvent(new DefaultChromecastErrorEvent(event.nativeEvent.error));
|
|
140
|
-
break;
|
|
141
|
-
}
|
|
142
|
-
});
|
|
143
|
-
_defineProperty(this, "_onPresentationModeChange", event => {
|
|
144
|
-
this.setState({
|
|
145
|
-
presentationMode: event.nativeEvent.presentationMode
|
|
146
|
-
});
|
|
147
|
-
this._facade.dispatchEvent(new DefaultPresentationModeChangeEvent(event.nativeEvent.presentationMode, event.nativeEvent.previousPresentationMode, event.nativeEvent.context));
|
|
148
|
-
});
|
|
149
22
|
this._root = /*#__PURE__*/React.createRef();
|
|
150
23
|
this.state = THEOplayerView.initialState;
|
|
151
24
|
this._facade = new THEOplayerAdapter(this);
|
|
@@ -154,7 +27,6 @@ export class THEOplayerView extends PureComponent {
|
|
|
154
27
|
this._dimensionsHandler = Dimensions.addEventListener('change', this._onDimensionsChanged);
|
|
155
28
|
}
|
|
156
29
|
componentWillUnmount() {
|
|
157
|
-
var _this$_dimensionsHand;
|
|
158
30
|
// Notify the player will be destroyed.
|
|
159
31
|
const {
|
|
160
32
|
onPlayerDestroy
|
|
@@ -163,7 +35,7 @@ export class THEOplayerView extends PureComponent {
|
|
|
163
35
|
onPlayerDestroy(this._facade);
|
|
164
36
|
}
|
|
165
37
|
this._facade.dispatchEvent(new BaseEvent(PlayerEventType.DESTROY));
|
|
166
|
-
|
|
38
|
+
this._dimensionsHandler?.remove();
|
|
167
39
|
if (Platform.OS === 'ios') {
|
|
168
40
|
// TODO: move to native module
|
|
169
41
|
// on iOS, we trigger an explicit 'destroy' to clean up the underlying THEOplayer
|
|
@@ -178,6 +50,101 @@ export class THEOplayerView extends PureComponent {
|
|
|
178
50
|
reset() {
|
|
179
51
|
this.setState(THEOplayerView.initialState);
|
|
180
52
|
}
|
|
53
|
+
_onDimensionsChanged = () => {
|
|
54
|
+
this.setState({
|
|
55
|
+
screenSize: getFullscreenSize()
|
|
56
|
+
});
|
|
57
|
+
};
|
|
58
|
+
_onNativePlayerReady = event => {
|
|
59
|
+
// Optionally apply an initial player state
|
|
60
|
+
const {
|
|
61
|
+
version,
|
|
62
|
+
state
|
|
63
|
+
} = event.nativeEvent;
|
|
64
|
+
this._facade.initializeFromNativePlayer_(version, state);
|
|
65
|
+
this.props.onPlayerReady?.(this._facade);
|
|
66
|
+
};
|
|
67
|
+
_onSourceChange = () => {
|
|
68
|
+
this.reset();
|
|
69
|
+
this._facade.dispatchEvent(new BaseEvent(PlayerEventType.SOURCE_CHANGE));
|
|
70
|
+
};
|
|
71
|
+
_onLoadStart = () => {
|
|
72
|
+
this._facade.dispatchEvent(new BaseEvent(PlayerEventType.LOAD_START));
|
|
73
|
+
};
|
|
74
|
+
_onLoadedData = () => {
|
|
75
|
+
this._facade.dispatchEvent(new BaseEvent(PlayerEventType.LOADED_DATA));
|
|
76
|
+
};
|
|
77
|
+
_onLoadedMetadata = event => {
|
|
78
|
+
const nativeEvent = event.nativeEvent;
|
|
79
|
+
this._facade.dispatchEvent(new DefaultLoadedMetadataEvent(nativeEvent.textTracks, nativeEvent.audioTracks, nativeEvent.videoTracks, decodeNanInf(nativeEvent.duration), nativeEvent.selectedTextTrack, nativeEvent.selectedVideoTrack, nativeEvent.selectedAudioTrack));
|
|
80
|
+
};
|
|
81
|
+
_onVolumeChange = event => {
|
|
82
|
+
this._facade.dispatchEvent(new DefaultVolumeChangeEvent(event.nativeEvent.volume, event.nativeEvent.muted));
|
|
83
|
+
};
|
|
84
|
+
_onError = event => {
|
|
85
|
+
const {
|
|
86
|
+
error
|
|
87
|
+
} = event.nativeEvent;
|
|
88
|
+
this.setState({
|
|
89
|
+
error
|
|
90
|
+
});
|
|
91
|
+
this._facade.dispatchEvent(new DefaultErrorEvent(event.nativeEvent.error));
|
|
92
|
+
};
|
|
93
|
+
_onProgress = event => {
|
|
94
|
+
this._facade.dispatchEvent(new DefaultProgressEvent(event.nativeEvent.seekable, event.nativeEvent.buffered));
|
|
95
|
+
};
|
|
96
|
+
_onCanPlay = () => {
|
|
97
|
+
this._facade.dispatchEvent(new BaseEvent(PlayerEventType.CANPLAY));
|
|
98
|
+
};
|
|
99
|
+
_onPlay = () => {
|
|
100
|
+
this._facade.dispatchEvent(new BaseEvent(PlayerEventType.PLAY));
|
|
101
|
+
};
|
|
102
|
+
_onPlaying = () => {
|
|
103
|
+
this._facade.dispatchEvent(new BaseEvent(PlayerEventType.PLAYING));
|
|
104
|
+
};
|
|
105
|
+
_onPause = () => {
|
|
106
|
+
this._facade.dispatchEvent(new BaseEvent(PlayerEventType.PAUSE));
|
|
107
|
+
};
|
|
108
|
+
_onSeeking = () => {
|
|
109
|
+
this._facade.dispatchEvent(new BaseEvent(PlayerEventType.SEEKING));
|
|
110
|
+
};
|
|
111
|
+
_onSeeked = () => {
|
|
112
|
+
this._facade.dispatchEvent(new BaseEvent(PlayerEventType.SEEKED));
|
|
113
|
+
};
|
|
114
|
+
_onWaiting = () => {
|
|
115
|
+
this._facade.dispatchEvent(new BaseEvent(PlayerEventType.WAITING));
|
|
116
|
+
};
|
|
117
|
+
_onEnded = () => {
|
|
118
|
+
this._facade.dispatchEvent(new BaseEvent(PlayerEventType.ENDED));
|
|
119
|
+
};
|
|
120
|
+
_onReadStateChange = event => {
|
|
121
|
+
this._facade.dispatchEvent(new DefaultReadyStateChangeEvent(event.nativeEvent.readyState));
|
|
122
|
+
};
|
|
123
|
+
_onTimeUpdate = event => {
|
|
124
|
+
this._facade.dispatchEvent(new DefaultTimeupdateEvent(event.nativeEvent.currentTime, event.nativeEvent.currentProgramDateTime));
|
|
125
|
+
};
|
|
126
|
+
_onDurationChange = event => {
|
|
127
|
+
this._facade.dispatchEvent(new DefaultDurationChangeEvent(decodeNanInf(event.nativeEvent.duration)));
|
|
128
|
+
};
|
|
129
|
+
_onRateChange = event => {
|
|
130
|
+
this._facade.dispatchEvent(new DefaultRateChangeEvent(event.nativeEvent.playbackRate));
|
|
131
|
+
};
|
|
132
|
+
_onSegmentNotFound = event => {
|
|
133
|
+
const nativeEvent = event.nativeEvent;
|
|
134
|
+
this._facade.dispatchEvent(new DefaultSegmentNotFoundEvent(nativeEvent.segmentStartTime, nativeEvent.error, nativeEvent.retryCount));
|
|
135
|
+
};
|
|
136
|
+
_onTextTrackListEvent = event => {
|
|
137
|
+
const nativeEvent = event.nativeEvent;
|
|
138
|
+
this._facade.dispatchEvent(new DefaultTextTrackListEvent(toTrackListEventType(nativeEvent.type), nativeEvent.track));
|
|
139
|
+
};
|
|
140
|
+
_onTextTrackEvent = event => {
|
|
141
|
+
const nativeEvent = event.nativeEvent;
|
|
142
|
+
const cue = nativeEvent.cue;
|
|
143
|
+
if (cue) {
|
|
144
|
+
this.normalizeCue(cue);
|
|
145
|
+
}
|
|
146
|
+
this._facade.dispatchEvent(new DefaultTextTrackEvent(toTextTrackEventType(nativeEvent.type), nativeEvent.trackUid, cue));
|
|
147
|
+
};
|
|
181
148
|
normalizeCue(cue) {
|
|
182
149
|
cue.startTime = decodeNanInf(cue.startTime);
|
|
183
150
|
cue.endTime = decodeNanInf(cue.endTime);
|
|
@@ -194,6 +161,37 @@ export class THEOplayerView extends PureComponent {
|
|
|
194
161
|
}
|
|
195
162
|
}
|
|
196
163
|
}
|
|
164
|
+
_onMediaTrackListEvent = event => {
|
|
165
|
+
const nativeEvent = event.nativeEvent;
|
|
166
|
+
this._facade.dispatchEvent(new DefaultMediaTrackListEvent(toTrackListEventType(nativeEvent.type), toMediaTrackType(nativeEvent.trackType), nativeEvent.track));
|
|
167
|
+
};
|
|
168
|
+
_onMediaTrackEvent = event => {
|
|
169
|
+
const nativeEvent = event.nativeEvent;
|
|
170
|
+
this._facade.dispatchEvent(new DefaultMediaTrackEvent(toMediaTrackTypeEventType(nativeEvent.type), toMediaTrackType(nativeEvent.trackType), nativeEvent.trackUid, nativeEvent.qualities));
|
|
171
|
+
};
|
|
172
|
+
_onAdEvent = event => {
|
|
173
|
+
const nativeEvent = event.nativeEvent;
|
|
174
|
+
this._facade.dispatchEvent(new DefaultAdEvent(nativeEvent.type, nativeEvent.ad));
|
|
175
|
+
};
|
|
176
|
+
_onCastEvent = event => {
|
|
177
|
+
switch (event.nativeEvent.type) {
|
|
178
|
+
case CastEventType.CHROMECAST_STATE_CHANGE:
|
|
179
|
+
this._facade.dispatchEvent(new DefaultChromecastChangeEvent(event.nativeEvent.state));
|
|
180
|
+
break;
|
|
181
|
+
case CastEventType.AIRPLAY_STATE_CHANGE:
|
|
182
|
+
this._facade.dispatchEvent(new DefaultAirplayStateChangeEvent(event.nativeEvent.state));
|
|
183
|
+
break;
|
|
184
|
+
case CastEventType.CHROMECAST_ERROR:
|
|
185
|
+
this._facade.dispatchEvent(new DefaultChromecastErrorEvent(event.nativeEvent.error));
|
|
186
|
+
break;
|
|
187
|
+
}
|
|
188
|
+
};
|
|
189
|
+
_onPresentationModeChange = event => {
|
|
190
|
+
this.setState({
|
|
191
|
+
presentationMode: event.nativeEvent.presentationMode
|
|
192
|
+
});
|
|
193
|
+
this._facade.dispatchEvent(new DefaultPresentationModeChangeEvent(event.nativeEvent.presentationMode, event.nativeEvent.previousPresentationMode, event.nativeEvent.context));
|
|
194
|
+
};
|
|
197
195
|
render() {
|
|
198
196
|
const {
|
|
199
197
|
config,
|
|
@@ -241,11 +239,6 @@ export class THEOplayerView extends PureComponent {
|
|
|
241
239
|
}), children);
|
|
242
240
|
}
|
|
243
241
|
}
|
|
244
|
-
_defineProperty(THEOplayerView, "initialState", {
|
|
245
|
-
error: undefined,
|
|
246
|
-
presentationMode: PresentationMode.inline,
|
|
247
|
-
screenSize: getFullscreenSize()
|
|
248
|
-
});
|
|
249
242
|
const LINKING_ERROR = `The package 'react-native-theoplayer' doesn't seem to be linked. Make sure: \n\n` + Platform.select({
|
|
250
243
|
ios: '- You have run \'pod install\'\n',
|
|
251
244
|
default: ''
|