react-native-theoplayer 9.3.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 +22 -0
- package/README.md +3 -2
- package/android/build.gradle +2 -2
- package/android/src/main/java/com/theoplayer/media/MediaPlaybackService.kt +7 -11
- package/android/src/main/java/com/theoplayer/presentation/PipConfig.kt +7 -0
- package/android/src/main/java/com/theoplayer/presentation/PipConfigAdapter.kt +7 -1
- package/android/src/main/java/com/theoplayer/presentation/PresentationManager.kt +2 -5
- package/android/src/main/java/com/theoplayer/track/TextTrackStyleAdapter.kt +8 -0
- package/app.plugin.js +2 -46
- 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/backgroundAudio/BackgroundAudioConfiguration.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 +4 -2
- 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 +18 -2
- 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 +15 -0
- package/lib/commonjs/plugins/expo/withTHEOplayer.js.map +1 -0
- package/lib/commonjs/plugins/expo/withTHEOplayerAndroid.js +58 -0
- package/lib/commonjs/plugins/expo/withTHEOplayerAndroid.js.map +1 -0
- package/lib/commonjs/plugins/expo/withTHEOplayerIOS.js +47 -0
- package/lib/commonjs/plugins/expo/withTHEOplayerIOS.js.map +1 -0
- package/lib/commonjs/plugins/typedoc-platform-icons/package-lock.json +237 -0
- package/lib/commonjs/plugins/typedoc-platform-icons/package.json +20 -0
- package/lib/commonjs/plugins/typedoc-platform-icons/src/index.js +96 -0
- package/lib/commonjs/plugins/typedoc-platform-icons/src/index.js.map +1 -0
- package/lib/commonjs/plugins/typedoc-platform-icons/tsconfig.json +24 -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/backgroundAudio/BackgroundAudioConfiguration.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 +4 -2
- 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 +19 -2
- 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 +11 -0
- package/lib/module/plugins/expo/withTHEOplayer.js.map +1 -0
- package/lib/module/plugins/expo/withTHEOplayerAndroid.js +53 -0
- package/lib/module/plugins/expo/withTHEOplayerAndroid.js.map +1 -0
- package/lib/module/plugins/expo/withTHEOplayerIOS.js +42 -0
- package/lib/module/plugins/expo/withTHEOplayerIOS.js.map +1 -0
- package/lib/module/plugins/typedoc-platform-icons/package-lock.json +237 -0
- package/lib/module/plugins/typedoc-platform-icons/package.json +20 -0
- package/lib/module/plugins/typedoc-platform-icons/src/index.js +92 -0
- package/lib/module/plugins/typedoc-platform-icons/src/index.js.map +1 -0
- package/lib/module/plugins/typedoc-platform-icons/tsconfig.json +24 -0
- package/lib/typescript/api/THEOplayerView.d.ts +1 -2
- package/lib/typescript/api/THEOplayerView.d.ts.map +1 -1
- package/lib/typescript/api/abr/ABRConfiguration.d.ts +13 -12
- 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 +14 -5
- 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 +3 -4
- package/lib/typescript/api/ads/GoogleImaAd.d.ts.map +1 -1
- package/lib/typescript/api/ads/GoogleImaConfiguration.d.ts +5 -1
- package/lib/typescript/api/ads/GoogleImaConfiguration.d.ts.map +1 -1
- package/lib/typescript/api/ads/Omid.d.ts +16 -0
- package/lib/typescript/api/ads/Omid.d.ts.map +1 -1
- package/lib/typescript/api/backgroundAudio/BackgroundAudioConfiguration.d.ts +4 -2
- package/lib/typescript/api/backgroundAudio/BackgroundAudioConfiguration.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 +4 -1
- 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 +13 -9
- 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 +15 -11
- 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 +18 -8
- 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 +107 -2
- 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/media/MediaControlConfiguration.d.ts +2 -4
- package/lib/typescript/api/media/MediaControlConfiguration.d.ts.map +1 -1
- package/lib/typescript/api/millicast/MillicastConnectOptions.d.ts +4 -0
- package/lib/typescript/api/millicast/MillicastConnectOptions.d.ts.map +1 -1
- package/lib/typescript/api/pip/PiPConfiguration.d.ts +10 -1
- package/lib/typescript/api/pip/PiPConfiguration.d.ts.map +1 -1
- package/lib/typescript/api/playback/PlaybackSettingsAPI.d.ts +3 -6
- package/lib/typescript/api/playback/PlaybackSettingsAPI.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 +14 -9
- 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 +29 -27
- package/lib/typescript/api/source/SourceDescription.d.ts.map +1 -1
- package/lib/typescript/api/source/ads/Ads.d.ts +8 -1
- 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 +4 -3
- package/lib/typescript/api/source/ads/TheoAdDescription.d.ts.map +1 -1
- package/lib/typescript/api/source/ads/ssai/GoogleDAIConfiguration.d.ts +20 -1
- 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 +14 -10
- package/lib/typescript/api/source/cmcd/CmcdConfiguration.d.ts.map +1 -1
- package/lib/typescript/api/source/dash/DashPlaybackConfiguration.d.ts +12 -16
- 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 -3
- 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 +2 -2
- 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/theolive/TheoLiveConfiguration.d.ts +4 -8
- package/lib/typescript/api/theolive/TheoLiveConfiguration.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 +13 -9
- 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 +4 -0
- package/lib/typescript/plugins/expo/withTHEOplayer.d.ts.map +1 -0
- package/lib/typescript/plugins/expo/withTHEOplayerAndroid.d.ts +4 -0
- package/lib/typescript/plugins/expo/withTHEOplayerAndroid.d.ts.map +1 -0
- package/lib/typescript/plugins/expo/withTHEOplayerIOS.d.ts +4 -0
- package/lib/typescript/plugins/expo/withTHEOplayerIOS.d.ts.map +1 -0
- package/lib/typescript/plugins/typedoc-platform-icons/src/index.d.ts +3 -0
- package/lib/typescript/plugins/typedoc-platform-icons/src/index.d.ts.map +1 -0
- package/package.json +3 -3
- package/react-native-theoplayer.podspec +18 -8
- package/src/api/THEOplayerView.ts +1 -2
- package/src/api/abr/ABRConfiguration.ts +13 -12
- 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 +14 -5
- package/src/api/ads/CompanionAd.ts +1 -0
- package/src/api/ads/GoogleDai.ts +1 -0
- package/src/api/ads/GoogleImaAd.ts +3 -4
- package/src/api/ads/GoogleImaConfiguration.ts +7 -3
- package/src/api/ads/Omid.ts +16 -0
- package/src/api/backgroundAudio/BackgroundAudioConfiguration.ts +4 -2
- package/src/api/broadcast/EventBroadcastAPI.ts +1 -0
- package/src/api/cache/CachingPreferredTrackSelection.ts +1 -0
- package/src/api/cache/CachingTask.ts +5 -1
- package/src/api/cache/CachingTaskLicense.ts +7 -0
- package/src/api/cache/CachingTaskList.ts +7 -0
- package/src/api/cache/CachingTaskParameters.ts +13 -9
- 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 +15 -11
- 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 +18 -8
- 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 +107 -2
- package/src/api/event/TheoAdsEvent.ts +14 -0
- package/src/api/event/TrackEvent.ts +56 -0
- package/src/api/media/MediaControlConfiguration.ts +2 -4
- package/src/api/millicast/MillicastConnectOptions.ts +5 -1
- package/src/api/pip/PiPConfiguration.ts +11 -1
- package/src/api/playback/PlaybackSettingsAPI.ts +3 -6
- package/src/api/player/PlayerEventMap.ts +10 -0
- package/src/api/player/PlayerVersion.ts +6 -0
- package/src/api/player/THEOplayer.ts +15 -9
- package/src/api/presentation/PresentationMode.ts +0 -1
- package/src/api/source/SourceDescription.ts +29 -27
- package/src/api/source/ads/Ads.ts +8 -1
- 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 +4 -3
- package/src/api/source/ads/ssai/GoogleDAIConfiguration.ts +20 -1
- 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 +14 -10
- package/src/api/source/dash/DashPlaybackConfiguration.ts +12 -16
- package/src/api/source/drm/DRMConfiguration.ts +20 -0
- package/src/api/source/hls/HlsPlaybackConfiguration.ts +2 -3
- package/src/api/source/metadata/MetadataDescription.ts +1 -0
- package/src/api/theoads/TheoAdsAPI.ts +2 -2
- 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/theolive/TheoLiveConfiguration.ts +4 -8
- 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 +13 -9
- 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 +11 -0
- package/src/plugins/expo/withTHEOplayerAndroid.ts +53 -0
- package/src/plugins/expo/withTHEOplayerIOS.ts +44 -0
- package/src/plugins/typedoc-platform-icons/package-lock.json +237 -0
- package/src/plugins/typedoc-platform-icons/package.json +20 -0
- package/src/plugins/typedoc-platform-icons/src/index.tsx +90 -0
- package/src/plugins/typedoc-platform-icons/tsconfig.json +24 -0
|
@@ -4,6 +4,9 @@ import type { ServerSideAdInsertionConfiguration } from './ServerSideAdInsertion
|
|
|
4
4
|
/**
|
|
5
5
|
* The identifier of the Google DAI integration.
|
|
6
6
|
*
|
|
7
|
+
* @category Ads
|
|
8
|
+
* @category SSAI
|
|
9
|
+
* @category Source
|
|
7
10
|
* @public
|
|
8
11
|
*/
|
|
9
12
|
export type GoogleDAISSAIIntegrationID = 'google-dai';
|
|
@@ -13,6 +16,9 @@ export type GoogleDAISSAIIntegrationID = 'google-dai';
|
|
|
13
16
|
* <br/> - `'live'`: The requested stream is a live stream.
|
|
14
17
|
* <br/> - `'vod'`: The requested stream is a video-on-demand stream.
|
|
15
18
|
*
|
|
19
|
+
* @category Ads
|
|
20
|
+
* @category SSAI
|
|
21
|
+
* @category Source
|
|
16
22
|
* @public
|
|
17
23
|
*/
|
|
18
24
|
export type DAIAvailabilityType = 'vod' | 'live';
|
|
@@ -20,6 +26,9 @@ export type DAIAvailabilityType = 'vod' | 'live';
|
|
|
20
26
|
/**
|
|
21
27
|
* Represents a configuration for server-side ad insertion with the Google DAI pre-integration.
|
|
22
28
|
*
|
|
29
|
+
* @category Ads
|
|
30
|
+
* @category SSAI
|
|
31
|
+
* @category Source
|
|
23
32
|
* @public
|
|
24
33
|
*/
|
|
25
34
|
export interface GoogleDAIConfiguration extends ServerSideAdInsertionConfiguration {
|
|
@@ -71,10 +80,11 @@ export interface GoogleDAIConfiguration extends ServerSideAdInsertionConfigurati
|
|
|
71
80
|
/**
|
|
72
81
|
* The network code for the publisher making this stream request.
|
|
73
82
|
*
|
|
83
|
+
* @platform web
|
|
84
|
+
*
|
|
74
85
|
* @remarks
|
|
75
86
|
* <br/> - See {@link https://developers.google.com/ad-manager/dynamic-ad-insertion/sdk/html5/reference/js/StreamRequest#networkCode}
|
|
76
87
|
* for more information.
|
|
77
|
-
* <br/> - Available on Web only.
|
|
78
88
|
*/
|
|
79
89
|
networkCode?: string;
|
|
80
90
|
}
|
|
@@ -82,6 +92,9 @@ export interface GoogleDAIConfiguration extends ServerSideAdInsertionConfigurati
|
|
|
82
92
|
/**
|
|
83
93
|
* Represents a configuration for server-side ad insertion with the Google DAI pre-integration for a Live media stream.
|
|
84
94
|
*
|
|
95
|
+
* @category Ads
|
|
96
|
+
* @category SSAI
|
|
97
|
+
* @category Source
|
|
85
98
|
* @public
|
|
86
99
|
*/
|
|
87
100
|
export interface GoogleDAILiveConfiguration extends GoogleDAIConfiguration {
|
|
@@ -103,6 +116,9 @@ export interface GoogleDAILiveConfiguration extends GoogleDAIConfiguration {
|
|
|
103
116
|
/**
|
|
104
117
|
* Represents a configuration for server-side ad insertion with the Google DAI pre-integration for a VOD media stream.
|
|
105
118
|
*
|
|
119
|
+
* @category Ads
|
|
120
|
+
* @category SSAI
|
|
121
|
+
* @category Source
|
|
106
122
|
* @public
|
|
107
123
|
*/
|
|
108
124
|
export interface GoogleDAIVodConfiguration extends GoogleDAIConfiguration {
|
|
@@ -132,6 +148,9 @@ export interface GoogleDAIVodConfiguration extends GoogleDAIConfiguration {
|
|
|
132
148
|
/**
|
|
133
149
|
* Represents a media resource with a Google DAI server-side ad insertion request.
|
|
134
150
|
*
|
|
151
|
+
* @category Ads
|
|
152
|
+
* @category SSAI
|
|
153
|
+
* @category Source
|
|
135
154
|
* @public
|
|
136
155
|
*/
|
|
137
156
|
export interface GoogleDAITypedSource extends TypedSource {
|
|
@@ -3,14 +3,26 @@ import type { GoogleDAISSAIIntegrationID } from './GoogleDAIConfiguration';
|
|
|
3
3
|
/**
|
|
4
4
|
* The identifier of a server-side ad insertion pre-integration, represented by a string value.
|
|
5
5
|
*
|
|
6
|
+
* @category Ads
|
|
7
|
+
* @category SSAI
|
|
6
8
|
* @public
|
|
7
9
|
*/
|
|
8
10
|
export type SSAIIntegrationId = GoogleDAISSAIIntegrationID | CustomSSAIIntegrationId;
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* The identifier of a custom server-side ad insertion, represented by a string value.
|
|
14
|
+
*
|
|
15
|
+
* @category Ads
|
|
16
|
+
* @category SSAI
|
|
17
|
+
* @public
|
|
18
|
+
*/
|
|
9
19
|
export type CustomSSAIIntegrationId = string;
|
|
10
20
|
|
|
11
21
|
/**
|
|
12
22
|
* Represents a configuration for server-side ad insertion (SSAI).
|
|
13
23
|
*
|
|
24
|
+
* @category Ads
|
|
25
|
+
* @category SSAI
|
|
14
26
|
* @public
|
|
15
27
|
*/
|
|
16
28
|
export interface ServerSideAdInsertionConfiguration {
|
|
@@ -1,21 +1,22 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The configuration for transmitting information to Content Delivery Networks (CDNs)
|
|
3
3
|
* through Common Media Client Data (CMCD) (CTA-5004)
|
|
4
|
+
*
|
|
5
|
+
* @category Source
|
|
6
|
+
* @public
|
|
4
7
|
*/
|
|
5
8
|
export interface CmcdConfiguration {
|
|
6
9
|
/**
|
|
7
10
|
* The content ID parameter which should be passed as a CMCD value. If left empty, no content ID will be sent.
|
|
8
11
|
*
|
|
9
|
-
* @
|
|
10
|
-
* Web only
|
|
12
|
+
* @platform web
|
|
11
13
|
*/
|
|
12
14
|
contentID?: string;
|
|
13
15
|
|
|
14
16
|
/**
|
|
15
17
|
* The session ID parameter which should be passed as a CMCD value. If left empty, a UUIDv4 will be generated when applying the configuration.
|
|
16
18
|
*
|
|
17
|
-
* @
|
|
18
|
-
* Web only
|
|
19
|
+
* @platform web
|
|
19
20
|
*/
|
|
20
21
|
sessionID?: string;
|
|
21
22
|
|
|
@@ -23,8 +24,7 @@ export interface CmcdConfiguration {
|
|
|
23
24
|
* A flag to indicate if request IDs should be sent or not.
|
|
24
25
|
* When set to a truthy value, a UUIDv4 will be sent as a request id (`rid`) with every request to allow for request tracing.
|
|
25
26
|
*
|
|
26
|
-
* @
|
|
27
|
-
* Web only
|
|
27
|
+
* @platform web
|
|
28
28
|
*/
|
|
29
29
|
sendRequestID?: boolean;
|
|
30
30
|
|
|
@@ -32,8 +32,7 @@ export interface CmcdConfiguration {
|
|
|
32
32
|
* The target URI where client data is to be delivered in case the {@link transmissionMode} is set
|
|
33
33
|
* to {@link CmcdTransmissionMode.JSON_OBJECT}.
|
|
34
34
|
*
|
|
35
|
-
* @
|
|
36
|
-
* Web only
|
|
35
|
+
* @platform web
|
|
37
36
|
*/
|
|
38
37
|
jsonObjectTargetURI?: string;
|
|
39
38
|
|
|
@@ -42,8 +41,7 @@ export interface CmcdConfiguration {
|
|
|
42
41
|
* Note custom keys MUST carry a hyphenated prefix to ensure that there will not be a namespace collision with future
|
|
43
42
|
* revisions to the specification. Clients SHOULD use a reverse-DNS syntax when defining their own prefix.
|
|
44
43
|
*
|
|
45
|
-
* @
|
|
46
|
-
* Web only
|
|
44
|
+
* @platform web
|
|
47
45
|
*/
|
|
48
46
|
customKeys?: {
|
|
49
47
|
[key: string]: string | number | boolean;
|
|
@@ -55,6 +53,12 @@ export interface CmcdConfiguration {
|
|
|
55
53
|
transmissionMode: CmcdTransmissionMode
|
|
56
54
|
}
|
|
57
55
|
|
|
56
|
+
/**
|
|
57
|
+
* The CMCD transmission mode.
|
|
58
|
+
*
|
|
59
|
+
* @category Source
|
|
60
|
+
* @public
|
|
61
|
+
*/
|
|
58
62
|
export enum CmcdTransmissionMode {
|
|
59
63
|
/**
|
|
60
64
|
* Transmit CMCD data as a custom HTTP request header.
|
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
* Use this if you notice that the player never preloads the next period, even though you know that the current platform
|
|
9
9
|
* should support it.
|
|
10
10
|
*
|
|
11
|
+
* @category Source
|
|
11
12
|
* @public
|
|
12
13
|
*/
|
|
13
14
|
export type SeamlessPeriodSwitchStrategy = 'auto' | 'always' | 'never';
|
|
@@ -15,17 +16,14 @@ export type SeamlessPeriodSwitchStrategy = 'auto' | 'always' | 'never';
|
|
|
15
16
|
/**
|
|
16
17
|
* Represents a configuration for controlling playback of an MPEG-DASH stream.
|
|
17
18
|
*
|
|
18
|
-
* @
|
|
19
|
-
* <br/> - Available since v2.79.0.
|
|
20
|
-
*
|
|
19
|
+
* @category Source
|
|
21
20
|
* @public
|
|
22
21
|
*/
|
|
23
22
|
export interface DashPlaybackConfiguration {
|
|
24
23
|
/**
|
|
25
24
|
* Whether to seamlessly switch between DASH periods.
|
|
26
25
|
*
|
|
27
|
-
* @
|
|
28
|
-
* <br/> - Available on Web only.
|
|
26
|
+
* @platform web
|
|
29
27
|
*
|
|
30
28
|
* The player supports two strategies for handling a switch between two periods in an MPEG-DASH stream:
|
|
31
29
|
* <br/> - <strong>Seamless</strong>: Once the player is done buffering the current period, it immediately starts buffering the next period.
|
|
@@ -49,9 +47,9 @@ export interface DashPlaybackConfiguration {
|
|
|
49
47
|
* (Experimental) Whether the timescales of the media data need to be shifted,
|
|
50
48
|
* in order to work around platform-specific issues on certain smart TV platforms.
|
|
51
49
|
*
|
|
50
|
+
* @platform android
|
|
51
|
+
*
|
|
52
52
|
* @remarks
|
|
53
|
-
* <br/> - Available since v4.1.0.
|
|
54
|
-
* <br/> - Available on Web only.
|
|
55
53
|
* <br/> - On certain smart TV platforms (such as Tizen 2), playback issues may arise when
|
|
56
54
|
* the timescale of the media data changes across periods or discontinuities.
|
|
57
55
|
* In that case, the player may need to shift all the timescales first,
|
|
@@ -66,9 +64,9 @@ export interface DashPlaybackConfiguration {
|
|
|
66
64
|
/**
|
|
67
65
|
* (Experimental) The desired timescale to which the media data should be shifted.
|
|
68
66
|
*
|
|
67
|
+
* @platform web
|
|
68
|
+
*
|
|
69
69
|
* @remarks
|
|
70
|
-
* <br/> - Available since v4.11.0.
|
|
71
|
-
* <br/> - Available on Web only.
|
|
72
70
|
* <br/> - When specified, if the player decides to shift the timescale (see {@link DashPlaybackConfiguration.needsTimescaleShifting}), the timescale will be set to the
|
|
73
71
|
* given desired timescale.
|
|
74
72
|
* <br/> - When not specified, if the player decides to shift timescale, the player will decide the timescale to which it should shift.
|
|
@@ -82,8 +80,7 @@ export interface DashPlaybackConfiguration {
|
|
|
82
80
|
*
|
|
83
81
|
* @internal
|
|
84
82
|
*
|
|
85
|
-
* @
|
|
86
|
-
* <br/> - Available on Web only.
|
|
83
|
+
* @platform web
|
|
87
84
|
*/
|
|
88
85
|
forceSeekToSynchronize?: boolean;
|
|
89
86
|
|
|
@@ -91,9 +88,9 @@ export interface DashPlaybackConfiguration {
|
|
|
91
88
|
* (Experimental) Force the player to ignore the availability window of individual segments in the MPD,
|
|
92
89
|
* and instead consider every listed segment to be immediately available.
|
|
93
90
|
*
|
|
91
|
+
* @platform web,android
|
|
92
|
+
*
|
|
94
93
|
* @remarks
|
|
95
|
-
* <br/> - Available since v5.2.0.
|
|
96
|
-
* <br/> - Available on Web and Android.
|
|
97
94
|
* <br/> - This only applies to livestreams (with `<MPD type="dynamic">`).
|
|
98
95
|
* <br/> - This only applies to streams that use `<SegmentTimeline>`.
|
|
99
96
|
*/
|
|
@@ -102,10 +99,9 @@ export interface DashPlaybackConfiguration {
|
|
|
102
99
|
/**
|
|
103
100
|
* A flag to indicate whether timestamps of segmented WebVTT subtitles are relative to the segment start time.
|
|
104
101
|
*
|
|
105
|
-
* @
|
|
106
|
-
* <br/> - Available on Web only.
|
|
102
|
+
* @platform web
|
|
107
103
|
*
|
|
108
|
-
*
|
|
104
|
+
* @defaultValue `true`
|
|
109
105
|
*/
|
|
110
106
|
segmentRelativeVttTiming?: boolean;
|
|
111
107
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Describes the key system configuration.
|
|
3
3
|
*
|
|
4
|
+
* @category Content Protection
|
|
5
|
+
* @category Source
|
|
4
6
|
* @public
|
|
5
7
|
*/
|
|
6
8
|
export interface KeySystemConfiguration {
|
|
@@ -99,6 +101,8 @@ export interface KeySystemConfiguration {
|
|
|
99
101
|
* <br/> - `'temporary'`
|
|
100
102
|
* <br/> - `'persistent'`
|
|
101
103
|
*
|
|
104
|
+
* @category Content Protection
|
|
105
|
+
* @category Source
|
|
102
106
|
* @public
|
|
103
107
|
*/
|
|
104
108
|
export type LicenseType = 'temporary' | 'persistent';
|
|
@@ -106,6 +110,8 @@ export type LicenseType = 'temporary' | 'persistent';
|
|
|
106
110
|
/**
|
|
107
111
|
* Describes the FairPlay key system configuration.
|
|
108
112
|
*
|
|
113
|
+
* @category Content Protection
|
|
114
|
+
* @category Source
|
|
109
115
|
* @public
|
|
110
116
|
*/
|
|
111
117
|
export interface FairPlayKeySystemConfiguration extends KeySystemConfiguration {
|
|
@@ -118,6 +124,8 @@ export interface FairPlayKeySystemConfiguration extends KeySystemConfiguration {
|
|
|
118
124
|
/**
|
|
119
125
|
* Describes the PlayReady key system configuration.
|
|
120
126
|
*
|
|
127
|
+
* @category Content Protection
|
|
128
|
+
* @category Source
|
|
121
129
|
* @public
|
|
122
130
|
*/
|
|
123
131
|
export interface PlayReadyKeySystemConfiguration extends KeySystemConfiguration {
|
|
@@ -130,6 +138,8 @@ export interface PlayReadyKeySystemConfiguration extends KeySystemConfiguration
|
|
|
130
138
|
/**
|
|
131
139
|
* Describes the Widevine key system configuration.
|
|
132
140
|
*
|
|
141
|
+
* @category Content Protection
|
|
142
|
+
* @category Source
|
|
133
143
|
* @public
|
|
134
144
|
*/
|
|
135
145
|
export type WidevineKeySystemConfiguration = KeySystemConfiguration;
|
|
@@ -137,6 +147,8 @@ export type WidevineKeySystemConfiguration = KeySystemConfiguration;
|
|
|
137
147
|
/**
|
|
138
148
|
* Describes the ClearKey key system configuration.
|
|
139
149
|
*
|
|
150
|
+
* @category Content Protection
|
|
151
|
+
* @category Source
|
|
140
152
|
* @public
|
|
141
153
|
*/
|
|
142
154
|
export interface ClearkeyKeySystemConfiguration extends KeySystemConfiguration {
|
|
@@ -149,6 +161,8 @@ export interface ClearkeyKeySystemConfiguration extends KeySystemConfiguration {
|
|
|
149
161
|
/**
|
|
150
162
|
* Describes the ClearKey decryption key.
|
|
151
163
|
*
|
|
164
|
+
* @category Content Protection
|
|
165
|
+
* @category Source
|
|
152
166
|
* @public
|
|
153
167
|
*/
|
|
154
168
|
export interface ClearkeyDecryptionKey {
|
|
@@ -174,6 +188,8 @@ export interface ClearkeyDecryptionKey {
|
|
|
174
188
|
/**
|
|
175
189
|
* Describes the AES128 key system configuration.
|
|
176
190
|
*
|
|
191
|
+
* @category Content Protection
|
|
192
|
+
* @category Source
|
|
177
193
|
* @public
|
|
178
194
|
*/
|
|
179
195
|
export interface AES128KeySystemConfiguration {
|
|
@@ -191,6 +207,8 @@ export interface AES128KeySystemConfiguration {
|
|
|
191
207
|
/**
|
|
192
208
|
* Describes the configuration of the DRM.
|
|
193
209
|
*
|
|
210
|
+
* @category Content Protection
|
|
211
|
+
* @category Source
|
|
194
212
|
* @public
|
|
195
213
|
*/
|
|
196
214
|
export interface DRMConfiguration {
|
|
@@ -247,6 +265,8 @@ export interface DRMConfiguration {
|
|
|
247
265
|
/**
|
|
248
266
|
* The id of a key system. Possible values are 'widevine', 'fairplay' and 'playready'.
|
|
249
267
|
*
|
|
268
|
+
* @category Content Protection
|
|
269
|
+
* @category Source
|
|
250
270
|
* @public
|
|
251
271
|
*/
|
|
252
272
|
export type KeySystemId = 'widevine' | 'fairplay' | 'playready';
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
* @remarks
|
|
17
17
|
* <br/> - See {@link HlsPlaybackConfiguration.discontinuityAlignment}.
|
|
18
18
|
*
|
|
19
|
+
* @category Source
|
|
19
20
|
* @public
|
|
20
21
|
*/
|
|
21
22
|
export type HlsDiscontinuityAlignment = 'auto' | 'playlist' | 'media';
|
|
@@ -23,9 +24,7 @@ export type HlsDiscontinuityAlignment = 'auto' | 'playlist' | 'media';
|
|
|
23
24
|
/**
|
|
24
25
|
* Represents a configuration for controlling playback of an MPEG-DASH stream.
|
|
25
26
|
*
|
|
26
|
-
* @
|
|
27
|
-
* <br/> - Available since v2.82.0.
|
|
28
|
-
*
|
|
27
|
+
* @category Source
|
|
29
28
|
* @public
|
|
30
29
|
*/
|
|
31
30
|
export interface HlsPlaybackConfiguration {
|
|
@@ -4,12 +4,17 @@ import { Interstitial } from './Interstitial';
|
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* The layout of the THEOad.
|
|
7
|
+
*
|
|
8
|
+
* @category Ads
|
|
9
|
+
* @category THEOads
|
|
10
|
+
* @public
|
|
7
11
|
*/
|
|
8
12
|
export type TheoAdsLayout = 'single' | 'l-shape' | 'double';
|
|
9
13
|
|
|
10
14
|
/**
|
|
11
15
|
* The THEOads interstitial that corresponds with ad playback.
|
|
12
16
|
*
|
|
17
|
+
* @category Ads
|
|
13
18
|
* @category THEOads
|
|
14
19
|
* @public
|
|
15
20
|
*/
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* The type of the interstitial.
|
|
3
3
|
*
|
|
4
|
+
* @category Ads
|
|
4
5
|
* @category THEOads
|
|
5
6
|
* @public
|
|
6
7
|
*/
|
|
@@ -9,6 +10,7 @@ export type InterstitialType = 'adbreak' | 'overlay';
|
|
|
9
10
|
/**
|
|
10
11
|
* The THEOads interstitial.
|
|
11
12
|
*
|
|
13
|
+
* @category Ads
|
|
12
14
|
* @category THEOads
|
|
13
15
|
* @public
|
|
14
16
|
*/
|
|
@@ -3,6 +3,7 @@ import { Interstitial } from './Interstitial';
|
|
|
3
3
|
/**
|
|
4
4
|
* The THEOads interstitial that corresponds with overlay playback.
|
|
5
5
|
*
|
|
6
|
+
* @category Ads
|
|
6
7
|
* @category THEOads
|
|
7
8
|
* @public
|
|
8
9
|
*/
|
|
@@ -33,6 +34,7 @@ export interface OverlayInterstitial extends Interstitial {
|
|
|
33
34
|
/**
|
|
34
35
|
* The position information of the overlay.
|
|
35
36
|
*
|
|
37
|
+
* @category Ads
|
|
36
38
|
* @category THEOads
|
|
37
39
|
* @public
|
|
38
40
|
*/
|
|
@@ -46,6 +48,7 @@ export interface OverlayPosition {
|
|
|
46
48
|
/**
|
|
47
49
|
* The size information of the overlay.
|
|
48
50
|
*
|
|
51
|
+
* @category Ads
|
|
49
52
|
* @category THEOads
|
|
50
53
|
* @public
|
|
51
54
|
*/
|
|
@@ -7,32 +7,28 @@ export interface TheoLiveConfiguration {
|
|
|
7
7
|
/**
|
|
8
8
|
* An id used to report usage analytics, if not explicitly given a random UUID is used.
|
|
9
9
|
*
|
|
10
|
-
* @
|
|
11
|
-
* <br/> - Available on Web and Android only.
|
|
10
|
+
* @platform web,android
|
|
12
11
|
*/
|
|
13
12
|
readonly externalSessionId?: string;
|
|
14
13
|
|
|
15
14
|
/**
|
|
16
15
|
* Whether this player should fallback or not when it has a fallback configured.
|
|
17
16
|
*
|
|
18
|
-
* @
|
|
19
|
-
* <br/> - Available on Web only.
|
|
17
|
+
* @platform web
|
|
20
18
|
*/
|
|
21
19
|
readonly fallbackEnabled?: boolean;
|
|
22
20
|
|
|
23
21
|
/**
|
|
24
22
|
* An optional header that can be passed during discovery.
|
|
25
23
|
*
|
|
26
|
-
* @
|
|
27
|
-
* <br/> - Available on Web only.
|
|
24
|
+
* @platform web
|
|
28
25
|
*/
|
|
29
26
|
readonly discoveryHeader?: string;
|
|
30
27
|
|
|
31
28
|
/**
|
|
32
29
|
* Whether THEOlive analytics should be disabled or not.
|
|
33
30
|
*
|
|
34
|
-
* @
|
|
35
|
-
* <br/> - Available on Android only.
|
|
31
|
+
* @platform android
|
|
36
32
|
*
|
|
37
33
|
* @defaultValue `false`
|
|
38
34
|
*/
|
|
@@ -3,6 +3,7 @@ import type { TextTrackCue } from './TextTrackCue';
|
|
|
3
3
|
/**
|
|
4
4
|
* Represents a cue of a HLS date range metadata text track.
|
|
5
5
|
*
|
|
6
|
+
* @category Media and Text Tracks
|
|
6
7
|
* @public
|
|
7
8
|
*/
|
|
8
9
|
export interface DateRangeCue extends TextTrackCue {
|
|
@@ -68,6 +69,9 @@ export interface DateRangeCue extends TextTrackCue {
|
|
|
68
69
|
|
|
69
70
|
/**
|
|
70
71
|
* Check whether a text track cue is of type DateRangeCue.
|
|
72
|
+
*
|
|
73
|
+
* @category Media and Text Tracks
|
|
74
|
+
* @public
|
|
71
75
|
*/
|
|
72
76
|
export function isDateRangeCue(cue: TextTrackCue): cue is DateRangeCue {
|
|
73
77
|
return (cue as DateRangeCue).customAttributes != undefined;
|
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
import type { Track } from './Track';
|
|
2
2
|
import type { Quality } from './Quality';
|
|
3
3
|
|
|
4
|
+
/**
|
|
5
|
+
* Represents the category of a media track (audio or video).
|
|
6
|
+
*
|
|
7
|
+
* @category Media and Text Tracks
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
4
10
|
export type MediaTrackKind = 'main' | 'alternative';
|
|
5
11
|
|
|
6
12
|
/**
|
|
7
13
|
* Represents a media track (audio or video) of a media resource.
|
|
8
14
|
*
|
|
15
|
+
* @category Media and Text Tracks
|
|
9
16
|
* @public
|
|
10
17
|
*/
|
|
11
18
|
export interface MediaTrack extends Track {
|
|
@@ -60,14 +67,32 @@ export interface MediaTrack extends Track {
|
|
|
60
67
|
readonly enabled: boolean;
|
|
61
68
|
}
|
|
62
69
|
|
|
70
|
+
/**
|
|
71
|
+
* Find a media track by `uid` in a list of media tracks.
|
|
72
|
+
*
|
|
73
|
+
* @category Media and Text Tracks
|
|
74
|
+
* @public
|
|
75
|
+
*/
|
|
63
76
|
export function findMediaTrackByUid(mediaTracks: MediaTrack[], uid: number | undefined): MediaTrack | undefined {
|
|
64
77
|
return mediaTracks.find((track) => track.uid === uid);
|
|
65
78
|
}
|
|
66
79
|
|
|
80
|
+
/**
|
|
81
|
+
* Find a quality by `uid` in a list of media tracks.
|
|
82
|
+
*
|
|
83
|
+
* @category Media and Text Tracks
|
|
84
|
+
* @public
|
|
85
|
+
*/
|
|
67
86
|
export function findQualityByUid(mediaTrack: MediaTrack, uid: number | undefined): Quality | undefined {
|
|
68
87
|
return mediaTrack.qualities.find((quality) => quality.uid === uid);
|
|
69
88
|
}
|
|
70
89
|
|
|
90
|
+
/**
|
|
91
|
+
* Find a list of qualities by `uid` in a list of media tracks.
|
|
92
|
+
*
|
|
93
|
+
* @category Media and Text Tracks
|
|
94
|
+
* @public
|
|
95
|
+
*/
|
|
71
96
|
export function findQualitiesByUid(mediaTrack: MediaTrack | undefined, uid: number | number[] | undefined): Quality[] | undefined {
|
|
72
97
|
if (uid && mediaTrack) {
|
|
73
98
|
if (Array.isArray(uid)) {
|
package/src/api/track/Quality.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Represents a quality of a media track.
|
|
3
3
|
*
|
|
4
|
+
* @category Media and Text Tracks
|
|
4
5
|
* @public
|
|
5
6
|
*/
|
|
6
7
|
export interface Quality {
|
|
@@ -54,6 +55,7 @@ export interface Quality {
|
|
|
54
55
|
/**
|
|
55
56
|
* Represents a quality of a video track.
|
|
56
57
|
*
|
|
58
|
+
* @category Media and Text Tracks
|
|
57
59
|
* @public
|
|
58
60
|
*/
|
|
59
61
|
export interface VideoQuality extends Quality {
|
|
@@ -81,6 +83,7 @@ export interface VideoQuality extends Quality {
|
|
|
81
83
|
/**
|
|
82
84
|
* Represents a quality of an audio track.
|
|
83
85
|
*
|
|
86
|
+
* @category Media and Text Tracks
|
|
84
87
|
* @public
|
|
85
88
|
*/
|
|
86
89
|
export interface AudioQuality extends Quality {
|