react-native-theoplayer 9.4.0 → 9.5.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 +11 -0
- package/README.md +3 -2
- package/android/src/main/java/com/theoplayer/presentation/PresentationManager.kt +1 -4
- package/lib/commonjs/api/abr/ABRConfiguration.js +5 -0
- package/lib/commonjs/api/abr/ABRConfiguration.js.map +1 -1
- package/lib/commonjs/api/ads/Omid.js +15 -0
- package/lib/commonjs/api/ads/Omid.js.map +1 -1
- package/lib/commonjs/api/cache/CachingTask.js +2 -0
- package/lib/commonjs/api/cache/CachingTask.js.map +1 -1
- package/lib/commonjs/api/cache/CachingTaskParameters.js +3 -0
- package/lib/commonjs/api/cache/CachingTaskParameters.js.map +1 -1
- package/lib/commonjs/api/cache/MediaCacheAPI.js +2 -0
- package/lib/commonjs/api/cache/MediaCacheAPI.js.map +1 -1
- package/lib/commonjs/api/cache/events/CacheEvent.js +19 -2
- package/lib/commonjs/api/cache/events/CacheEvent.js.map +1 -1
- package/lib/commonjs/api/cache/events/CachingTaskEvent.js +23 -0
- package/lib/commonjs/api/cache/events/CachingTaskEvent.js.map +1 -1
- package/lib/commonjs/api/cache/hooks/useCachingTaskList.js +6 -0
- package/lib/commonjs/api/cache/hooks/useCachingTaskList.js.map +1 -1
- package/lib/commonjs/api/cache/hooks/useCachingTaskProgress.js +6 -0
- package/lib/commonjs/api/cache/hooks/useCachingTaskProgress.js.map +1 -1
- package/lib/commonjs/api/cache/hooks/useCachingTaskStatus.js +6 -0
- package/lib/commonjs/api/cache/hooks/useCachingTaskStatus.js.map +1 -1
- package/lib/commonjs/api/cast/CastState.js +1 -0
- package/lib/commonjs/api/cast/CastState.js.map +1 -1
- package/lib/commonjs/api/event/AdEvent.js +14 -0
- package/lib/commonjs/api/event/AdEvent.js.map +1 -1
- package/lib/commonjs/api/event/CastEvent.js +35 -0
- package/lib/commonjs/api/event/CastEvent.js.map +1 -1
- package/lib/commonjs/api/event/PlayerEvent.js +106 -0
- package/lib/commonjs/api/event/PlayerEvent.js.map +1 -1
- package/lib/commonjs/api/event/TheoAdsEvent.js +14 -0
- package/lib/commonjs/api/event/TheoAdsEvent.js.map +1 -1
- package/lib/commonjs/api/event/TrackEvent.js +56 -0
- package/lib/commonjs/api/event/TrackEvent.js.map +1 -1
- package/lib/commonjs/api/player/PlayerEventMap.js +10 -0
- package/lib/commonjs/api/player/PlayerEventMap.js.map +1 -1
- package/lib/commonjs/api/player/THEOplayer.js +5 -0
- package/lib/commonjs/api/player/THEOplayer.js.map +1 -1
- package/lib/commonjs/api/presentation/PresentationMode.js.map +1 -1
- package/lib/commonjs/api/source/SourceDescription.js +17 -0
- package/lib/commonjs/api/source/SourceDescription.js.map +1 -1
- package/lib/commonjs/api/source/ads/Ads.js +8 -0
- package/lib/commonjs/api/source/ads/Ads.js.map +1 -1
- package/lib/commonjs/api/source/ads/TheoAdDescription.js +1 -0
- package/lib/commonjs/api/source/ads/TheoAdDescription.js.map +1 -1
- package/lib/commonjs/api/source/cmcd/CmcdConfiguration.js +9 -0
- package/lib/commonjs/api/source/cmcd/CmcdConfiguration.js.map +1 -1
- package/lib/commonjs/api/track/DateRangeCue.js +4 -0
- package/lib/commonjs/api/track/DateRangeCue.js.map +1 -1
- package/lib/commonjs/api/track/MediaTrack.js +28 -0
- package/lib/commonjs/api/track/MediaTrack.js.map +1 -1
- package/lib/commonjs/api/track/TextTrack.js +82 -0
- package/lib/commonjs/api/track/TextTrack.js.map +1 -1
- package/lib/commonjs/api/track/TextTrackStyle.js +2 -0
- package/lib/commonjs/api/track/TextTrackStyle.js.map +1 -1
- package/lib/commonjs/api/track/Track.js +28 -0
- package/lib/commonjs/api/track/Track.js.map +1 -1
- package/lib/commonjs/internal/adapter/DefaultNativePlayerState.js +1 -0
- package/lib/commonjs/internal/adapter/DefaultNativePlayerState.js.map +1 -1
- package/lib/commonjs/internal/adapter/THEOplayerAdapter.js +4 -0
- package/lib/commonjs/internal/adapter/THEOplayerAdapter.js.map +1 -1
- package/lib/commonjs/internal/adapter/THEOplayerWebAdapter.js +3 -0
- package/lib/commonjs/internal/adapter/THEOplayerWebAdapter.js.map +1 -1
- package/lib/commonjs/internal/cache/MediaCache.js +7 -0
- package/lib/commonjs/internal/cache/MediaCache.js.map +1 -1
- package/lib/commonjs/internal/drm/ContentProtectionRegistry.js +7 -0
- package/lib/commonjs/internal/drm/ContentProtectionRegistry.js.map +1 -1
- package/lib/commonjs/manifest.json +1 -1
- package/lib/commonjs/plugins/expo/Common.js +2 -0
- package/lib/commonjs/plugins/expo/Common.js.map +1 -0
- package/lib/commonjs/plugins/expo/withCustomPod.js +32 -0
- package/lib/commonjs/plugins/expo/withCustomPod.js.map +1 -0
- package/lib/commonjs/plugins/expo/withTHEOplayer.js +6 -4
- package/lib/commonjs/plugins/expo/withTHEOplayer.js.map +1 -1
- package/lib/commonjs/plugins/expo/withTHEOplayerAndroid.js +6 -5
- package/lib/commonjs/plugins/expo/withTHEOplayerAndroid.js.map +1 -1
- package/lib/commonjs/plugins/expo/withTHEOplayerIOS.js +47 -0
- package/lib/commonjs/plugins/expo/withTHEOplayerIOS.js.map +1 -0
- package/lib/module/api/abr/ABRConfiguration.js +5 -0
- package/lib/module/api/abr/ABRConfiguration.js.map +1 -1
- package/lib/module/api/ads/Omid.js +16 -0
- package/lib/module/api/ads/Omid.js.map +1 -1
- package/lib/module/api/cache/CachingTask.js +2 -0
- package/lib/module/api/cache/CachingTask.js.map +1 -1
- package/lib/module/api/cache/CachingTaskParameters.js +3 -0
- package/lib/module/api/cache/CachingTaskParameters.js.map +1 -1
- package/lib/module/api/cache/MediaCacheAPI.js +2 -0
- package/lib/module/api/cache/MediaCacheAPI.js.map +1 -1
- package/lib/module/api/cache/events/CacheEvent.js +20 -2
- package/lib/module/api/cache/events/CacheEvent.js.map +1 -1
- package/lib/module/api/cache/events/CachingTaskEvent.js +25 -0
- package/lib/module/api/cache/events/CachingTaskEvent.js.map +1 -1
- package/lib/module/api/cache/hooks/useCachingTaskList.js +7 -0
- package/lib/module/api/cache/hooks/useCachingTaskList.js.map +1 -1
- package/lib/module/api/cache/hooks/useCachingTaskProgress.js +7 -0
- package/lib/module/api/cache/hooks/useCachingTaskProgress.js.map +1 -1
- package/lib/module/api/cache/hooks/useCachingTaskStatus.js +7 -0
- package/lib/module/api/cache/hooks/useCachingTaskStatus.js.map +1 -1
- package/lib/module/api/cast/CastState.js +1 -0
- package/lib/module/api/cast/CastState.js.map +1 -1
- package/lib/module/api/event/AdEvent.js +15 -0
- package/lib/module/api/event/AdEvent.js.map +1 -1
- package/lib/module/api/event/CastEvent.js +39 -0
- package/lib/module/api/event/CastEvent.js.map +1 -1
- package/lib/module/api/event/PlayerEvent.js +120 -0
- package/lib/module/api/event/PlayerEvent.js.map +1 -1
- package/lib/module/api/event/TheoAdsEvent.js +15 -0
- package/lib/module/api/event/TheoAdsEvent.js.map +1 -1
- package/lib/module/api/event/TrackEvent.js +63 -0
- package/lib/module/api/event/TrackEvent.js.map +1 -1
- package/lib/module/api/player/PlayerEventMap.js +10 -0
- package/lib/module/api/player/PlayerEventMap.js.map +1 -1
- package/lib/module/api/player/THEOplayer.js +5 -0
- package/lib/module/api/player/THEOplayer.js.map +1 -1
- package/lib/module/api/presentation/PresentationMode.js +0 -1
- package/lib/module/api/presentation/PresentationMode.js.map +1 -1
- package/lib/module/api/source/SourceDescription.js +18 -0
- package/lib/module/api/source/SourceDescription.js.map +1 -1
- package/lib/module/api/source/ads/Ads.js +8 -0
- package/lib/module/api/source/ads/Ads.js.map +1 -1
- package/lib/module/api/source/ads/TheoAdDescription.js +1 -0
- package/lib/module/api/source/ads/TheoAdDescription.js.map +1 -1
- package/lib/module/api/source/cmcd/CmcdConfiguration.js +9 -0
- package/lib/module/api/source/cmcd/CmcdConfiguration.js.map +1 -1
- package/lib/module/api/track/DateRangeCue.js +4 -0
- package/lib/module/api/track/DateRangeCue.js.map +1 -1
- package/lib/module/api/track/MediaTrack.js +28 -0
- package/lib/module/api/track/MediaTrack.js.map +1 -1
- package/lib/module/api/track/TextTrack.js +86 -0
- package/lib/module/api/track/TextTrack.js.map +1 -1
- package/lib/module/api/track/TextTrackStyle.js +2 -0
- package/lib/module/api/track/TextTrackStyle.js.map +1 -1
- package/lib/module/api/track/Track.js +28 -0
- package/lib/module/api/track/Track.js.map +1 -1
- package/lib/module/internal/adapter/DefaultNativePlayerState.js +1 -0
- package/lib/module/internal/adapter/DefaultNativePlayerState.js.map +1 -1
- package/lib/module/internal/adapter/THEOplayerAdapter.js +4 -0
- package/lib/module/internal/adapter/THEOplayerAdapter.js.map +1 -1
- package/lib/module/internal/adapter/THEOplayerWebAdapter.js +3 -0
- package/lib/module/internal/adapter/THEOplayerWebAdapter.js.map +1 -1
- package/lib/module/internal/cache/MediaCache.js +7 -0
- package/lib/module/internal/cache/MediaCache.js.map +1 -1
- package/lib/module/internal/drm/ContentProtectionRegistry.js +7 -0
- package/lib/module/internal/drm/ContentProtectionRegistry.js.map +1 -1
- package/lib/module/manifest.json +1 -1
- package/lib/module/plugins/expo/Common.js +2 -0
- package/lib/module/plugins/expo/Common.js.map +1 -0
- package/lib/module/plugins/expo/withCustomPod.js +27 -0
- package/lib/module/plugins/expo/withCustomPod.js.map +1 -0
- package/lib/module/plugins/expo/withTHEOplayer.js +7 -5
- package/lib/module/plugins/expo/withTHEOplayer.js.map +1 -1
- package/lib/module/plugins/expo/withTHEOplayerAndroid.js +4 -3
- package/lib/module/plugins/expo/withTHEOplayerAndroid.js.map +1 -1
- package/lib/module/plugins/expo/withTHEOplayerIOS.js +42 -0
- package/lib/module/plugins/expo/withTHEOplayerIOS.js.map +1 -0
- package/lib/typescript/api/abr/ABRConfiguration.d.ts +5 -0
- package/lib/typescript/api/abr/ABRConfiguration.d.ts.map +1 -1
- package/lib/typescript/api/ads/Ad.d.ts +9 -2
- package/lib/typescript/api/ads/Ad.d.ts.map +1 -1
- package/lib/typescript/api/ads/AdBreak.d.ts +7 -0
- package/lib/typescript/api/ads/AdBreak.d.ts.map +1 -1
- package/lib/typescript/api/ads/AdsAPI.d.ts +6 -3
- package/lib/typescript/api/ads/AdsAPI.d.ts.map +1 -1
- package/lib/typescript/api/ads/AdsConfiguration.d.ts +9 -0
- package/lib/typescript/api/ads/AdsConfiguration.d.ts.map +1 -1
- package/lib/typescript/api/ads/CompanionAd.d.ts +1 -0
- package/lib/typescript/api/ads/CompanionAd.d.ts.map +1 -1
- package/lib/typescript/api/ads/GoogleDai.d.ts +1 -0
- package/lib/typescript/api/ads/GoogleDai.d.ts.map +1 -1
- package/lib/typescript/api/ads/GoogleImaAd.d.ts +1 -0
- package/lib/typescript/api/ads/GoogleImaAd.d.ts.map +1 -1
- package/lib/typescript/api/ads/GoogleImaConfiguration.d.ts +1 -0
- package/lib/typescript/api/ads/GoogleImaConfiguration.d.ts.map +1 -1
- package/lib/typescript/api/ads/Omid.d.ts +15 -0
- package/lib/typescript/api/ads/Omid.d.ts.map +1 -1
- package/lib/typescript/api/broadcast/EventBroadcastAPI.d.ts +1 -0
- package/lib/typescript/api/broadcast/EventBroadcastAPI.d.ts.map +1 -1
- package/lib/typescript/api/cache/CachingPreferredTrackSelection.d.ts +1 -0
- package/lib/typescript/api/cache/CachingPreferredTrackSelection.d.ts.map +1 -1
- package/lib/typescript/api/cache/CachingTask.d.ts +2 -0
- package/lib/typescript/api/cache/CachingTask.d.ts.map +1 -1
- package/lib/typescript/api/cache/CachingTaskLicense.d.ts +7 -0
- package/lib/typescript/api/cache/CachingTaskLicense.d.ts.map +1 -1
- package/lib/typescript/api/cache/CachingTaskList.d.ts +7 -0
- package/lib/typescript/api/cache/CachingTaskList.d.ts.map +1 -1
- package/lib/typescript/api/cache/CachingTaskParameters.d.ts +3 -0
- package/lib/typescript/api/cache/CachingTaskParameters.d.ts.map +1 -1
- package/lib/typescript/api/cache/MediaCacheAPI.d.ts +2 -0
- package/lib/typescript/api/cache/MediaCacheAPI.d.ts.map +1 -1
- package/lib/typescript/api/cache/events/CacheEvent.d.ts +19 -2
- package/lib/typescript/api/cache/events/CacheEvent.d.ts.map +1 -1
- package/lib/typescript/api/cache/events/CachingTaskEvent.d.ts +23 -0
- package/lib/typescript/api/cache/events/CachingTaskEvent.d.ts.map +1 -1
- package/lib/typescript/api/cache/hooks/useCachingTaskList.d.ts +6 -0
- package/lib/typescript/api/cache/hooks/useCachingTaskList.d.ts.map +1 -1
- package/lib/typescript/api/cache/hooks/useCachingTaskProgress.d.ts +6 -0
- package/lib/typescript/api/cache/hooks/useCachingTaskProgress.d.ts.map +1 -1
- package/lib/typescript/api/cache/hooks/useCachingTaskStatus.d.ts +6 -0
- package/lib/typescript/api/cache/hooks/useCachingTaskStatus.d.ts.map +1 -1
- package/lib/typescript/api/cast/Airplay.d.ts +2 -1
- package/lib/typescript/api/cast/Airplay.d.ts.map +1 -1
- package/lib/typescript/api/cast/CastAPI.d.ts +3 -0
- package/lib/typescript/api/cast/CastAPI.d.ts.map +1 -1
- package/lib/typescript/api/cast/CastConfiguration.d.ts +3 -0
- package/lib/typescript/api/cast/CastConfiguration.d.ts.map +1 -1
- package/lib/typescript/api/cast/CastState.d.ts +1 -0
- package/lib/typescript/api/cast/CastState.d.ts.map +1 -1
- package/lib/typescript/api/cast/Chromecast.d.ts +7 -0
- package/lib/typescript/api/cast/Chromecast.d.ts.map +1 -1
- package/lib/typescript/api/config/PlayerConfiguration.d.ts +6 -0
- package/lib/typescript/api/config/PlayerConfiguration.d.ts.map +1 -1
- package/lib/typescript/api/drm/ContentProtectionAPI.d.ts +9 -0
- package/lib/typescript/api/drm/ContentProtectionAPI.d.ts.map +1 -1
- package/lib/typescript/api/drm/ContentProtectionIntegration.d.ts +2 -1
- package/lib/typescript/api/drm/ContentProtectionIntegration.d.ts.map +1 -1
- package/lib/typescript/api/drm/ContentProtectionIntegrationFactory.d.ts +1 -0
- package/lib/typescript/api/drm/ContentProtectionIntegrationFactory.d.ts.map +1 -1
- package/lib/typescript/api/drm/ContentProtectionRequest.d.ts +5 -0
- package/lib/typescript/api/drm/ContentProtectionRequest.d.ts.map +1 -1
- package/lib/typescript/api/drm/ContentProtectionResponse.d.ts +6 -0
- package/lib/typescript/api/drm/ContentProtectionResponse.d.ts.map +1 -1
- package/lib/typescript/api/error/ChromecastError.d.ts +4 -0
- package/lib/typescript/api/error/ChromecastError.d.ts.map +1 -1
- package/lib/typescript/api/error/PlayerError.d.ts +7 -0
- package/lib/typescript/api/error/PlayerError.d.ts.map +1 -1
- package/lib/typescript/api/event/AdEvent.d.ts +14 -0
- package/lib/typescript/api/event/AdEvent.d.ts.map +1 -1
- package/lib/typescript/api/event/CastEvent.d.ts +35 -0
- package/lib/typescript/api/event/CastEvent.d.ts.map +1 -1
- package/lib/typescript/api/event/Event.d.ts +2 -1
- package/lib/typescript/api/event/Event.d.ts.map +1 -1
- package/lib/typescript/api/event/EventDispatcher.d.ts +3 -1
- package/lib/typescript/api/event/EventDispatcher.d.ts.map +1 -1
- package/lib/typescript/api/event/EventListener.d.ts +1 -0
- package/lib/typescript/api/event/EventListener.d.ts.map +1 -1
- package/lib/typescript/api/event/PlayerEvent.d.ts +106 -0
- package/lib/typescript/api/event/PlayerEvent.d.ts.map +1 -1
- package/lib/typescript/api/event/TheoAdsEvent.d.ts +14 -0
- package/lib/typescript/api/event/TheoAdsEvent.d.ts.map +1 -1
- package/lib/typescript/api/event/TrackEvent.d.ts +56 -0
- package/lib/typescript/api/event/TrackEvent.d.ts.map +1 -1
- package/lib/typescript/api/player/PlayerEventMap.d.ts +10 -0
- package/lib/typescript/api/player/PlayerEventMap.d.ts.map +1 -1
- package/lib/typescript/api/player/PlayerVersion.d.ts +6 -0
- package/lib/typescript/api/player/PlayerVersion.d.ts.map +1 -1
- package/lib/typescript/api/player/THEOplayer.d.ts +9 -0
- package/lib/typescript/api/player/THEOplayer.d.ts.map +1 -1
- package/lib/typescript/api/presentation/PresentationMode.d.ts.map +1 -1
- package/lib/typescript/api/source/SourceDescription.d.ts +17 -0
- package/lib/typescript/api/source/SourceDescription.d.ts.map +1 -1
- package/lib/typescript/api/source/ads/Ads.d.ts +8 -0
- package/lib/typescript/api/source/ads/Ads.d.ts.map +1 -1
- package/lib/typescript/api/source/ads/IMAAdDescription.d.ts +1 -0
- package/lib/typescript/api/source/ads/IMAAdDescription.d.ts.map +1 -1
- package/lib/typescript/api/source/ads/THEOplayerAdDescription.d.ts +1 -0
- package/lib/typescript/api/source/ads/THEOplayerAdDescription.d.ts.map +1 -1
- package/lib/typescript/api/source/ads/TheoAdDescription.d.ts +1 -0
- package/lib/typescript/api/source/ads/TheoAdDescription.d.ts.map +1 -1
- package/lib/typescript/api/source/ads/ssai/GoogleDAIConfiguration.d.ts +18 -0
- package/lib/typescript/api/source/ads/ssai/GoogleDAIConfiguration.d.ts.map +1 -1
- package/lib/typescript/api/source/ads/ssai/ServerSideAdInsertionConfiguration.d.ts +11 -0
- package/lib/typescript/api/source/ads/ssai/ServerSideAdInsertionConfiguration.d.ts.map +1 -1
- package/lib/typescript/api/source/analytics/AnalyticsDescription.d.ts +2 -0
- package/lib/typescript/api/source/analytics/AnalyticsDescription.d.ts.map +1 -1
- package/lib/typescript/api/source/cmcd/CmcdConfiguration.d.ts +9 -0
- package/lib/typescript/api/source/cmcd/CmcdConfiguration.d.ts.map +1 -1
- package/lib/typescript/api/source/dash/DashPlaybackConfiguration.d.ts +2 -0
- package/lib/typescript/api/source/dash/DashPlaybackConfiguration.d.ts.map +1 -1
- package/lib/typescript/api/source/drm/DRMConfiguration.d.ts +20 -0
- package/lib/typescript/api/source/drm/DRMConfiguration.d.ts.map +1 -1
- package/lib/typescript/api/source/hls/HlsPlaybackConfiguration.d.ts +2 -0
- package/lib/typescript/api/source/hls/HlsPlaybackConfiguration.d.ts.map +1 -1
- package/lib/typescript/api/source/metadata/MetadataDescription.d.ts +1 -0
- package/lib/typescript/api/source/metadata/MetadataDescription.d.ts.map +1 -1
- package/lib/typescript/api/theoads/TheoAdsAPI.d.ts +1 -0
- package/lib/typescript/api/theoads/TheoAdsAPI.d.ts.map +1 -1
- package/lib/typescript/api/theoads/interstitial/AdBreakInterstitial.d.ts +5 -0
- package/lib/typescript/api/theoads/interstitial/AdBreakInterstitial.d.ts.map +1 -1
- package/lib/typescript/api/theoads/interstitial/Interstitial.d.ts +2 -0
- package/lib/typescript/api/theoads/interstitial/Interstitial.d.ts.map +1 -1
- package/lib/typescript/api/theoads/interstitial/OverlayInterstitial.d.ts +3 -0
- package/lib/typescript/api/theoads/interstitial/OverlayInterstitial.d.ts.map +1 -1
- package/lib/typescript/api/track/DateRangeCue.d.ts +4 -0
- package/lib/typescript/api/track/DateRangeCue.d.ts.map +1 -1
- package/lib/typescript/api/track/MediaTrack.d.ts +25 -0
- package/lib/typescript/api/track/MediaTrack.d.ts.map +1 -1
- package/lib/typescript/api/track/Quality.d.ts +3 -0
- package/lib/typescript/api/track/Quality.d.ts.map +1 -1
- package/lib/typescript/api/track/TextTrack.d.ts +79 -0
- package/lib/typescript/api/track/TextTrack.d.ts.map +1 -1
- package/lib/typescript/api/track/TextTrackCue.d.ts +1 -0
- package/lib/typescript/api/track/TextTrackCue.d.ts.map +1 -1
- package/lib/typescript/api/track/TextTrackStyle.d.ts +2 -0
- package/lib/typescript/api/track/TextTrackStyle.d.ts.map +1 -1
- package/lib/typescript/api/track/Track.d.ts +25 -0
- package/lib/typescript/api/track/Track.d.ts.map +1 -1
- package/lib/typescript/api/ui/UIConfiguration.d.ts +1 -0
- package/lib/typescript/api/ui/UIConfiguration.d.ts.map +1 -1
- package/lib/typescript/internal/adapter/DefaultNativePlayerState.d.ts +1 -0
- package/lib/typescript/internal/adapter/DefaultNativePlayerState.d.ts.map +1 -1
- package/lib/typescript/internal/adapter/THEOplayerAdapter.d.ts +1 -0
- package/lib/typescript/internal/adapter/THEOplayerAdapter.d.ts.map +1 -1
- package/lib/typescript/internal/adapter/THEOplayerWebAdapter.d.ts +1 -0
- package/lib/typescript/internal/adapter/THEOplayerWebAdapter.d.ts.map +1 -1
- package/lib/typescript/internal/cache/MediaCache.d.ts +6 -0
- package/lib/typescript/internal/cache/MediaCache.d.ts.map +1 -1
- package/lib/typescript/internal/drm/ContentProtectionRegistry.d.ts +6 -0
- package/lib/typescript/internal/drm/ContentProtectionRegistry.d.ts.map +1 -1
- package/lib/typescript/plugins/expo/Common.d.ts +13 -0
- package/lib/typescript/plugins/expo/Common.d.ts.map +1 -0
- package/lib/typescript/plugins/expo/withCustomPod.d.ts +2 -0
- package/lib/typescript/plugins/expo/withCustomPod.d.ts.map +1 -0
- package/lib/typescript/plugins/expo/withTHEOplayer.d.ts +2 -2
- package/lib/typescript/plugins/expo/withTHEOplayer.d.ts.map +1 -1
- package/lib/typescript/plugins/expo/withTHEOplayerAndroid.d.ts +2 -6
- package/lib/typescript/plugins/expo/withTHEOplayerAndroid.d.ts.map +1 -1
- package/lib/typescript/plugins/expo/withTHEOplayerIOS.d.ts +4 -0
- package/lib/typescript/plugins/expo/withTHEOplayerIOS.d.ts.map +1 -0
- package/package.json +1 -1
- package/react-native-theoplayer.podspec +18 -8
- package/src/api/abr/ABRConfiguration.ts +5 -0
- package/src/api/ads/Ad.ts +10 -3
- package/src/api/ads/AdBreak.ts +7 -0
- package/src/api/ads/AdsAPI.ts +6 -3
- package/src/api/ads/AdsConfiguration.ts +9 -0
- package/src/api/ads/CompanionAd.ts +1 -0
- package/src/api/ads/GoogleDai.ts +1 -0
- package/src/api/ads/GoogleImaAd.ts +1 -0
- package/src/api/ads/GoogleImaConfiguration.ts +1 -0
- package/src/api/ads/Omid.ts +15 -0
- package/src/api/broadcast/EventBroadcastAPI.ts +1 -0
- package/src/api/cache/CachingPreferredTrackSelection.ts +1 -0
- package/src/api/cache/CachingTask.ts +3 -0
- package/src/api/cache/CachingTaskLicense.ts +7 -0
- package/src/api/cache/CachingTaskList.ts +7 -0
- package/src/api/cache/CachingTaskParameters.ts +3 -0
- package/src/api/cache/MediaCacheAPI.ts +2 -0
- package/src/api/cache/events/CacheEvent.ts +19 -2
- package/src/api/cache/events/CachingTaskEvent.ts +23 -0
- package/src/api/cache/hooks/useCachingTaskList.ts +6 -0
- package/src/api/cache/hooks/useCachingTaskProgress.ts +6 -0
- package/src/api/cache/hooks/useCachingTaskStatus.ts +6 -0
- package/src/api/cast/Airplay.ts +3 -2
- package/src/api/cast/CastAPI.ts +3 -1
- package/src/api/cast/CastConfiguration.ts +3 -0
- package/src/api/cast/CastState.ts +1 -0
- package/src/api/cast/Chromecast.ts +7 -0
- package/src/api/config/PlayerConfiguration.ts +6 -0
- package/src/api/drm/ContentProtectionAPI.ts +10 -0
- package/src/api/drm/ContentProtectionIntegration.ts +2 -1
- package/src/api/drm/ContentProtectionIntegrationFactory.ts +1 -0
- package/src/api/drm/ContentProtectionRequest.ts +5 -0
- package/src/api/drm/ContentProtectionResponse.ts +6 -0
- package/src/api/error/ChromecastError.ts +4 -0
- package/src/api/error/PlayerError.ts +7 -0
- package/src/api/event/AdEvent.ts +14 -0
- package/src/api/event/CastEvent.ts +35 -0
- package/src/api/event/Event.ts +2 -1
- package/src/api/event/EventDispatcher.ts +3 -1
- package/src/api/event/EventListener.ts +1 -0
- package/src/api/event/PlayerEvent.ts +106 -0
- package/src/api/event/TheoAdsEvent.ts +14 -0
- package/src/api/event/TrackEvent.ts +56 -0
- package/src/api/player/PlayerEventMap.ts +10 -0
- package/src/api/player/PlayerVersion.ts +6 -0
- package/src/api/player/THEOplayer.ts +10 -0
- package/src/api/presentation/PresentationMode.ts +0 -1
- package/src/api/source/SourceDescription.ts +17 -0
- package/src/api/source/ads/Ads.ts +8 -0
- package/src/api/source/ads/IMAAdDescription.ts +1 -0
- package/src/api/source/ads/THEOplayerAdDescription.ts +1 -0
- package/src/api/source/ads/TheoAdDescription.ts +1 -0
- package/src/api/source/ads/ssai/GoogleDAIConfiguration.ts +18 -0
- package/src/api/source/ads/ssai/ServerSideAdInsertionConfiguration.ts +12 -0
- package/src/api/source/analytics/AnalyticsDescription.ts +2 -0
- package/src/api/source/cmcd/CmcdConfiguration.ts +9 -0
- package/src/api/source/dash/DashPlaybackConfiguration.ts +2 -0
- package/src/api/source/drm/DRMConfiguration.ts +20 -0
- package/src/api/source/hls/HlsPlaybackConfiguration.ts +2 -0
- package/src/api/source/metadata/MetadataDescription.ts +1 -0
- package/src/api/theoads/TheoAdsAPI.ts +1 -0
- package/src/api/theoads/interstitial/AdBreakInterstitial.ts +5 -0
- package/src/api/theoads/interstitial/Interstitial.ts +2 -0
- package/src/api/theoads/interstitial/OverlayInterstitial.ts +3 -0
- package/src/api/track/DateRangeCue.ts +4 -0
- package/src/api/track/MediaTrack.ts +25 -0
- package/src/api/track/Quality.ts +3 -0
- package/src/api/track/TextTrack.ts +79 -1
- package/src/api/track/TextTrackCue.ts +1 -0
- package/src/api/track/TextTrackStyle.ts +2 -0
- package/src/api/track/Track.ts +25 -0
- package/src/api/ui/UIConfiguration.ts +1 -0
- package/src/internal/adapter/DefaultNativePlayerState.ts +1 -0
- package/src/internal/adapter/THEOplayerAdapter.ts +5 -0
- package/src/internal/adapter/THEOplayerWebAdapter.ts +4 -0
- package/src/internal/cache/MediaCache.ts +6 -0
- package/src/internal/drm/ContentProtectionRegistry.ts +6 -0
- package/src/manifest.json +1 -1
- package/src/plugins/expo/Common.ts +20 -0
- package/src/plugins/expo/withCustomPod.ts +28 -0
- package/src/plugins/expo/withTHEOplayer.ts +7 -5
- package/src/plugins/expo/withTHEOplayerAndroid.ts +4 -9
- package/src/plugins/expo/withTHEOplayerIOS.ts +44 -0
|
@@ -150,4 +150,10 @@ export class NativeMediaCache extends DefaultEventDispatcher<CacheEventMap> impl
|
|
|
150
150
|
}
|
|
151
151
|
}
|
|
152
152
|
|
|
153
|
+
/**
|
|
154
|
+
* The media cache API.
|
|
155
|
+
*
|
|
156
|
+
* @category Caching
|
|
157
|
+
* @public
|
|
158
|
+
*/
|
|
153
159
|
export const MediaCache: MediaCacheAPI = new NativeMediaCache();
|
|
@@ -172,4 +172,10 @@ export class NativeContentProtectionRegistry implements ContentProtectionAPI {
|
|
|
172
172
|
};
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
+
/**
|
|
176
|
+
* The registry for adding custom content protection (DRM) integrations.
|
|
177
|
+
*
|
|
178
|
+
* @category Content Protection
|
|
179
|
+
* @public
|
|
180
|
+
*/
|
|
175
181
|
export const ContentProtectionRegistry: ContentProtectionAPI = new NativeContentProtectionRegistry();
|
package/src/manifest.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"9.
|
|
1
|
+
{"version":"9.5.0","buildDate":"2025-06-20T10:02:00.763Z"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type Extension = 'ima' | 'dai' | 'cast' | 'theoads' | 'millicast' | 'sideloaded-texttracks';
|
|
2
|
+
|
|
3
|
+
export interface THEOplayerPluginAndroidProps {
|
|
4
|
+
extensions?: Extension[];
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export interface THEOplayerPluginIOSProps {
|
|
8
|
+
extensions?: Extension[];
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export interface THEOplayerPluginProps {
|
|
12
|
+
// Top-level extensions
|
|
13
|
+
extensions?: Extension[];
|
|
14
|
+
|
|
15
|
+
// Per-platform extensions, specific for Android
|
|
16
|
+
android?: THEOplayerPluginAndroidProps;
|
|
17
|
+
|
|
18
|
+
// Per-platform extensions, specific for iOS
|
|
19
|
+
ios?: THEOplayerPluginIOSProps;
|
|
20
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { withDangerousMod } from '@expo/config-plugins';
|
|
2
|
+
import fs from 'fs';
|
|
3
|
+
import path from 'path';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Add a custom pod-line to Podfile.
|
|
7
|
+
*/
|
|
8
|
+
function addPodToPodfile(contents: string, podLine: string) {
|
|
9
|
+
const lines = contents.split('\n');
|
|
10
|
+
const targetIndex = lines.findIndex((line: string) => line.trim().startsWith("target '")) + 1;
|
|
11
|
+
if (targetIndex > 0 && !lines.includes(podLine)) {
|
|
12
|
+
lines.splice(targetIndex, 0, podLine);
|
|
13
|
+
}
|
|
14
|
+
return lines.join('\n');
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export const withCustomPod = (config: any, podLine: string) => {
|
|
18
|
+
return withDangerousMod(config, [
|
|
19
|
+
'ios',
|
|
20
|
+
async (config) => {
|
|
21
|
+
const podfilePath = path.join(config.modRequest.projectRoot, 'ios', 'Podfile');
|
|
22
|
+
const contents = fs.readFileSync(podfilePath, 'utf8');
|
|
23
|
+
const newContents = addPodToPodfile(contents, podLine);
|
|
24
|
+
fs.writeFileSync(podfilePath, newContents);
|
|
25
|
+
return config;
|
|
26
|
+
},
|
|
27
|
+
]);
|
|
28
|
+
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { ConfigPlugin } from '@expo/config-plugins';
|
|
2
|
-
import {
|
|
2
|
+
import { withTHEOplayerAndroid } from './withTHEOplayerAndroid';
|
|
3
|
+
import { withTHEOplayerIOS } from './withTHEOplayerIOS';
|
|
3
4
|
|
|
4
|
-
const
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
const withTHEOplayerWrapper: ConfigPlugin = (config, props: any) => {
|
|
6
|
+
config = withTHEOplayerAndroid(config, props);
|
|
7
|
+
config = withTHEOplayerIOS(config, props);
|
|
8
|
+
return config;
|
|
7
9
|
};
|
|
8
10
|
|
|
9
|
-
export default
|
|
11
|
+
export default withTHEOplayerWrapper;
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import { ConfigPlugin, withProjectBuildGradle, withGradleProperties } from '@expo/config-plugins';
|
|
2
2
|
import { PropertiesItem } from '@expo/config-plugins/build/android/Properties';
|
|
3
|
-
|
|
4
|
-
type Extension = 'ima' | 'dai' | 'cast' | 'theoads' | 'millicast';
|
|
5
|
-
|
|
6
|
-
interface THEOplayerPluginProps {
|
|
7
|
-
extensions?: Extension[];
|
|
8
|
-
}
|
|
3
|
+
import { THEOplayerPluginProps, Extension } from './Common';
|
|
9
4
|
|
|
10
5
|
function mapAndroidExtensionKey(ext: Extension): string | undefined {
|
|
11
6
|
switch (ext) {
|
|
@@ -37,11 +32,11 @@ const applyAndroidExtensions: ConfigPlugin<THEOplayerPluginProps['extensions']>
|
|
|
37
32
|
});
|
|
38
33
|
};
|
|
39
34
|
|
|
40
|
-
export const
|
|
41
|
-
const { extensions } = props;
|
|
35
|
+
export const withTHEOplayerAndroid: ConfigPlugin<THEOplayerPluginProps> = (config, props = {}) => {
|
|
36
|
+
const { extensions, android } = props;
|
|
42
37
|
|
|
43
38
|
// Apply Android extensions
|
|
44
|
-
config = applyAndroidExtensions(config, extensions);
|
|
39
|
+
config = applyAndroidExtensions(config, android?.extensions ?? extensions);
|
|
45
40
|
|
|
46
41
|
// Add THEOplayer and local Maven repos to the project's repositories
|
|
47
42
|
return withProjectBuildGradle(config, (config) => {
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { ConfigPlugin } from '@expo/config-plugins';
|
|
2
|
+
import { Extension, THEOplayerPluginProps } from './Common';
|
|
3
|
+
import { withCustomPod } from './withCustomPod';
|
|
4
|
+
|
|
5
|
+
const CAST_POD_LINE = ` pod 'react-native-google-cast', :git => 'https://github.com/Danesz/react-native-google-cast.git', branch: 'feature/guestmode_apple_silicon'`;
|
|
6
|
+
|
|
7
|
+
function mapIOSExtensionKey(ext: Extension): string | undefined {
|
|
8
|
+
switch (ext) {
|
|
9
|
+
case 'ima':
|
|
10
|
+
return 'GOOGLE_IMA';
|
|
11
|
+
case 'cast':
|
|
12
|
+
return 'CHROMECAST';
|
|
13
|
+
case 'theoads':
|
|
14
|
+
return 'THEO_ADS';
|
|
15
|
+
case 'millicast':
|
|
16
|
+
return 'MILLICAST';
|
|
17
|
+
case 'sideloaded-texttracks':
|
|
18
|
+
return 'SIDELOADED_TEXTTRACKS';
|
|
19
|
+
default:
|
|
20
|
+
return undefined;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
const applyIOSExtensions: ConfigPlugin<THEOplayerPluginProps['extensions']> = (config, extensions) => {
|
|
25
|
+
const iosFeatures = extensions?.map(mapIOSExtensionKey)?.filter((f): f is string => !!f);
|
|
26
|
+
|
|
27
|
+
if (iosFeatures?.length ?? 0 > 0) {
|
|
28
|
+
const featureList = iosFeatures?.join(',');
|
|
29
|
+
console.log(`Setting THEO_FEATURES="${featureList}"`);
|
|
30
|
+
process.env.THEO_FEATURES = featureList;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// Align react-native-google-cast dependency
|
|
34
|
+
if (extensions?.includes('cast')) {
|
|
35
|
+
config = withCustomPod(config, CAST_POD_LINE);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
return config;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export const withTHEOplayerIOS: ConfigPlugin<THEOplayerPluginProps> = (config, props = {}) => {
|
|
42
|
+
const { extensions, ios } = props;
|
|
43
|
+
return applyIOSExtensions(config, ios?.extensions ?? extensions);
|
|
44
|
+
};
|