react-native-theoplayer 1.8.2 → 2.0.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 +248 -0
- package/README.md +7 -2
- package/android/build.gradle +46 -24
- package/android/local/com/theoplayer/android-connector/mediasession/4.11.0-local/mediasession-4.11.0-local.aar +0 -0
- package/android/local/com/theoplayer/android-connector/mediasession/4.11.0-local/mediasession-4.11.0-local.pom +15 -0
- package/android/local/com/theoplayer/android-connector/mediasession/maven-metadata-local.xml +13 -0
- package/android/local/com/theoplayer/theoplayer-sdk-android/ads-wrapper/4.8.0/ads-wrapper-4.8.0.aar +0 -0
- package/android/local/com/theoplayer/theoplayer-sdk-android/ads-wrapper/4.8.0/ads-wrapper-4.8.0.pom +9 -0
- package/android/local/com/theoplayer/theoplayer-sdk-android/ads-wrapper/maven-metadata-local.xml +4 -4
- package/android/src/main/AndroidManifest.xml +46 -1
- package/android/src/main/java/com/theoplayer/PlayerConfigAdapter.kt +3 -1
- package/android/src/main/java/com/theoplayer/PlayerEventEmitter.kt +223 -181
- package/android/src/main/java/com/theoplayer/ReactTHEOplayerContext.kt +301 -0
- package/android/src/main/java/com/theoplayer/ReactTHEOplayerPackage.kt +2 -0
- package/android/src/main/java/com/theoplayer/ReactTHEOplayerView.kt +77 -381
- package/android/src/main/java/com/theoplayer/ReactTHEOplayerViewManager.kt +5 -78
- package/android/src/main/java/com/theoplayer/ads/AdsModule.kt +4 -4
- package/android/src/main/java/com/theoplayer/audio/AudioBecomingNoisyManager.kt +32 -0
- package/android/src/main/java/com/theoplayer/audio/BackgroundAudioConfig.kt +17 -0
- package/android/src/main/java/com/theoplayer/audio/BackgroundAudioConfigAdapter.kt +19 -0
- package/android/src/main/java/com/theoplayer/audio/MediaNotificationBuilder.kt +194 -0
- package/android/src/main/java/com/theoplayer/audio/MediaPlaybackService.kt +278 -0
- package/android/src/main/java/com/theoplayer/cast/CastModule.kt +11 -6
- package/android/src/main/java/com/theoplayer/drm/ContentProtectionModule.kt +8 -2
- package/android/src/main/java/com/theoplayer/player/PlayerModule.kt +178 -0
- package/android/src/main/java/com/theoplayer/presentation/PipConfig.kt +10 -0
- package/android/src/main/java/com/theoplayer/presentation/PipConfigAdapter.kt +14 -0
- package/android/src/main/java/com/theoplayer/presentation/PresentationManager.kt +249 -0
- package/android/src/main/java/com/theoplayer/presentation/PresentationModeChangeContext.kt +17 -0
- package/android/src/main/java/com/theoplayer/source/SourceAdapter.kt +6 -2
- package/android/src/main/java/com/theoplayer/track/QualityListAdapter.kt +8 -0
- package/android/src/main/java/com/theoplayer/track/TextTrackCueEventType.kt +3 -1
- package/android/src/main/java/com/theoplayer/track/TrackListAdapter.kt +22 -49
- package/android/src/main/java/com/theoplayer/util/PayloadBuilder.kt +242 -0
- package/android/src/main/java/com/theoplayer/util/ViewResolver.kt +3 -4
- package/android/src/main/res/drawable/ic_close.xml +13 -0
- package/android/src/main/res/drawable/ic_notification_small.xml +9 -0
- package/android/src/main/res/drawable/ic_pause.xml +13 -0
- package/android/src/main/res/drawable/ic_play.xml +13 -0
- package/android/src/main/res/values/colors.xml +4 -0
- package/android/src/main/res/values/strings.xml +9 -0
- package/ios/THEOplayerRCTBridge.m +60 -12
- package/ios/THEOplayerRCTDebug.swift +13 -1
- package/ios/THEOplayerRCTMainEventHandler.swift +101 -49
- package/ios/THEOplayerRCTPlayerAPI.swift +240 -0
- package/ios/THEOplayerRCTPresentationModeContext.swift +29 -0
- package/ios/THEOplayerRCTTextTrackEventHandler.swift +39 -3
- package/ios/THEOplayerRCTTrackEventTypes.swift +2 -0
- package/ios/THEOplayerRCTTrackMetadataAggregator.swift +9 -6
- package/ios/THEOplayerRCTTypeUtils.swift +42 -0
- package/ios/THEOplayerRCTView.swift +130 -288
- package/ios/THEOplayerRCTViewManager.swift +1 -1
- package/ios/ads/THEOplayerRCTAdAggregator.swift +1 -1
- package/ios/ads/THEOplayerRCTAdsAPI.swift +4 -2
- package/ios/ads/THEOplayerRCTAdsEventHandler.swift +2 -2
- package/ios/ads/THEOplayerRCTSourceDescriptionBuilder+Ads.swift +2 -2
- package/ios/ads/THEOplayerRCTView+Ads.swift +14 -1
- package/ios/ads/THEOplayerRCTView+AdsConfig.swift +8 -7
- package/ios/backgroundAudio/THEOplayerRCTNowPlayingManager.swift +254 -0
- package/ios/backgroundAudio/THEOplayerRCTRemoteCommandsManager.swift +238 -0
- package/ios/backgroundAudio/THEOplayerRCTView+BackgroundAudioConfig.swift +33 -0
- package/ios/casting/THEOplayerRCTCastAPI+Chromecast.swift +1 -1
- package/ios/casting/THEOplayerRCTCastEventHandler.swift +2 -2
- package/ios/casting/THEOplayerRCTView+Casting.swift +15 -0
- package/ios/contentprotection/THEOplayerRCTProxyContentProtectionIntegration.swift +66 -46
- package/ios/pip/THEOplayerRCTPipControlsManager.swift +145 -0
- package/ios/pip/THEOplayerRCTView+PipConfig.swift +56 -0
- package/ios/theofeatures.sh +16 -0
- package/lib/commonjs/api/THEOplayerView.js.map +1 -1
- package/lib/commonjs/api/abr/barrel.js +0 -2
- package/lib/commonjs/api/abr/barrel.js.map +1 -1
- package/lib/commonjs/api/ads/barrel.js +0 -16
- package/lib/commonjs/api/ads/barrel.js.map +1 -1
- package/lib/commonjs/api/backgroundAudio/BackgroundAudioConfiguration.js +2 -0
- package/lib/commonjs/api/backgroundAudio/BackgroundAudioConfiguration.js.map +1 -0
- package/lib/commonjs/api/backgroundAudio/barrel.js +17 -0
- package/lib/commonjs/api/backgroundAudio/barrel.js.map +1 -0
- package/lib/commonjs/api/barrel.js +52 -32
- package/lib/commonjs/api/barrel.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/CastState.js +22 -0
- 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 +0 -10
- 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 +0 -2
- package/lib/commonjs/api/config/barrel.js.map +1 -1
- package/lib/commonjs/api/drm/barrel.js +0 -10
- package/lib/commonjs/api/drm/barrel.js.map +1 -1
- package/lib/commonjs/api/error/barrel.js +0 -4
- package/lib/commonjs/api/error/barrel.js.map +1 -1
- package/lib/commonjs/api/event/AdEvent.js +24 -83
- package/lib/commonjs/api/event/AdEvent.js.map +1 -1
- package/lib/commonjs/api/event/CastEvent.js +8 -15
- package/lib/commonjs/api/event/CastEvent.js.map +1 -1
- package/lib/commonjs/api/event/Event.js +2 -0
- package/lib/commonjs/api/event/Event.js.map +1 -0
- package/lib/commonjs/api/event/EventDispatcher.js +6 -0
- package/lib/commonjs/api/event/EventDispatcher.js.map +1 -0
- package/lib/commonjs/api/event/EventListener.js +6 -0
- package/lib/commonjs/api/event/EventListener.js.map +1 -0
- package/lib/commonjs/api/event/PlayerEvent.js +7 -0
- package/lib/commonjs/api/event/PlayerEvent.js.map +1 -1
- package/lib/commonjs/api/event/TrackEvent.js +10 -15
- package/lib/commonjs/api/event/TrackEvent.js.map +1 -1
- package/lib/commonjs/api/event/barrel.js +11 -8
- package/lib/commonjs/api/event/barrel.js.map +1 -1
- package/lib/commonjs/api/media/MediaControlConfiguration.js +2 -0
- package/lib/commonjs/api/media/MediaControlConfiguration.js.map +1 -0
- package/lib/commonjs/api/media/barrel.js +17 -0
- package/lib/commonjs/api/media/barrel.js.map +1 -0
- package/lib/commonjs/api/pip/PiPConfiguration.js +2 -0
- package/lib/commonjs/api/pip/PiPConfiguration.js.map +1 -0
- package/lib/commonjs/api/pip/barrel.js +17 -0
- package/lib/commonjs/api/pip/barrel.js.map +1 -0
- package/lib/commonjs/api/player/PlayerEventMap.js +43 -0
- package/lib/commonjs/api/player/PlayerEventMap.js.map +1 -0
- package/lib/commonjs/api/player/THEOplayer.js +6 -0
- package/lib/commonjs/api/player/THEOplayer.js.map +1 -0
- package/lib/commonjs/api/player/barrel.js +28 -0
- package/lib/commonjs/api/player/barrel.js.map +1 -0
- package/lib/commonjs/api/presentation/PresentationMode.js +22 -0
- package/lib/commonjs/api/presentation/PresentationMode.js.map +1 -0
- package/lib/commonjs/api/presentation/barrel.js +17 -0
- package/lib/commonjs/api/presentation/barrel.js.map +1 -0
- package/lib/commonjs/api/source/ads/Ads.js +46 -0
- 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/barrel.js +0 -12
- package/lib/commonjs/api/source/ads/barrel.js.map +1 -1
- package/lib/commonjs/api/source/ads/ssai/barrel.js +0 -8
- package/lib/commonjs/api/source/ads/ssai/barrel.js.map +1 -1
- package/lib/commonjs/api/source/barrel.js +0 -12
- package/lib/commonjs/api/source/barrel.js.map +1 -1
- package/lib/commonjs/api/source/dash/barrel.js +0 -2
- package/lib/commonjs/api/source/dash/barrel.js.map +1 -1
- package/lib/commonjs/api/source/drm/barrel.js +0 -2
- package/lib/commonjs/api/source/drm/barrel.js.map +1 -1
- package/lib/commonjs/api/source/hls/barrel.js +0 -2
- package/lib/commonjs/api/source/hls/barrel.js.map +1 -1
- package/lib/commonjs/api/source/metadata/barrel.js +0 -2
- package/lib/commonjs/api/source/metadata/barrel.js.map +1 -1
- package/lib/commonjs/api/timeranges/barrel.js +0 -2
- package/lib/commonjs/api/timeranges/barrel.js.map +1 -1
- package/lib/commonjs/api/track/MediaTrack.js +1 -4
- package/lib/commonjs/api/track/MediaTrack.js.map +1 -1
- package/lib/commonjs/api/track/TextTrack.js +29 -24
- 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 -0
- package/lib/commonjs/api/track/Track.js +25 -0
- package/lib/commonjs/api/track/Track.js.map +1 -1
- package/lib/commonjs/api/track/barrel.js +11 -10
- package/lib/commonjs/api/track/barrel.js.map +1 -1
- package/lib/commonjs/api/utils/TypeUtils.js +6 -14
- package/lib/commonjs/api/utils/TypeUtils.js.map +1 -1
- package/lib/commonjs/api/utils/barrel.js +0 -2
- package/lib/commonjs/api/utils/barrel.js.map +1 -1
- package/lib/commonjs/index.js +12 -4
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/internal/THEOplayerView.js +103 -235
- package/lib/commonjs/internal/THEOplayerView.js.map +1 -1
- package/lib/commonjs/internal/THEOplayerView.style.js +0 -3
- package/lib/commonjs/internal/THEOplayerView.style.js.map +1 -1
- package/lib/commonjs/internal/THEOplayerView.web.js +69 -589
- package/lib/commonjs/internal/THEOplayerView.web.js.map +1 -1
- package/lib/commonjs/internal/adapter/NativePlayerState.js +6 -0
- package/lib/commonjs/internal/adapter/NativePlayerState.js.map +1 -0
- package/lib/commonjs/internal/adapter/THEOplayerAdapter.js +392 -0
- package/lib/commonjs/internal/adapter/THEOplayerAdapter.js.map +1 -0
- package/lib/commonjs/internal/adapter/THEOplayerWebAdapter.js +233 -0
- package/lib/commonjs/internal/adapter/THEOplayerWebAdapter.js.map +1 -0
- package/lib/commonjs/internal/adapter/WebEventForwarder.js +280 -0
- package/lib/commonjs/internal/adapter/WebEventForwarder.js.map +1 -0
- package/lib/commonjs/internal/adapter/abr/AbrAdapter.js +40 -0
- package/lib/commonjs/internal/adapter/abr/AbrAdapter.js.map +1 -0
- package/lib/commonjs/internal/adapter/ads/THEOplayerNativeAdsAdapter.js +41 -0
- package/lib/commonjs/internal/adapter/ads/THEOplayerNativeAdsAdapter.js.map +1 -0
- package/lib/commonjs/internal/adapter/ads/THEOplayerNativeGoogleDAI.js +26 -0
- package/lib/commonjs/internal/adapter/ads/THEOplayerNativeGoogleDAI.js.map +1 -0
- package/lib/commonjs/internal/adapter/ads/THEOplayerWebAdsAdapter.js +58 -0
- package/lib/commonjs/internal/adapter/ads/THEOplayerWebAdsAdapter.js.map +1 -0
- package/lib/commonjs/internal/adapter/ads/THEOplayerWebGoogleDAI.js +25 -0
- package/lib/commonjs/internal/adapter/ads/THEOplayerWebGoogleDAI.js.map +1 -0
- package/lib/commonjs/internal/adapter/cast/THEOplayerNativeAirplay.js +47 -0
- package/lib/commonjs/internal/adapter/cast/THEOplayerNativeAirplay.js.map +1 -0
- package/lib/commonjs/internal/adapter/cast/THEOplayerNativeCastAdapter.js +46 -0
- package/lib/commonjs/internal/adapter/cast/THEOplayerNativeCastAdapter.js.map +1 -0
- package/lib/commonjs/internal/adapter/cast/THEOplayerNativeChromecast.js +55 -0
- package/lib/commonjs/internal/adapter/cast/THEOplayerNativeChromecast.js.map +1 -0
- package/lib/commonjs/internal/adapter/cast/THEOplayerWebCastAdapter.js +29 -0
- package/lib/commonjs/internal/adapter/cast/THEOplayerWebCastAdapter.js.map +1 -0
- package/lib/commonjs/internal/adapter/event/BaseEvent.js +15 -0
- package/lib/commonjs/internal/adapter/event/BaseEvent.js.map +1 -0
- package/lib/commonjs/internal/adapter/event/DefaultEventDispatcher.js +42 -0
- package/lib/commonjs/internal/adapter/event/DefaultEventDispatcher.js.map +1 -0
- package/lib/commonjs/internal/adapter/event/PlayerEvents.js +166 -0
- package/lib/commonjs/internal/adapter/event/PlayerEvents.js.map +1 -0
- package/lib/commonjs/internal/adapter/event/native/NativeAdEvent.js +6 -0
- package/lib/commonjs/internal/adapter/event/native/NativeAdEvent.js.map +1 -0
- package/lib/commonjs/internal/adapter/event/native/NativeCastEvent.js +6 -0
- package/lib/commonjs/internal/adapter/event/native/NativeCastEvent.js.map +1 -0
- package/lib/commonjs/internal/adapter/event/native/NativePlayerEvent.js +6 -0
- package/lib/commonjs/internal/adapter/event/native/NativePlayerEvent.js.map +1 -0
- package/lib/commonjs/internal/adapter/event/native/NativeTrackEvent.js +74 -0
- package/lib/commonjs/internal/adapter/event/native/NativeTrackEvent.js.map +1 -0
- package/lib/commonjs/internal/adapter/track/TextTrackStyleAdapter.js +51 -0
- package/lib/commonjs/internal/adapter/track/TextTrackStyleAdapter.js.map +1 -0
- package/lib/commonjs/internal/adapter/web/TrackUtils.js +87 -0
- package/lib/commonjs/internal/adapter/web/TrackUtils.js.map +1 -0
- package/lib/commonjs/internal/adapter/web/WebMediaSession.js +188 -0
- package/lib/commonjs/internal/adapter/web/WebMediaSession.js.map +1 -0
- package/lib/commonjs/internal/adapter/web/WebPresentationModeManager.js +101 -0
- package/lib/commonjs/internal/adapter/web/WebPresentationModeManager.js.map +1 -0
- package/lib/commonjs/internal/drm/ContentProtectionRegistry.js +13 -50
- package/lib/commonjs/internal/drm/ContentProtectionRegistry.js.map +1 -1
- package/lib/commonjs/internal/drm/ContentProtectionRegistry.web.js +0 -4
- package/lib/commonjs/internal/drm/ContentProtectionRegistry.web.js.map +1 -1
- package/lib/commonjs/internal/drm/NativeCertificateRequest.js +0 -3
- package/lib/commonjs/internal/drm/NativeCertificateRequest.js.map +1 -1
- package/lib/commonjs/internal/drm/NativeCertificateResponse.js +0 -4
- package/lib/commonjs/internal/drm/NativeCertificateResponse.js.map +1 -1
- package/lib/commonjs/internal/drm/NativeLicenseRequest.js +0 -3
- package/lib/commonjs/internal/drm/NativeLicenseRequest.js.map +1 -1
- package/lib/commonjs/internal/drm/NativeLicenseResponse.js +0 -4
- package/lib/commonjs/internal/drm/NativeLicenseResponse.js.map +1 -1
- package/lib/commonjs/internal/utils/TypeUtils.js +2 -8
- package/lib/commonjs/internal/utils/TypeUtils.js.map +1 -1
- package/lib/commonjs/internal/utils/arrayUtil.js +19 -0
- package/lib/commonjs/internal/utils/arrayUtil.js.map +1 -0
- package/lib/commonjs/ui/THEOplayerDefaultUi.js +82 -0
- package/lib/commonjs/ui/THEOplayerDefaultUi.js.map +1 -0
- package/lib/commonjs/ui/THEOplayerTheme.js +48 -0
- package/lib/commonjs/ui/THEOplayerTheme.js.map +1 -0
- package/lib/commonjs/ui/barrel.js +39 -0
- package/lib/commonjs/ui/barrel.js.map +1 -0
- package/lib/commonjs/ui/components/activityindicator/CenteredDelayedActivityIndicator.js +99 -0
- package/lib/commonjs/ui/components/activityindicator/CenteredDelayedActivityIndicator.js.map +1 -0
- package/lib/commonjs/ui/components/activityindicator/DelayedActivityIndicator.js +35 -0
- package/lib/commonjs/ui/components/activityindicator/DelayedActivityIndicator.js.map +1 -0
- package/lib/commonjs/ui/components/activityindicator/barrel.js +28 -0
- package/lib/commonjs/ui/components/activityindicator/barrel.js.map +1 -0
- package/lib/commonjs/ui/components/barrel.js +105 -0
- package/lib/commonjs/ui/components/barrel.js.map +1 -0
- package/lib/commonjs/ui/components/button/AirplayButton.js +81 -0
- package/lib/commonjs/ui/components/button/AirplayButton.js.map +1 -0
- package/lib/commonjs/ui/components/button/ChromecastButton.js +66 -0
- package/lib/commonjs/ui/components/button/ChromecastButton.js.map +1 -0
- package/lib/commonjs/ui/components/button/ChromecastButton.web.js +82 -0
- package/lib/commonjs/ui/components/button/ChromecastButton.web.js.map +1 -0
- package/lib/commonjs/ui/components/button/FullscreenButton.js +72 -0
- package/lib/commonjs/ui/components/button/FullscreenButton.js.map +1 -0
- package/lib/commonjs/ui/components/button/MuteButton.js +66 -0
- package/lib/commonjs/ui/components/button/MuteButton.js.map +1 -0
- package/lib/commonjs/ui/components/button/PipButton.js +72 -0
- package/lib/commonjs/ui/components/button/PipButton.js.map +1 -0
- package/lib/commonjs/ui/components/button/PlayButton.js +113 -0
- package/lib/commonjs/ui/components/button/PlayButton.js.map +1 -0
- package/lib/commonjs/ui/components/button/SkipButton.js +122 -0
- package/lib/commonjs/ui/components/button/SkipButton.js.map +1 -0
- package/lib/commonjs/ui/components/button/actionbutton/ActionButton.js +82 -0
- package/lib/commonjs/ui/components/button/actionbutton/ActionButton.js.map +1 -0
- package/lib/commonjs/ui/components/button/barrel.js +105 -0
- package/lib/commonjs/ui/components/button/barrel.js.map +1 -0
- package/lib/commonjs/ui/components/button/svg/AirplaySvg.js +22 -0
- package/lib/commonjs/ui/components/button/svg/AirplaySvg.js.map +1 -0
- package/lib/commonjs/ui/components/button/svg/ArrowForwardSvg.js +22 -0
- package/lib/commonjs/ui/components/button/svg/ArrowForwardSvg.js.map +1 -0
- package/lib/commonjs/ui/components/button/svg/BackSvg.js +22 -0
- package/lib/commonjs/ui/components/button/svg/BackSvg.js.map +1 -0
- package/lib/commonjs/ui/components/button/svg/BackwardSvg.js +22 -0
- package/lib/commonjs/ui/components/button/svg/BackwardSvg.js.map +1 -0
- package/lib/commonjs/ui/components/button/svg/ChromecastSvg.js +22 -0
- package/lib/commonjs/ui/components/button/svg/ChromecastSvg.js.map +1 -0
- package/lib/commonjs/ui/components/button/svg/ErrorSvg.js +22 -0
- package/lib/commonjs/ui/components/button/svg/ErrorSvg.js.map +1 -0
- package/lib/commonjs/ui/components/button/svg/ForwardSvg.js +22 -0
- package/lib/commonjs/ui/components/button/svg/ForwardSvg.js.map +1 -0
- package/lib/commonjs/ui/components/button/svg/FullscreenEnterSvg.js +22 -0
- package/lib/commonjs/ui/components/button/svg/FullscreenEnterSvg.js.map +1 -0
- package/lib/commonjs/ui/components/button/svg/FullscreenExitSvg.js +22 -0
- package/lib/commonjs/ui/components/button/svg/FullscreenExitSvg.js.map +1 -0
- package/lib/commonjs/ui/components/button/svg/LanguageSvg.js +22 -0
- package/lib/commonjs/ui/components/button/svg/LanguageSvg.js.map +1 -0
- package/lib/commonjs/ui/components/button/svg/ListSvg.js +22 -0
- package/lib/commonjs/ui/components/button/svg/ListSvg.js.map +1 -0
- package/lib/commonjs/ui/components/button/svg/PauseSvg.js +22 -0
- package/lib/commonjs/ui/components/button/svg/PauseSvg.js.map +1 -0
- package/lib/commonjs/ui/components/button/svg/PipEnterSvg.js +22 -0
- package/lib/commonjs/ui/components/button/svg/PipEnterSvg.js.map +1 -0
- package/lib/commonjs/ui/components/button/svg/PipExitSvg.js +22 -0
- package/lib/commonjs/ui/components/button/svg/PipExitSvg.js.map +1 -0
- package/lib/commonjs/ui/components/button/svg/PlaySvg.js +22 -0
- package/lib/commonjs/ui/components/button/svg/PlaySvg.js.map +1 -0
- package/lib/commonjs/ui/components/button/svg/ReplaySvg.js +22 -0
- package/lib/commonjs/ui/components/button/svg/ReplaySvg.js.map +1 -0
- package/lib/commonjs/ui/components/button/svg/SettingsSvg.js +22 -0
- package/lib/commonjs/ui/components/button/svg/SettingsSvg.js.map +1 -0
- package/lib/commonjs/ui/components/button/svg/SvgUtils.js +13 -0
- package/lib/commonjs/ui/components/button/svg/SvgUtils.js.map +1 -0
- package/lib/commonjs/ui/components/button/svg/VolumeOffSvg.js +22 -0
- package/lib/commonjs/ui/components/button/svg/VolumeOffSvg.js.map +1 -0
- package/lib/commonjs/ui/components/button/svg/VolumeUpSvg.js +22 -0
- package/lib/commonjs/ui/components/button/svg/VolumeUpSvg.js.map +1 -0
- package/lib/commonjs/ui/components/button/svg/barrel.js +226 -0
- package/lib/commonjs/ui/components/button/svg/barrel.js.map +1 -0
- package/lib/commonjs/ui/components/button/svg/res/AirPlayButton.html +6 -0
- package/lib/commonjs/ui/components/button/svg/res/Airplay.svg +1 -0
- package/lib/commonjs/ui/components/button/svg/res/ChromecastButton.html +25 -0
- package/lib/commonjs/ui/components/button/svg/res/arrow_forward.svg +1 -0
- package/lib/commonjs/ui/components/button/svg/res/back.svg +1 -0
- package/lib/commonjs/ui/components/button/svg/res/backward.svg +1 -0
- package/lib/commonjs/ui/components/button/svg/res/chromecast-48px.svg +1 -0
- package/lib/commonjs/ui/components/button/svg/res/close.svg +1 -0
- package/lib/commonjs/ui/components/button/svg/res/error.svg +1 -0
- package/lib/commonjs/ui/components/button/svg/res/forward.svg +1 -0
- package/lib/commonjs/ui/components/button/svg/res/fullscreen-enter.svg +1 -0
- package/lib/commonjs/ui/components/button/svg/res/fullscreen-exit.svg +1 -0
- package/lib/commonjs/ui/components/button/svg/res/language.svg +1 -0
- package/lib/commonjs/ui/components/button/svg/res/list.svg +1 -0
- package/lib/commonjs/ui/components/button/svg/res/live.svg +1 -0
- package/lib/commonjs/ui/components/button/svg/res/pause.svg +1 -0
- package/lib/commonjs/ui/components/button/svg/res/pip_enter.svg +1 -0
- package/lib/commonjs/ui/components/button/svg/res/pip_exit.svg +1 -0
- package/lib/commonjs/ui/components/button/svg/res/play.svg +1 -0
- package/lib/commonjs/ui/components/button/svg/res/replay.svg +1 -0
- package/lib/commonjs/ui/components/button/svg/res/settings.svg +1 -0
- package/lib/commonjs/ui/components/button/svg/res/skip-next.svg +1 -0
- package/lib/commonjs/ui/components/button/svg/res/volume-high.svg +1 -0
- package/lib/commonjs/ui/components/button/svg/res/volume-low.svg +1 -0
- package/lib/commonjs/ui/components/button/svg/res/volume-off.svg +1 -0
- package/lib/commonjs/ui/components/controlbar/ControlBar.js +61 -0
- package/lib/commonjs/ui/components/controlbar/ControlBar.js.map +1 -0
- package/lib/commonjs/ui/components/controlbar/Spacer.js +21 -0
- package/lib/commonjs/ui/components/controlbar/Spacer.js.map +1 -0
- package/lib/commonjs/ui/components/controlbar/barrel.js +28 -0
- package/lib/commonjs/ui/components/controlbar/barrel.js.map +1 -0
- package/lib/commonjs/ui/components/menu/LanguageMenuButton.js +175 -0
- package/lib/commonjs/ui/components/menu/LanguageMenuButton.js.map +1 -0
- package/lib/commonjs/ui/components/menu/PlaybackRateSubMenu.js +91 -0
- package/lib/commonjs/ui/components/menu/PlaybackRateSubMenu.js.map +1 -0
- package/lib/commonjs/ui/components/menu/QualitySubMenu.js +145 -0
- package/lib/commonjs/ui/components/menu/QualitySubMenu.js.map +1 -0
- package/lib/commonjs/ui/components/menu/SettingsMenuButton.js +36 -0
- package/lib/commonjs/ui/components/menu/SettingsMenuButton.js.map +1 -0
- package/lib/commonjs/ui/components/menu/barrel.js +61 -0
- package/lib/commonjs/ui/components/menu/barrel.js.map +1 -0
- package/lib/commonjs/ui/components/menu/common/MenuButton.js +34 -0
- package/lib/commonjs/ui/components/menu/common/MenuButton.js.map +1 -0
- package/lib/commonjs/ui/components/menu/common/MenuRadioButton.js +47 -0
- package/lib/commonjs/ui/components/menu/common/MenuRadioButton.js.map +1 -0
- package/lib/commonjs/ui/components/menu/common/MenuTitle.js +38 -0
- package/lib/commonjs/ui/components/menu/common/MenuTitle.js.map +1 -0
- package/lib/commonjs/ui/components/menu/common/MenuView.js +75 -0
- package/lib/commonjs/ui/components/menu/common/MenuView.js.map +1 -0
- package/lib/commonjs/ui/components/menu/common/ScrollableMenu.js +45 -0
- package/lib/commonjs/ui/components/menu/common/ScrollableMenu.js.map +1 -0
- package/lib/commonjs/ui/components/menu/common/SubMenuWithButton.js +65 -0
- package/lib/commonjs/ui/components/menu/common/SubMenuWithButton.js.map +1 -0
- package/lib/commonjs/ui/components/menu/common/barrel.js +72 -0
- package/lib/commonjs/ui/components/menu/common/barrel.js.map +1 -0
- package/lib/commonjs/ui/components/message/CastMessage.js +79 -0
- package/lib/commonjs/ui/components/message/CastMessage.js.map +1 -0
- package/lib/commonjs/ui/components/message/ErrorDisplay.js +53 -0
- package/lib/commonjs/ui/components/message/ErrorDisplay.js.map +1 -0
- package/lib/commonjs/ui/components/message/barrel.js +28 -0
- package/lib/commonjs/ui/components/message/barrel.js.map +1 -0
- package/lib/commonjs/ui/components/seekbar/SeekBar.js +194 -0
- package/lib/commonjs/ui/components/seekbar/SeekBar.js.map +1 -0
- package/lib/commonjs/ui/components/seekbar/barrel.js +28 -0
- package/lib/commonjs/ui/components/seekbar/barrel.js.map +1 -0
- package/lib/commonjs/ui/components/seekbar/thumbnail/SingleThumbnailView.js +45 -0
- package/lib/commonjs/ui/components/seekbar/thumbnail/SingleThumbnailView.js.map +1 -0
- package/lib/commonjs/ui/components/seekbar/thumbnail/Thumbnail.js +18 -0
- package/lib/commonjs/ui/components/seekbar/thumbnail/Thumbnail.js.map +1 -0
- package/lib/commonjs/ui/components/seekbar/thumbnail/ThumbnailView.js +256 -0
- package/lib/commonjs/ui/components/seekbar/thumbnail/ThumbnailView.js.map +1 -0
- package/lib/commonjs/ui/components/seekbar/thumbnail/Urlpolyfill.js +17 -0
- package/lib/commonjs/ui/components/seekbar/thumbnail/Urlpolyfill.js.map +1 -0
- package/lib/commonjs/ui/components/seekbar/thumbnail/Urlpolyfill.web.js +17 -0
- package/lib/commonjs/ui/components/seekbar/thumbnail/Urlpolyfill.web.js.map +1 -0
- package/lib/commonjs/ui/components/seekbar/thumbnail/barrel.js +28 -0
- package/lib/commonjs/ui/components/seekbar/thumbnail/barrel.js.map +1 -0
- package/lib/commonjs/ui/components/timelabel/StaticTimeLabel.js +55 -0
- package/lib/commonjs/ui/components/timelabel/StaticTimeLabel.js.map +1 -0
- package/lib/commonjs/ui/components/timelabel/TimeLabel.js +88 -0
- package/lib/commonjs/ui/components/timelabel/TimeLabel.js.map +1 -0
- package/lib/commonjs/ui/components/timelabel/barrel.js +28 -0
- package/lib/commonjs/ui/components/timelabel/barrel.js.map +1 -0
- package/lib/commonjs/ui/components/uicontroller/UiContainer.js +350 -0
- package/lib/commonjs/ui/components/uicontroller/UiContainer.js.map +1 -0
- package/lib/commonjs/ui/components/uicontroller/UiControls.js +6 -0
- package/lib/commonjs/ui/components/uicontroller/UiControls.js.map +1 -0
- package/lib/commonjs/ui/components/uicontroller/barrel.js +28 -0
- package/lib/commonjs/ui/components/uicontroller/barrel.js.map +1 -0
- package/lib/commonjs/ui/components/util/PlayerContext.js +19 -0
- package/lib/commonjs/ui/components/util/PlayerContext.js.map +1 -0
- package/lib/commonjs/ui/components/util/TrackUtils.js +69 -0
- package/lib/commonjs/ui/components/util/TrackUtils.js.map +1 -0
- package/lib/commonjs/ui/components/util/barrel.js +17 -0
- package/lib/commonjs/ui/components/util/barrel.js.map +1 -0
- package/lib/commonjs/ui/utils/ArrayUtils.js +19 -0
- package/lib/commonjs/ui/utils/ArrayUtils.js.map +1 -0
- package/lib/commonjs/ui/utils/language/Language.js +38 -0
- package/lib/commonjs/ui/utils/language/Language.js.map +1 -0
- package/lib/commonjs/ui/utils/language/languages.json +1658 -0
- package/lib/commonjs/web/platform/BrowserDetection.js +34 -0
- package/lib/commonjs/web/platform/BrowserDetection.js.map +1 -0
- package/lib/commonjs/web/platform/browser.d.js +2 -0
- package/lib/commonjs/web/platform/browser.d.js.map +1 -0
- package/lib/module/api/THEOplayerView.js.map +1 -1
- package/lib/module/api/abr/barrel.js.map +1 -1
- package/lib/module/api/ads/barrel.js.map +1 -1
- package/lib/module/api/backgroundAudio/BackgroundAudioConfiguration.js +2 -0
- package/lib/module/api/backgroundAudio/BackgroundAudioConfiguration.js.map +1 -0
- package/lib/module/api/backgroundAudio/barrel.js +2 -0
- package/lib/module/api/backgroundAudio/barrel.js.map +1 -0
- package/lib/module/api/barrel.js +4 -0
- package/lib/module/api/barrel.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/CastState.js +16 -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/barrel.js.map +1 -1
- package/lib/module/api/error/barrel.js.map +1 -1
- package/lib/module/api/event/AdEvent.js +22 -81
- package/lib/module/api/event/AdEvent.js.map +1 -1
- package/lib/module/api/event/CastEvent.js +6 -13
- package/lib/module/api/event/CastEvent.js.map +1 -1
- package/lib/module/api/event/Event.js +2 -0
- package/lib/module/api/event/Event.js.map +1 -0
- package/lib/module/api/event/EventDispatcher.js +2 -0
- package/lib/module/api/event/EventDispatcher.js.map +1 -0
- package/lib/module/api/event/EventListener.js +2 -0
- package/lib/module/api/event/EventListener.js.map +1 -0
- package/lib/module/api/event/PlayerEvent.js +5 -1
- package/lib/module/api/event/PlayerEvent.js.map +1 -1
- package/lib/module/api/event/TrackEvent.js +10 -15
- package/lib/module/api/event/TrackEvent.js.map +1 -1
- package/lib/module/api/event/barrel.js +1 -0
- package/lib/module/api/event/barrel.js.map +1 -1
- package/lib/module/api/media/MediaControlConfiguration.js +2 -0
- package/lib/module/api/media/MediaControlConfiguration.js.map +1 -0
- package/lib/module/api/media/barrel.js +2 -0
- package/lib/module/api/media/barrel.js.map +1 -0
- package/lib/module/api/pip/PiPConfiguration.js +2 -0
- package/lib/module/api/pip/PiPConfiguration.js.map +1 -0
- package/lib/module/api/pip/barrel.js +2 -0
- package/lib/module/api/pip/barrel.js.map +1 -0
- package/lib/module/api/player/PlayerEventMap.js +37 -0
- package/lib/module/api/player/PlayerEventMap.js.map +1 -0
- package/lib/module/api/player/THEOplayer.js +2 -0
- package/lib/module/api/player/THEOplayer.js.map +1 -0
- package/lib/module/api/player/barrel.js +3 -0
- package/lib/module/api/player/barrel.js.map +1 -0
- package/lib/module/api/presentation/PresentationMode.js +16 -0
- package/lib/module/api/presentation/PresentationMode.js.map +1 -0
- package/lib/module/api/presentation/barrel.js +2 -0
- package/lib/module/api/presentation/barrel.js.map +1 -0
- package/lib/module/api/source/ads/Ads.js +42 -0
- 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/barrel.js.map +1 -1
- package/lib/module/api/source/ads/ssai/barrel.js.map +1 -1
- package/lib/module/api/source/barrel.js.map +1 -1
- package/lib/module/api/source/dash/barrel.js.map +1 -1
- package/lib/module/api/source/drm/barrel.js.map +1 -1
- package/lib/module/api/source/hls/barrel.js.map +1 -1
- package/lib/module/api/source/metadata/barrel.js.map +1 -1
- package/lib/module/api/timeranges/barrel.js.map +1 -1
- package/lib/module/api/track/MediaTrack.js +1 -1
- package/lib/module/api/track/MediaTrack.js.map +1 -1
- package/lib/module/api/track/TextTrack.js +25 -11
- 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 -0
- package/lib/module/api/track/Track.js +17 -0
- package/lib/module/api/track/Track.js.map +1 -1
- package/lib/module/api/track/barrel.js +1 -0
- package/lib/module/api/track/barrel.js.map +1 -1
- package/lib/module/api/utils/TypeUtils.js +8 -4
- 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 +1 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/internal/THEOplayerView.js +104 -224
- 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 +69 -578
- package/lib/module/internal/THEOplayerView.web.js.map +1 -1
- package/lib/module/internal/adapter/NativePlayerState.js +2 -0
- package/lib/module/internal/adapter/NativePlayerState.js.map +1 -0
- package/lib/module/internal/adapter/THEOplayerAdapter.js +385 -0
- package/lib/module/internal/adapter/THEOplayerAdapter.js.map +1 -0
- package/lib/module/internal/adapter/THEOplayerWebAdapter.js +226 -0
- package/lib/module/internal/adapter/THEOplayerWebAdapter.js.map +1 -0
- package/lib/module/internal/adapter/WebEventForwarder.js +273 -0
- package/lib/module/internal/adapter/WebEventForwarder.js.map +1 -0
- package/lib/module/internal/adapter/abr/AbrAdapter.js +33 -0
- package/lib/module/internal/adapter/abr/AbrAdapter.js.map +1 -0
- package/lib/module/internal/adapter/ads/THEOplayerNativeAdsAdapter.js +34 -0
- package/lib/module/internal/adapter/ads/THEOplayerNativeAdsAdapter.js.map +1 -0
- package/lib/module/internal/adapter/ads/THEOplayerNativeGoogleDAI.js +19 -0
- package/lib/module/internal/adapter/ads/THEOplayerNativeGoogleDAI.js.map +1 -0
- package/lib/module/internal/adapter/ads/THEOplayerWebAdsAdapter.js +51 -0
- package/lib/module/internal/adapter/ads/THEOplayerWebAdsAdapter.js.map +1 -0
- package/lib/module/internal/adapter/ads/THEOplayerWebGoogleDAI.js +18 -0
- package/lib/module/internal/adapter/ads/THEOplayerWebGoogleDAI.js.map +1 -0
- package/lib/module/internal/adapter/cast/THEOplayerNativeAirplay.js +40 -0
- package/lib/module/internal/adapter/cast/THEOplayerNativeAirplay.js.map +1 -0
- package/lib/module/internal/adapter/cast/THEOplayerNativeCastAdapter.js +39 -0
- package/lib/module/internal/adapter/cast/THEOplayerNativeCastAdapter.js.map +1 -0
- package/lib/module/internal/adapter/cast/THEOplayerNativeChromecast.js +48 -0
- package/lib/module/internal/adapter/cast/THEOplayerNativeChromecast.js.map +1 -0
- package/lib/module/internal/adapter/cast/THEOplayerWebCastAdapter.js +22 -0
- package/lib/module/internal/adapter/cast/THEOplayerWebCastAdapter.js.map +1 -0
- package/lib/module/internal/adapter/event/BaseEvent.js +8 -0
- package/lib/module/internal/adapter/event/BaseEvent.js.map +1 -0
- package/lib/module/internal/adapter/event/DefaultEventDispatcher.js +35 -0
- package/lib/module/internal/adapter/event/DefaultEventDispatcher.js.map +1 -0
- package/lib/module/internal/adapter/event/PlayerEvents.js +142 -0
- package/lib/module/internal/adapter/event/PlayerEvents.js.map +1 -0
- package/lib/module/internal/adapter/event/native/NativeAdEvent.js +2 -0
- package/lib/module/internal/adapter/event/native/NativeAdEvent.js.map +1 -0
- package/lib/module/internal/adapter/event/native/NativeCastEvent.js +2 -0
- package/lib/module/internal/adapter/event/native/NativeCastEvent.js.map +1 -0
- package/lib/module/internal/adapter/event/native/NativePlayerEvent.js +2 -0
- package/lib/module/internal/adapter/event/native/NativePlayerEvent.js.map +1 -0
- package/lib/module/internal/adapter/event/native/NativeTrackEvent.js +60 -0
- package/lib/module/internal/adapter/event/native/NativeTrackEvent.js.map +1 -0
- package/lib/module/internal/adapter/track/TextTrackStyleAdapter.js +44 -0
- package/lib/module/internal/adapter/track/TextTrackStyleAdapter.js.map +1 -0
- package/lib/module/internal/adapter/web/TrackUtils.js +75 -0
- package/lib/module/internal/adapter/web/TrackUtils.js.map +1 -0
- package/lib/module/internal/adapter/web/WebMediaSession.js +182 -0
- package/lib/module/internal/adapter/web/WebMediaSession.js.map +1 -0
- package/lib/module/internal/adapter/web/WebPresentationModeManager.js +94 -0
- package/lib/module/internal/adapter/web/WebPresentationModeManager.js.map +1 -0
- package/lib/module/internal/drm/ContentProtectionRegistry.js +13 -32
- package/lib/module/internal/drm/ContentProtectionRegistry.js.map +1 -1
- package/lib/module/internal/drm/ContentProtectionRegistry.web.js +0 -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/NativeLicenseRequest.js.map +1 -1
- package/lib/module/internal/drm/NativeLicenseResponse.js.map +1 -1
- package/lib/module/internal/utils/TypeUtils.js +2 -3
- package/lib/module/internal/utils/TypeUtils.js.map +1 -1
- package/lib/module/internal/utils/arrayUtil.js +12 -0
- package/lib/module/internal/utils/arrayUtil.js.map +1 -0
- package/lib/module/ui/THEOplayerDefaultUi.js +74 -0
- package/lib/module/ui/THEOplayerDefaultUi.js.map +1 -0
- package/lib/module/ui/THEOplayerTheme.js +41 -0
- package/lib/module/ui/THEOplayerTheme.js.map +1 -0
- package/lib/module/ui/barrel.js +4 -0
- package/lib/module/ui/barrel.js.map +1 -0
- package/lib/module/ui/components/activityindicator/CenteredDelayedActivityIndicator.js +90 -0
- package/lib/module/ui/components/activityindicator/CenteredDelayedActivityIndicator.js.map +1 -0
- package/lib/module/ui/components/activityindicator/DelayedActivityIndicator.js +26 -0
- package/lib/module/ui/components/activityindicator/DelayedActivityIndicator.js.map +1 -0
- package/lib/module/ui/components/activityindicator/barrel.js +3 -0
- package/lib/module/ui/components/activityindicator/barrel.js.map +1 -0
- package/lib/module/ui/components/barrel.js +10 -0
- package/lib/module/ui/components/barrel.js.map +1 -0
- package/lib/module/ui/components/button/AirplayButton.js +72 -0
- package/lib/module/ui/components/button/AirplayButton.js.map +1 -0
- package/lib/module/ui/components/button/ChromecastButton.js +56 -0
- package/lib/module/ui/components/button/ChromecastButton.js.map +1 -0
- package/lib/module/ui/components/button/ChromecastButton.web.js +72 -0
- package/lib/module/ui/components/button/ChromecastButton.web.js.map +1 -0
- package/lib/module/ui/components/button/FullscreenButton.js +63 -0
- package/lib/module/ui/components/button/FullscreenButton.js.map +1 -0
- package/lib/module/ui/components/button/MuteButton.js +57 -0
- package/lib/module/ui/components/button/MuteButton.js.map +1 -0
- package/lib/module/ui/components/button/PipButton.js +63 -0
- package/lib/module/ui/components/button/PipButton.js.map +1 -0
- package/lib/module/ui/components/button/PlayButton.js +104 -0
- package/lib/module/ui/components/button/PlayButton.js.map +1 -0
- package/lib/module/ui/components/button/SkipButton.js +113 -0
- package/lib/module/ui/components/button/SkipButton.js.map +1 -0
- package/lib/module/ui/components/button/actionbutton/ActionButton.js +72 -0
- package/lib/module/ui/components/button/actionbutton/ActionButton.js.map +1 -0
- package/lib/module/ui/components/button/barrel.js +10 -0
- package/lib/module/ui/components/button/barrel.js.map +1 -0
- package/lib/module/ui/components/button/svg/AirplaySvg.js +12 -0
- package/lib/module/ui/components/button/svg/AirplaySvg.js.map +1 -0
- package/lib/module/ui/components/button/svg/ArrowForwardSvg.js +12 -0
- package/lib/module/ui/components/button/svg/ArrowForwardSvg.js.map +1 -0
- package/lib/module/ui/components/button/svg/BackSvg.js +12 -0
- package/lib/module/ui/components/button/svg/BackSvg.js.map +1 -0
- package/lib/module/ui/components/button/svg/BackwardSvg.js +12 -0
- package/lib/module/ui/components/button/svg/BackwardSvg.js.map +1 -0
- package/lib/module/ui/components/button/svg/ChromecastSvg.js +12 -0
- package/lib/module/ui/components/button/svg/ChromecastSvg.js.map +1 -0
- package/lib/module/ui/components/button/svg/ErrorSvg.js +12 -0
- package/lib/module/ui/components/button/svg/ErrorSvg.js.map +1 -0
- package/lib/module/ui/components/button/svg/ForwardSvg.js +12 -0
- package/lib/module/ui/components/button/svg/ForwardSvg.js.map +1 -0
- package/lib/module/ui/components/button/svg/FullscreenEnterSvg.js +12 -0
- package/lib/module/ui/components/button/svg/FullscreenEnterSvg.js.map +1 -0
- package/lib/module/ui/components/button/svg/FullscreenExitSvg.js +12 -0
- package/lib/module/ui/components/button/svg/FullscreenExitSvg.js.map +1 -0
- package/lib/module/ui/components/button/svg/LanguageSvg.js +12 -0
- package/lib/module/ui/components/button/svg/LanguageSvg.js.map +1 -0
- package/lib/module/ui/components/button/svg/ListSvg.js +12 -0
- package/lib/module/ui/components/button/svg/ListSvg.js.map +1 -0
- package/lib/module/ui/components/button/svg/PauseSvg.js +12 -0
- package/lib/module/ui/components/button/svg/PauseSvg.js.map +1 -0
- package/lib/module/ui/components/button/svg/PipEnterSvg.js +12 -0
- package/lib/module/ui/components/button/svg/PipEnterSvg.js.map +1 -0
- package/lib/module/ui/components/button/svg/PipExitSvg.js +12 -0
- package/lib/module/ui/components/button/svg/PipExitSvg.js.map +1 -0
- package/lib/module/ui/components/button/svg/PlaySvg.js +12 -0
- package/lib/module/ui/components/button/svg/PlaySvg.js.map +1 -0
- package/lib/module/ui/components/button/svg/ReplaySvg.js +12 -0
- package/lib/module/ui/components/button/svg/ReplaySvg.js.map +1 -0
- package/lib/module/ui/components/button/svg/SettingsSvg.js +12 -0
- package/lib/module/ui/components/button/svg/SettingsSvg.js.map +1 -0
- package/lib/module/ui/components/button/svg/SvgUtils.js +5 -0
- package/lib/module/ui/components/button/svg/SvgUtils.js.map +1 -0
- package/lib/module/ui/components/button/svg/VolumeOffSvg.js +12 -0
- package/lib/module/ui/components/button/svg/VolumeOffSvg.js.map +1 -0
- package/lib/module/ui/components/button/svg/VolumeUpSvg.js +12 -0
- package/lib/module/ui/components/button/svg/VolumeUpSvg.js.map +1 -0
- package/lib/module/ui/components/button/svg/barrel.js +21 -0
- package/lib/module/ui/components/button/svg/barrel.js.map +1 -0
- package/lib/module/ui/components/button/svg/res/AirPlayButton.html +6 -0
- package/lib/module/ui/components/button/svg/res/Airplay.svg +1 -0
- package/lib/module/ui/components/button/svg/res/ChromecastButton.html +25 -0
- package/lib/module/ui/components/button/svg/res/arrow_forward.svg +1 -0
- package/lib/module/ui/components/button/svg/res/back.svg +1 -0
- package/lib/module/ui/components/button/svg/res/backward.svg +1 -0
- package/lib/module/ui/components/button/svg/res/chromecast-48px.svg +1 -0
- package/lib/module/ui/components/button/svg/res/close.svg +1 -0
- package/lib/module/ui/components/button/svg/res/error.svg +1 -0
- package/lib/module/ui/components/button/svg/res/forward.svg +1 -0
- package/lib/module/ui/components/button/svg/res/fullscreen-enter.svg +1 -0
- package/lib/module/ui/components/button/svg/res/fullscreen-exit.svg +1 -0
- package/lib/module/ui/components/button/svg/res/language.svg +1 -0
- package/lib/module/ui/components/button/svg/res/list.svg +1 -0
- package/lib/module/ui/components/button/svg/res/live.svg +1 -0
- package/lib/module/ui/components/button/svg/res/pause.svg +1 -0
- package/lib/module/ui/components/button/svg/res/pip_enter.svg +1 -0
- package/lib/module/ui/components/button/svg/res/pip_exit.svg +1 -0
- package/lib/module/ui/components/button/svg/res/play.svg +1 -0
- package/lib/module/ui/components/button/svg/res/replay.svg +1 -0
- package/lib/module/ui/components/button/svg/res/settings.svg +1 -0
- package/lib/module/ui/components/button/svg/res/skip-next.svg +1 -0
- package/lib/module/ui/components/button/svg/res/volume-high.svg +1 -0
- package/lib/module/ui/components/button/svg/res/volume-low.svg +1 -0
- package/lib/module/ui/components/button/svg/res/volume-off.svg +1 -0
- package/lib/module/ui/components/controlbar/ControlBar.js +52 -0
- package/lib/module/ui/components/controlbar/ControlBar.js.map +1 -0
- package/lib/module/ui/components/controlbar/Spacer.js +14 -0
- package/lib/module/ui/components/controlbar/Spacer.js.map +1 -0
- package/lib/module/ui/components/controlbar/barrel.js +3 -0
- package/lib/module/ui/components/controlbar/barrel.js.map +1 -0
- package/lib/module/ui/components/menu/LanguageMenuButton.js +165 -0
- package/lib/module/ui/components/menu/LanguageMenuButton.js.map +1 -0
- package/lib/module/ui/components/menu/PlaybackRateSubMenu.js +80 -0
- package/lib/module/ui/components/menu/PlaybackRateSubMenu.js.map +1 -0
- package/lib/module/ui/components/menu/QualitySubMenu.js +135 -0
- package/lib/module/ui/components/menu/QualitySubMenu.js.map +1 -0
- package/lib/module/ui/components/menu/SettingsMenuButton.js +28 -0
- package/lib/module/ui/components/menu/SettingsMenuButton.js.map +1 -0
- package/lib/module/ui/components/menu/barrel.js +6 -0
- package/lib/module/ui/components/menu/barrel.js.map +1 -0
- package/lib/module/ui/components/menu/common/MenuButton.js +26 -0
- package/lib/module/ui/components/menu/common/MenuButton.js.map +1 -0
- package/lib/module/ui/components/menu/common/MenuRadioButton.js +38 -0
- package/lib/module/ui/components/menu/common/MenuRadioButton.js.map +1 -0
- package/lib/module/ui/components/menu/common/MenuTitle.js +29 -0
- package/lib/module/ui/components/menu/common/MenuTitle.js.map +1 -0
- package/lib/module/ui/components/menu/common/MenuView.js +65 -0
- package/lib/module/ui/components/menu/common/MenuView.js.map +1 -0
- package/lib/module/ui/components/menu/common/ScrollableMenu.js +36 -0
- package/lib/module/ui/components/menu/common/ScrollableMenu.js.map +1 -0
- package/lib/module/ui/components/menu/common/SubMenuWithButton.js +56 -0
- package/lib/module/ui/components/menu/common/SubMenuWithButton.js.map +1 -0
- package/lib/module/ui/components/menu/common/barrel.js +7 -0
- package/lib/module/ui/components/menu/common/barrel.js.map +1 -0
- package/lib/module/ui/components/message/CastMessage.js +70 -0
- package/lib/module/ui/components/message/CastMessage.js.map +1 -0
- package/lib/module/ui/components/message/ErrorDisplay.js +46 -0
- package/lib/module/ui/components/message/ErrorDisplay.js.map +1 -0
- package/lib/module/ui/components/message/barrel.js +3 -0
- package/lib/module/ui/components/message/barrel.js.map +1 -0
- package/lib/module/ui/components/seekbar/SeekBar.js +184 -0
- package/lib/module/ui/components/seekbar/SeekBar.js.map +1 -0
- package/lib/module/ui/components/seekbar/barrel.js +3 -0
- package/lib/module/ui/components/seekbar/barrel.js.map +1 -0
- package/lib/module/ui/components/seekbar/thumbnail/SingleThumbnailView.js +37 -0
- package/lib/module/ui/components/seekbar/thumbnail/SingleThumbnailView.js.map +1 -0
- package/lib/module/ui/components/seekbar/thumbnail/Thumbnail.js +11 -0
- package/lib/module/ui/components/seekbar/thumbnail/Thumbnail.js.map +1 -0
- package/lib/module/ui/components/seekbar/thumbnail/ThumbnailView.js +246 -0
- package/lib/module/ui/components/seekbar/thumbnail/ThumbnailView.js.map +1 -0
- package/lib/module/ui/components/seekbar/thumbnail/Urlpolyfill.js +2 -0
- package/lib/module/ui/components/seekbar/thumbnail/Urlpolyfill.js.map +1 -0
- package/lib/module/ui/components/seekbar/thumbnail/Urlpolyfill.web.js +3 -0
- package/lib/module/ui/components/seekbar/thumbnail/Urlpolyfill.web.js.map +1 -0
- package/lib/module/ui/components/seekbar/thumbnail/barrel.js +3 -0
- package/lib/module/ui/components/seekbar/thumbnail/barrel.js.map +1 -0
- package/lib/module/ui/components/timelabel/StaticTimeLabel.js +48 -0
- package/lib/module/ui/components/timelabel/StaticTimeLabel.js.map +1 -0
- package/lib/module/ui/components/timelabel/TimeLabel.js +78 -0
- package/lib/module/ui/components/timelabel/TimeLabel.js.map +1 -0
- package/lib/module/ui/components/timelabel/barrel.js +3 -0
- package/lib/module/ui/components/timelabel/barrel.js.map +1 -0
- package/lib/module/ui/components/uicontroller/UiContainer.js +336 -0
- package/lib/module/ui/components/uicontroller/UiContainer.js.map +1 -0
- package/lib/module/ui/components/uicontroller/UiControls.js +2 -0
- package/lib/module/ui/components/uicontroller/UiControls.js.map +1 -0
- package/lib/module/ui/components/uicontroller/barrel.js +3 -0
- package/lib/module/ui/components/uicontroller/barrel.js.map +1 -0
- package/lib/module/ui/components/util/PlayerContext.js +11 -0
- package/lib/module/ui/components/util/PlayerContext.js.map +1 -0
- package/lib/module/ui/components/util/TrackUtils.js +60 -0
- package/lib/module/ui/components/util/TrackUtils.js.map +1 -0
- package/lib/module/ui/components/util/barrel.js +2 -0
- package/lib/module/ui/components/util/barrel.js.map +1 -0
- package/lib/module/ui/utils/ArrayUtils.js +12 -0
- package/lib/module/ui/utils/ArrayUtils.js.map +1 -0
- package/lib/module/ui/utils/language/Language.js +27 -0
- package/lib/module/ui/utils/language/Language.js.map +1 -0
- package/lib/module/ui/utils/language/languages.json +1658 -0
- package/lib/module/web/platform/BrowserDetection.js +27 -0
- package/lib/module/web/platform/BrowserDetection.js.map +1 -0
- package/lib/module/web/platform/browser.d.js +2 -0
- package/lib/module/web/platform/browser.d.js.map +1 -0
- package/lib/typescript/api/THEOplayerView.d.ts +21 -0
- package/lib/typescript/api/backgroundAudio/BackgroundAudioConfiguration.d.ts +22 -0
- package/lib/typescript/api/backgroundAudio/barrel.d.ts +1 -0
- package/lib/typescript/api/barrel.d.ts +16 -0
- package/lib/typescript/api/cast/Airplay.d.ts +27 -0
- package/lib/typescript/api/cast/CastAPI.d.ts +25 -0
- package/lib/typescript/api/cast/CastState.d.ts +15 -0
- package/lib/typescript/api/cast/Chromecast.d.ts +39 -0
- package/lib/typescript/api/config/PlayerConfiguration.d.ts +58 -0
- package/lib/typescript/api/event/AdEvent.d.ts +90 -0
- package/lib/typescript/api/event/CastEvent.d.ts +29 -0
- package/lib/typescript/api/event/Event.d.ts +15 -0
- package/lib/typescript/api/event/EventDispatcher.d.ts +44 -0
- package/lib/typescript/api/event/EventListener.d.ts +7 -0
- package/lib/typescript/api/event/PlayerEvent.d.ts +107 -0
- package/lib/typescript/api/event/TrackEvent.d.ts +92 -0
- package/lib/typescript/api/event/barrel.d.ts +5 -0
- package/lib/typescript/api/media/MediaControlConfiguration.d.ts +26 -0
- package/lib/typescript/api/media/barrel.d.ts +1 -0
- package/lib/typescript/api/pip/PiPConfiguration.d.ts +13 -0
- package/lib/typescript/api/pip/barrel.d.ts +1 -0
- package/lib/typescript/api/player/PlayerEventMap.d.ts +158 -0
- package/lib/typescript/api/player/THEOplayer.d.ts +154 -0
- package/lib/typescript/api/player/barrel.d.ts +2 -0
- package/lib/typescript/api/presentation/PresentationMode.d.ts +13 -0
- package/lib/typescript/api/presentation/barrel.d.ts +1 -0
- package/lib/typescript/api/source/ads/Ads.d.ts +99 -0
- package/lib/typescript/api/source/ads/FreeWheelAdDescription.d.ts +85 -0
- package/lib/typescript/api/source/ads/IMAAdDescription.d.ts +25 -0
- package/lib/typescript/api/track/MediaTrack.d.ts +50 -0
- package/lib/typescript/api/track/TextTrack.d.ts +100 -0
- package/lib/typescript/api/track/TextTrackStyle.d.ts +71 -0
- package/lib/typescript/api/track/Track.d.ts +46 -0
- package/lib/typescript/api/track/barrel.d.ts +6 -0
- package/lib/typescript/index.d.ts +4 -0
- package/lib/typescript/internal/THEOplayerView.d.ts +44 -0
- package/lib/typescript/internal/THEOplayerView.web.d.ts +3 -0
- package/lib/typescript/internal/adapter/NativePlayerState.d.ts +27 -0
- package/lib/typescript/internal/adapter/THEOplayerAdapter.d.ts +73 -0
- package/lib/typescript/internal/adapter/THEOplayerWebAdapter.d.ts +70 -0
- package/lib/typescript/internal/adapter/WebEventForwarder.d.ts +52 -0
- package/lib/typescript/internal/adapter/abr/AbrAdapter.d.ts +12 -0
- package/lib/typescript/internal/adapter/ads/THEOplayerNativeAdsAdapter.d.ts +13 -0
- package/lib/typescript/internal/adapter/ads/THEOplayerNativeGoogleDAI.d.ts +9 -0
- package/lib/typescript/internal/adapter/ads/THEOplayerWebAdsAdapter.d.ts +14 -0
- package/lib/typescript/internal/adapter/cast/THEOplayerNativeAirplay.d.ts +15 -0
- package/lib/typescript/internal/adapter/cast/THEOplayerNativeCastAdapter.d.ts +14 -0
- package/lib/typescript/internal/adapter/cast/THEOplayerNativeChromecast.d.ts +18 -0
- package/lib/typescript/internal/adapter/cast/THEOplayerWebCastAdapter.d.ts +9 -0
- package/lib/typescript/internal/adapter/event/BaseEvent.d.ts +6 -0
- package/lib/typescript/internal/adapter/event/DefaultEventDispatcher.d.ts +9 -0
- package/lib/typescript/internal/adapter/event/PlayerEvents.d.ts +99 -0
- package/lib/typescript/internal/adapter/event/native/NativeAdEvent.d.ts +11 -0
- package/lib/typescript/internal/adapter/event/native/NativeCastEvent.d.ts +15 -0
- package/lib/typescript/internal/adapter/event/native/NativePlayerEvent.d.ts +93 -0
- package/lib/typescript/internal/adapter/event/native/NativeTrackEvent.d.ts +102 -0
- package/lib/typescript/internal/adapter/track/TextTrackStyleAdapter.d.ts +17 -0
- package/lib/typescript/internal/adapter/web/TrackUtils.d.ts +9 -0
- package/lib/typescript/internal/adapter/web/WebMediaSession.d.ts +33 -0
- package/lib/typescript/internal/adapter/web/WebPresentationModeManager.d.ts +15 -0
- package/lib/typescript/internal/utils/arrayUtil.d.ts +2 -0
- package/lib/typescript/ui/THEOplayerDefaultUi.d.ts +35 -0
- package/lib/typescript/ui/THEOplayerTheme.d.ts +84 -0
- package/lib/typescript/ui/barrel.d.ts +3 -0
- package/lib/typescript/ui/components/activityindicator/CenteredDelayedActivityIndicator.d.ts +25 -0
- package/lib/typescript/ui/components/activityindicator/DelayedActivityIndicator.d.ts +9 -0
- package/lib/typescript/ui/components/activityindicator/barrel.d.ts +2 -0
- package/lib/typescript/ui/components/barrel.d.ts +9 -0
- package/lib/typescript/ui/components/button/AirplayButton.d.ts +18 -0
- package/lib/typescript/ui/components/button/ChromecastButton.d.ts +19 -0
- package/lib/typescript/ui/components/button/ChromecastButton.web.d.ts +19 -0
- package/lib/typescript/ui/components/button/FullscreenButton.d.ts +17 -0
- package/lib/typescript/ui/components/button/MuteButton.d.ts +16 -0
- package/lib/typescript/ui/components/button/PipButton.d.ts +17 -0
- package/lib/typescript/ui/components/button/PlayButton.d.ts +28 -0
- package/lib/typescript/ui/components/button/SkipButton.d.ts +33 -0
- package/lib/typescript/ui/components/button/actionbutton/ActionButton.d.ts +41 -0
- package/lib/typescript/ui/components/button/barrel.d.ts +9 -0
- package/lib/typescript/ui/components/button/svg/AirplaySvg.d.ts +3 -0
- package/lib/typescript/ui/components/button/svg/ArrowForwardSvg.d.ts +3 -0
- package/lib/typescript/ui/components/button/svg/BackSvg.d.ts +3 -0
- package/lib/typescript/ui/components/button/svg/BackwardSvg.d.ts +3 -0
- package/lib/typescript/ui/components/button/svg/ChromecastSvg.d.ts +3 -0
- package/lib/typescript/ui/components/button/svg/ErrorSvg.d.ts +3 -0
- package/lib/typescript/ui/components/button/svg/ForwardSvg.d.ts +3 -0
- package/lib/typescript/ui/components/button/svg/FullscreenEnterSvg.d.ts +3 -0
- package/lib/typescript/ui/components/button/svg/FullscreenExitSvg.d.ts +3 -0
- package/lib/typescript/ui/components/button/svg/LanguageSvg.d.ts +3 -0
- package/lib/typescript/ui/components/button/svg/ListSvg.d.ts +3 -0
- package/lib/typescript/ui/components/button/svg/PauseSvg.d.ts +3 -0
- package/lib/typescript/ui/components/button/svg/PipEnterSvg.d.ts +3 -0
- package/lib/typescript/ui/components/button/svg/PipExitSvg.d.ts +3 -0
- package/lib/typescript/ui/components/button/svg/PlaySvg.d.ts +3 -0
- package/lib/typescript/ui/components/button/svg/ReplaySvg.d.ts +3 -0
- package/lib/typescript/ui/components/button/svg/SettingsSvg.d.ts +3 -0
- package/lib/typescript/ui/components/button/svg/SvgUtils.d.ts +3 -0
- package/lib/typescript/ui/components/button/svg/VolumeOffSvg.d.ts +3 -0
- package/lib/typescript/ui/components/button/svg/VolumeUpSvg.d.ts +3 -0
- package/lib/typescript/ui/components/button/svg/barrel.d.ts +20 -0
- package/lib/typescript/ui/components/controlbar/ControlBar.d.ts +39 -0
- package/lib/typescript/ui/components/controlbar/Spacer.d.ts +5 -0
- package/lib/typescript/ui/components/controlbar/barrel.d.ts +2 -0
- package/lib/typescript/ui/components/menu/LanguageMenuButton.d.ts +40 -0
- package/lib/typescript/ui/components/menu/PlaybackRateSubMenu.d.ts +36 -0
- package/lib/typescript/ui/components/menu/QualitySubMenu.d.ts +29 -0
- package/lib/typescript/ui/components/menu/SettingsMenuButton.d.ts +12 -0
- package/lib/typescript/ui/components/menu/barrel.d.ts +5 -0
- package/lib/typescript/ui/components/menu/common/MenuButton.d.ts +25 -0
- package/lib/typescript/ui/components/menu/common/MenuRadioButton.d.ts +33 -0
- package/lib/typescript/ui/components/menu/common/MenuTitle.d.ts +20 -0
- package/lib/typescript/ui/components/menu/common/MenuView.d.ts +21 -0
- package/lib/typescript/ui/components/menu/common/ScrollableMenu.d.ts +23 -0
- package/lib/typescript/ui/components/menu/common/SubMenuWithButton.d.ts +29 -0
- package/lib/typescript/ui/components/menu/common/barrel.d.ts +6 -0
- package/lib/typescript/ui/components/message/CastMessage.d.ts +16 -0
- package/lib/typescript/ui/components/message/ErrorDisplay.d.ts +12 -0
- package/lib/typescript/ui/components/message/barrel.d.ts +2 -0
- package/lib/typescript/ui/components/seekbar/SeekBar.d.ts +41 -0
- package/lib/typescript/ui/components/seekbar/barrel.d.ts +2 -0
- package/lib/typescript/ui/components/seekbar/thumbnail/SingleThumbnailView.d.ts +8 -0
- package/lib/typescript/ui/components/seekbar/thumbnail/Thumbnail.d.ts +56 -0
- package/lib/typescript/ui/components/seekbar/thumbnail/ThumbnailView.d.ts +60 -0
- package/lib/typescript/ui/components/seekbar/thumbnail/Urlpolyfill.d.ts +1 -0
- package/lib/typescript/ui/components/seekbar/thumbnail/Urlpolyfill.web.d.ts +1 -0
- package/lib/typescript/ui/components/seekbar/thumbnail/barrel.d.ts +2 -0
- package/lib/typescript/ui/components/timelabel/StaticTimeLabel.d.ts +24 -0
- package/lib/typescript/ui/components/timelabel/TimeLabel.d.ts +32 -0
- package/lib/typescript/ui/components/timelabel/barrel.d.ts +2 -0
- package/lib/typescript/ui/components/uicontroller/UiContainer.d.ts +115 -0
- package/lib/typescript/ui/components/uicontroller/UiControls.d.ts +14 -0
- package/lib/typescript/ui/components/uicontroller/barrel.d.ts +2 -0
- package/lib/typescript/ui/components/util/PlayerContext.d.ts +22 -0
- package/lib/typescript/ui/components/util/TrackUtils.d.ts +10 -0
- package/lib/typescript/ui/components/util/barrel.d.ts +1 -0
- package/lib/typescript/ui/utils/ArrayUtils.d.ts +2 -0
- package/lib/typescript/ui/utils/language/Language.d.ts +19 -0
- package/lib/typescript/web/platform/BrowserDetection.d.ts +23 -0
- package/package.json +15 -9
- package/react-native-theoplayer.json +8 -0
- package/react-native-theoplayer.podspec +32 -6
- package/src/api/THEOplayerView.ts +5 -248
- package/src/api/backgroundAudio/BackgroundAudioConfiguration.ts +23 -0
- package/src/api/backgroundAudio/barrel.ts +1 -0
- package/src/api/barrel.ts +4 -0
- package/src/api/cast/Airplay.ts +3 -3
- package/src/api/cast/CastAPI.ts +3 -4
- package/src/api/cast/CastState.ts +6 -1
- package/src/api/cast/Chromecast.ts +3 -3
- package/src/api/config/PlayerConfiguration.ts +38 -0
- package/src/api/event/AdEvent.ts +25 -31
- package/src/api/event/CastEvent.ts +14 -20
- package/src/api/event/Event.ts +16 -0
- package/src/api/event/EventDispatcher.ts +48 -0
- package/src/api/event/EventListener.ts +8 -0
- package/src/api/event/PlayerEvent.ts +69 -8
- package/src/api/event/TrackEvent.ts +28 -29
- package/src/api/event/barrel.ts +1 -0
- package/src/api/media/MediaControlConfiguration.ts +26 -0
- package/src/api/media/barrel.ts +1 -0
- package/src/api/pip/PiPConfiguration.ts +13 -0
- package/src/api/pip/barrel.ts +1 -0
- package/src/api/player/PlayerEventMap.ts +198 -0
- package/src/api/player/THEOplayer.ts +185 -0
- package/src/api/player/barrel.ts +2 -0
- package/src/api/presentation/PresentationMode.ts +14 -0
- package/src/api/presentation/barrel.ts +1 -0
- package/src/api/source/ads/Ads.ts +6 -1
- package/src/api/source/ads/FreeWheelAdDescription.ts +2 -2
- package/src/api/source/ads/IMAAdDescription.ts +2 -2
- package/src/api/track/MediaTrack.ts +2 -11
- package/src/api/track/TextTrack.ts +20 -15
- package/src/api/track/TextTrackStyle.ts +77 -0
- package/src/api/track/Track.ts +12 -0
- package/src/api/track/barrel.ts +1 -0
- package/src/index.tsx +1 -0
- package/src/internal/THEOplayerView.tsx +209 -236
- package/src/internal/THEOplayerView.web.tsx +82 -494
- package/src/internal/adapter/NativePlayerState.ts +28 -0
- package/src/internal/adapter/THEOplayerAdapter.ts +456 -0
- package/src/internal/adapter/THEOplayerWebAdapter.ts +275 -0
- package/src/internal/adapter/WebEventForwarder.ts +399 -0
- package/src/internal/adapter/abr/AbrAdapter.ts +37 -0
- package/src/internal/adapter/ads/THEOplayerNativeAdsAdapter.ts +39 -0
- package/src/internal/adapter/ads/THEOplayerNativeGoogleDAI.ts +22 -0
- package/src/internal/adapter/ads/THEOplayerWebAdsAdapter.ts +51 -0
- package/src/internal/adapter/cast/THEOplayerNativeAirplay.ts +47 -0
- package/src/internal/adapter/cast/THEOplayerNativeCastAdapter.ts +39 -0
- package/src/internal/adapter/cast/THEOplayerNativeChromecast.ts +57 -0
- package/src/internal/adapter/cast/THEOplayerWebCastAdapter.ts +22 -0
- package/src/internal/adapter/event/BaseEvent.ts +5 -0
- package/src/internal/adapter/event/DefaultEventDispatcher.ts +35 -0
- package/src/internal/adapter/event/PlayerEvents.ts +174 -0
- package/src/internal/adapter/event/native/NativeAdEvent.ts +13 -0
- package/src/internal/adapter/event/native/NativeCastEvent.ts +22 -0
- package/src/internal/adapter/event/native/NativePlayerEvent.ts +111 -0
- package/src/internal/adapter/event/native/NativeTrackEvent.ts +159 -0
- package/src/internal/adapter/track/TextTrackStyleAdapter.ts +55 -0
- package/src/internal/adapter/web/TrackUtils.ts +73 -0
- package/src/internal/adapter/web/WebMediaSession.ts +193 -0
- package/src/internal/adapter/web/WebPresentationModeManager.ts +96 -0
- package/src/internal/utils/arrayUtil.ts +12 -0
- package/src/ui/THEOplayerDefaultUi.tsx +108 -0
- package/src/ui/THEOplayerTheme.ts +112 -0
- package/src/ui/barrel.ts +3 -0
- package/src/ui/components/activityindicator/CenteredDelayedActivityIndicator.tsx +96 -0
- package/src/ui/components/activityindicator/DelayedActivityIndicator.tsx +32 -0
- package/src/ui/components/activityindicator/barrel.ts +2 -0
- package/src/ui/components/barrel.ts +9 -0
- package/src/ui/components/button/AirplayButton.tsx +64 -0
- package/src/ui/components/button/ChromecastButton.tsx +60 -0
- package/src/ui/components/button/ChromecastButton.web.tsx +66 -0
- package/src/ui/components/button/FullscreenButton.tsx +60 -0
- package/src/ui/components/button/MuteButton.tsx +52 -0
- package/src/ui/components/button/PipButton.tsx +61 -0
- package/src/ui/components/button/PlayButton.tsx +107 -0
- package/src/ui/components/button/SkipButton.tsx +112 -0
- package/src/ui/components/button/actionbutton/ActionButton.tsx +105 -0
- package/src/ui/components/button/barrel.ts +9 -0
- package/src/ui/components/button/svg/AirplaySvg.tsx +18 -0
- package/src/ui/components/button/svg/ArrowForwardSvg.tsx +18 -0
- package/src/ui/components/button/svg/BackSvg.tsx +18 -0
- package/src/ui/components/button/svg/BackwardSvg.tsx +18 -0
- package/src/ui/components/button/svg/ChromecastSvg.tsx +18 -0
- package/src/ui/components/button/svg/ErrorSvg.tsx +18 -0
- package/src/ui/components/button/svg/ForwardSvg.tsx +18 -0
- package/src/ui/components/button/svg/FullscreenEnterSvg.tsx +18 -0
- package/src/ui/components/button/svg/FullscreenExitSvg.tsx +18 -0
- package/src/ui/components/button/svg/LanguageSvg.tsx +18 -0
- package/src/ui/components/button/svg/ListSvg.tsx +18 -0
- package/src/ui/components/button/svg/PauseSvg.tsx +18 -0
- package/src/ui/components/button/svg/PipEnterSvg.tsx +18 -0
- package/src/ui/components/button/svg/PipExitSvg.tsx +18 -0
- package/src/ui/components/button/svg/PlaySvg.tsx +18 -0
- package/src/ui/components/button/svg/ReplaySvg.tsx +18 -0
- package/src/ui/components/button/svg/SettingsSvg.tsx +18 -0
- package/src/ui/components/button/svg/SvgUtils.ts +4 -0
- package/src/ui/components/button/svg/VolumeOffSvg.tsx +18 -0
- package/src/ui/components/button/svg/VolumeUpSvg.tsx +18 -0
- package/src/ui/components/button/svg/barrel.ts +20 -0
- package/src/ui/components/button/svg/res/AirPlayButton.html +6 -0
- package/src/ui/components/button/svg/res/Airplay.svg +1 -0
- package/src/ui/components/button/svg/res/ChromecastButton.html +25 -0
- package/src/ui/components/button/svg/res/arrow_forward.svg +1 -0
- package/src/ui/components/button/svg/res/back.svg +1 -0
- package/src/ui/components/button/svg/res/backward.svg +1 -0
- package/src/ui/components/button/svg/res/chromecast-48px.svg +1 -0
- package/src/ui/components/button/svg/res/close.svg +1 -0
- package/src/ui/components/button/svg/res/error.svg +1 -0
- package/src/ui/components/button/svg/res/forward.svg +1 -0
- package/src/ui/components/button/svg/res/fullscreen-enter.svg +1 -0
- package/src/ui/components/button/svg/res/fullscreen-exit.svg +1 -0
- package/src/ui/components/button/svg/res/language.svg +1 -0
- package/src/ui/components/button/svg/res/list.svg +1 -0
- package/src/ui/components/button/svg/res/live.svg +1 -0
- package/src/ui/components/button/svg/res/pause.svg +1 -0
- package/src/ui/components/button/svg/res/pip_enter.svg +1 -0
- package/src/ui/components/button/svg/res/pip_exit.svg +1 -0
- package/src/ui/components/button/svg/res/play.svg +1 -0
- package/src/ui/components/button/svg/res/replay.svg +1 -0
- package/src/ui/components/button/svg/res/settings.svg +1 -0
- package/src/ui/components/button/svg/res/skip-next.svg +1 -0
- package/src/ui/components/button/svg/res/volume-high.svg +1 -0
- package/src/ui/components/button/svg/res/volume-low.svg +1 -0
- package/src/ui/components/button/svg/res/volume-off.svg +1 -0
- package/src/ui/components/controlbar/ControlBar.tsx +69 -0
- package/src/ui/components/controlbar/Spacer.tsx +9 -0
- package/src/ui/components/controlbar/barrel.ts +2 -0
- package/src/ui/components/menu/LanguageMenuButton.tsx +192 -0
- package/src/ui/components/menu/PlaybackRateSubMenu.tsx +93 -0
- package/src/ui/components/menu/QualitySubMenu.tsx +148 -0
- package/src/ui/components/menu/SettingsMenuButton.tsx +25 -0
- package/src/ui/components/menu/barrel.ts +5 -0
- package/src/ui/components/menu/common/MenuButton.tsx +49 -0
- package/src/ui/components/menu/common/MenuRadioButton.tsx +65 -0
- package/src/ui/components/menu/common/MenuTitle.tsx +37 -0
- package/src/ui/components/menu/common/MenuView.tsx +62 -0
- package/src/ui/components/menu/common/ScrollableMenu.tsx +43 -0
- package/src/ui/components/menu/common/SubMenuWithButton.tsx +58 -0
- package/src/ui/components/menu/common/barrel.ts +6 -0
- package/src/ui/components/message/CastMessage.tsx +74 -0
- package/src/ui/components/message/ErrorDisplay.tsx +43 -0
- package/src/ui/components/message/barrel.ts +2 -0
- package/src/ui/components/seekbar/SeekBar.tsx +178 -0
- package/src/ui/components/seekbar/barrel.ts +2 -0
- package/src/ui/components/seekbar/thumbnail/SingleThumbnailView.tsx +38 -0
- package/src/ui/components/seekbar/thumbnail/Thumbnail.ts +72 -0
- package/src/ui/components/seekbar/thumbnail/ThumbnailView.tsx +266 -0
- package/src/ui/components/seekbar/thumbnail/Urlpolyfill.ts +1 -0
- package/src/ui/components/seekbar/thumbnail/Urlpolyfill.web.ts +2 -0
- package/src/ui/components/seekbar/thumbnail/barrel.ts +2 -0
- package/src/ui/components/timelabel/StaticTimeLabel.tsx +63 -0
- package/src/ui/components/timelabel/TimeLabel.tsx +79 -0
- package/src/ui/components/timelabel/barrel.ts +2 -0
- package/src/ui/components/uicontroller/UiContainer.tsx +355 -0
- package/src/ui/components/uicontroller/UiControls.ts +31 -0
- package/src/ui/components/uicontroller/barrel.ts +2 -0
- package/src/ui/components/util/PlayerContext.ts +29 -0
- package/src/ui/components/util/TrackUtils.ts +62 -0
- package/src/ui/components/util/barrel.ts +1 -0
- package/src/ui/utils/ArrayUtils.ts +12 -0
- package/src/ui/utils/language/Language.ts +38 -0
- package/src/ui/utils/language/languages.json +1658 -0
- package/src/web/platform/BrowserDetection.ts +38 -0
- package/src/web/platform/browser.d.ts +43 -0
- package/android/local/com/theoplayer/theoplayer-sdk-android/ads-wrapper/4.3.0/ads-wrapper-4.3.0.aar +0 -0
- package/android/local/com/theoplayer/theoplayer-sdk-android/ads-wrapper/4.3.0/ads-wrapper-4.3.0.pom +0 -9
- package/ios/custom/Frameworks/ios/put_custom_ios_xcframework_here.txt +0 -2
- package/ios/custom/Frameworks/tvos/put_custom_tvos_xcframework_here.txt +0 -2
- package/ios/custom/react-native-theoplayer_custom.podspec +0 -46
- package/ios/custom/theofeatures.sh +0 -14
- package/lib/commonjs/internal/ads/THEOplayerNativeAdsAPI.js +0 -54
- package/lib/commonjs/internal/ads/THEOplayerNativeAdsAPI.js.map +0 -1
- package/lib/commonjs/internal/ads/THEOplayerNativeGoogleDAI.js +0 -34
- package/lib/commonjs/internal/ads/THEOplayerNativeGoogleDAI.js.map +0 -1
- package/lib/commonjs/internal/ads/THEOplayerWebAdsAPI.js +0 -78
- package/lib/commonjs/internal/ads/THEOplayerWebAdsAPI.js.map +0 -1
- package/lib/commonjs/internal/ads/THEOplayerWebGoogleDAI.js +0 -32
- package/lib/commonjs/internal/ads/THEOplayerWebGoogleDAI.js.map +0 -1
- package/lib/commonjs/internal/cast/THEOplayerNativeAirplay.js +0 -34
- package/lib/commonjs/internal/cast/THEOplayerNativeAirplay.js.map +0 -1
- package/lib/commonjs/internal/cast/THEOplayerNativeCastApi.js +0 -46
- package/lib/commonjs/internal/cast/THEOplayerNativeCastApi.js.map +0 -1
- package/lib/commonjs/internal/cast/THEOplayerNativeChromecast.js +0 -42
- package/lib/commonjs/internal/cast/THEOplayerNativeChromecast.js.map +0 -1
- package/lib/commonjs/internal/cast/THEOplayerWebCastApi.js +0 -31
- package/lib/commonjs/internal/cast/THEOplayerWebCastApi.js.map +0 -1
- package/lib/commonjs/internal/web/TrackUtils.js +0 -87
- package/lib/commonjs/internal/web/TrackUtils.js.map +0 -1
- package/lib/commonjs/internal/web/stub/CastButtonStub.js +0 -16
- package/lib/commonjs/internal/web/stub/CastButtonStub.js.map +0 -1
- package/lib/module/internal/ads/THEOplayerNativeAdsAPI.js +0 -43
- package/lib/module/internal/ads/THEOplayerNativeAdsAPI.js.map +0 -1
- package/lib/module/internal/ads/THEOplayerNativeGoogleDAI.js +0 -24
- package/lib/module/internal/ads/THEOplayerNativeGoogleDAI.js.map +0 -1
- package/lib/module/internal/ads/THEOplayerWebAdsAPI.js +0 -68
- package/lib/module/internal/ads/THEOplayerWebAdsAPI.js.map +0 -1
- package/lib/module/internal/ads/THEOplayerWebGoogleDAI.js +0 -23
- package/lib/module/internal/ads/THEOplayerWebGoogleDAI.js.map +0 -1
- package/lib/module/internal/cast/THEOplayerNativeAirplay.js +0 -24
- package/lib/module/internal/cast/THEOplayerNativeAirplay.js.map +0 -1
- package/lib/module/internal/cast/THEOplayerNativeCastApi.js +0 -34
- package/lib/module/internal/cast/THEOplayerNativeCastApi.js.map +0 -1
- package/lib/module/internal/cast/THEOplayerNativeChromecast.js +0 -32
- package/lib/module/internal/cast/THEOplayerNativeChromecast.js.map +0 -1
- package/lib/module/internal/cast/THEOplayerWebCastApi.js +0 -22
- package/lib/module/internal/cast/THEOplayerWebCastApi.js.map +0 -1
- package/lib/module/internal/web/TrackUtils.js +0 -72
- package/lib/module/internal/web/TrackUtils.js.map +0 -1
- package/lib/module/internal/web/stub/CastButtonStub.js +0 -6
- package/lib/module/internal/web/stub/CastButtonStub.js.map +0 -1
- package/lib/typescript/babel.config.d.ts +0 -1
- package/lib/typescript/lib/commonjs/api/THEOplayerView.d.ts +0 -1
- package/lib/typescript/lib/commonjs/api/abr/ABRConfiguration.d.ts +0 -0
- package/lib/typescript/lib/commonjs/api/abr/barrel.d.ts +0 -1
- package/lib/typescript/lib/commonjs/api/ads/Ad.d.ts +0 -1
- package/lib/typescript/lib/commonjs/api/ads/AdBreak.d.ts +0 -1
- package/lib/typescript/lib/commonjs/api/ads/AdsAPI.d.ts +0 -1
- package/lib/typescript/lib/commonjs/api/ads/AdsConfiguration.d.ts +0 -1
- package/lib/typescript/lib/commonjs/api/ads/CompanionAd.d.ts +0 -0
- package/lib/typescript/lib/commonjs/api/ads/GoogleDai.d.ts +0 -0
- package/lib/typescript/lib/commonjs/api/ads/GoogleImaAd.d.ts +0 -1
- package/lib/typescript/lib/commonjs/api/ads/GoogleImaConfiguration.d.ts +0 -0
- package/lib/typescript/lib/commonjs/api/ads/barrel.d.ts +0 -1
- package/lib/typescript/lib/commonjs/api/barrel.d.ts +0 -1
- package/lib/typescript/lib/commonjs/api/cast/Airplay.d.ts +0 -1
- package/lib/typescript/lib/commonjs/api/cast/CastAPI.d.ts +0 -1
- package/lib/typescript/lib/commonjs/api/cast/CastConfiguration.d.ts +0 -0
- package/lib/typescript/lib/commonjs/api/cast/CastState.d.ts +0 -0
- package/lib/typescript/lib/commonjs/api/cast/Chromecast.d.ts +0 -1
- package/lib/typescript/lib/commonjs/api/cast/barrel.d.ts +0 -1
- package/lib/typescript/lib/commonjs/api/config/PlayerConfiguration.d.ts +0 -1
- package/lib/typescript/lib/commonjs/api/config/barrel.d.ts +0 -1
- package/lib/typescript/lib/commonjs/api/drm/ContentProtectionAPI.d.ts +0 -1
- package/lib/typescript/lib/commonjs/api/drm/ContentProtectionIntegration.d.ts +0 -1
- package/lib/typescript/lib/commonjs/api/drm/ContentProtectionIntegrationFactory.d.ts +0 -1
- package/lib/typescript/lib/commonjs/api/drm/ContentProtectionRequest.d.ts +0 -0
- package/lib/typescript/lib/commonjs/api/drm/ContentProtectionResponse.d.ts +0 -1
- package/lib/typescript/lib/commonjs/api/drm/barrel.d.ts +0 -1
- package/lib/typescript/lib/commonjs/api/error/ChromecastError.d.ts +0 -0
- package/lib/typescript/lib/commonjs/api/error/PlayerError.d.ts +0 -0
- package/lib/typescript/lib/commonjs/api/error/barrel.d.ts +0 -1
- package/lib/typescript/lib/commonjs/api/event/AdEvent.d.ts +0 -2
- package/lib/typescript/lib/commonjs/api/event/CastEvent.d.ts +0 -2
- package/lib/typescript/lib/commonjs/api/event/PlayerEvent.d.ts +0 -1
- package/lib/typescript/lib/commonjs/api/event/TrackEvent.d.ts +0 -9
- package/lib/typescript/lib/commonjs/api/event/barrel.d.ts +0 -1
- package/lib/typescript/lib/commonjs/api/source/SourceDescription.d.ts +0 -1
- package/lib/typescript/lib/commonjs/api/source/ads/Ads.d.ts +0 -0
- package/lib/typescript/lib/commonjs/api/source/ads/FreeWheelAdDescription.d.ts +0 -1
- package/lib/typescript/lib/commonjs/api/source/ads/IMAAdDescription.d.ts +0 -1
- package/lib/typescript/lib/commonjs/api/source/ads/SpotXAdDescription.d.ts +0 -1
- package/lib/typescript/lib/commonjs/api/source/ads/THEOplayerAdDescription.d.ts +0 -1
- package/lib/typescript/lib/commonjs/api/source/ads/barrel.d.ts +0 -1
- package/lib/typescript/lib/commonjs/api/source/ads/ssai/GoogleDAIConfiguration.d.ts +0 -1
- package/lib/typescript/lib/commonjs/api/source/ads/ssai/ImagineServerSideAdInsertionConfiguration.d.ts +0 -1
- package/lib/typescript/lib/commonjs/api/source/ads/ssai/ServerSideAdInsertionConfiguration.d.ts +0 -1
- package/lib/typescript/lib/commonjs/api/source/ads/ssai/YospaceServerSideAdInsertionConfiguration.d.ts +0 -1
- package/lib/typescript/lib/commonjs/api/source/ads/ssai/barrel.d.ts +0 -1
- package/lib/typescript/lib/commonjs/api/source/barrel.d.ts +0 -1
- package/lib/typescript/lib/commonjs/api/source/dash/DashPlaybackConfiguration.d.ts +0 -0
- package/lib/typescript/lib/commonjs/api/source/dash/barrel.d.ts +0 -1
- package/lib/typescript/lib/commonjs/api/source/drm/DRMConfiguration.d.ts +0 -0
- package/lib/typescript/lib/commonjs/api/source/drm/barrel.d.ts +0 -1
- package/lib/typescript/lib/commonjs/api/source/hls/HlsPlaybackConfiguration.d.ts +0 -0
- package/lib/typescript/lib/commonjs/api/source/hls/barrel.d.ts +0 -1
- package/lib/typescript/lib/commonjs/api/source/metadata/MetadataDescription.d.ts +0 -0
- package/lib/typescript/lib/commonjs/api/source/metadata/barrel.d.ts +0 -1
- package/lib/typescript/lib/commonjs/api/timeranges/TimeRange.d.ts +0 -0
- package/lib/typescript/lib/commonjs/api/timeranges/barrel.d.ts +0 -1
- package/lib/typescript/lib/commonjs/api/track/MediaTrack.d.ts +0 -9
- package/lib/typescript/lib/commonjs/api/track/Quality.d.ts +0 -0
- package/lib/typescript/lib/commonjs/api/track/TextTrack.d.ts +0 -21
- package/lib/typescript/lib/commonjs/api/track/TextTrackCue.d.ts +0 -0
- package/lib/typescript/lib/commonjs/api/track/Track.d.ts +0 -0
- package/lib/typescript/lib/commonjs/api/track/barrel.d.ts +0 -1
- package/lib/typescript/lib/commonjs/api/utils/TypeUtils.d.ts +0 -13
- package/lib/typescript/lib/commonjs/api/utils/barrel.d.ts +0 -1
- package/lib/typescript/lib/commonjs/index.d.ts +0 -5
- package/lib/typescript/lib/commonjs/internal/THEOplayerView.d.ts +0 -24
- package/lib/typescript/lib/commonjs/internal/THEOplayerView.style.d.ts +0 -12
- package/lib/typescript/lib/commonjs/internal/THEOplayerView.web.d.ts +0 -24
- package/lib/typescript/lib/commonjs/internal/ads/THEOplayerNativeAdsAPI.d.ts +0 -14
- package/lib/typescript/lib/commonjs/internal/ads/THEOplayerNativeGoogleDAI.d.ts +0 -9
- package/lib/typescript/lib/commonjs/internal/ads/THEOplayerWebAdsAPI.d.ts +0 -14
- package/lib/typescript/lib/commonjs/internal/ads/THEOplayerWebGoogleDAI.d.ts +0 -9
- package/lib/typescript/lib/commonjs/internal/cast/THEOplayerNativeAirplay.d.ts +0 -9
- package/lib/typescript/lib/commonjs/internal/cast/THEOplayerNativeCastApi.d.ts +0 -12
- package/lib/typescript/lib/commonjs/internal/cast/THEOplayerNativeChromecast.d.ts +0 -11
- package/lib/typescript/lib/commonjs/internal/cast/THEOplayerWebCastApi.d.ts +0 -8
- package/lib/typescript/lib/commonjs/internal/drm/ContentProtectionRegistry.d.ts +0 -14
- package/lib/typescript/lib/commonjs/internal/drm/ContentProtectionRegistry.web.d.ts +0 -5
- package/lib/typescript/lib/commonjs/internal/drm/NativeCertificateRequest.d.ts +0 -18
- package/lib/typescript/lib/commonjs/internal/drm/NativeCertificateResponse.d.ts +0 -21
- package/lib/typescript/lib/commonjs/internal/drm/NativeContentProtectionEvent.d.ts +0 -0
- package/lib/typescript/lib/commonjs/internal/drm/NativeLicenseRequest.d.ts +0 -20
- package/lib/typescript/lib/commonjs/internal/drm/NativeLicenseResponse.d.ts +0 -22
- package/lib/typescript/lib/commonjs/internal/utils/TypeUtils.d.ts +0 -6
- package/lib/typescript/lib/commonjs/internal/web/TrackUtils.d.ts +0 -32
- package/lib/typescript/lib/commonjs/internal/web/stub/CastButtonStub.d.ts +0 -2
- package/lib/typescript/lib/module/api/THEOplayerView.d.ts +0 -1
- package/lib/typescript/lib/module/api/abr/ABRConfiguration.d.ts +0 -0
- package/lib/typescript/lib/module/api/abr/barrel.d.ts +0 -1
- package/lib/typescript/lib/module/api/ads/Ad.d.ts +0 -1
- package/lib/typescript/lib/module/api/ads/AdBreak.d.ts +0 -1
- package/lib/typescript/lib/module/api/ads/AdsAPI.d.ts +0 -1
- package/lib/typescript/lib/module/api/ads/AdsConfiguration.d.ts +0 -1
- package/lib/typescript/lib/module/api/ads/CompanionAd.d.ts +0 -0
- package/lib/typescript/lib/module/api/ads/GoogleDai.d.ts +0 -0
- package/lib/typescript/lib/module/api/ads/GoogleImaAd.d.ts +0 -1
- package/lib/typescript/lib/module/api/ads/GoogleImaConfiguration.d.ts +0 -0
- package/lib/typescript/lib/module/api/ads/barrel.d.ts +0 -5
- package/lib/typescript/lib/module/api/barrel.d.ts +0 -12
- package/lib/typescript/lib/module/api/cast/Airplay.d.ts +0 -1
- package/lib/typescript/lib/module/api/cast/CastAPI.d.ts +0 -1
- package/lib/typescript/lib/module/api/cast/CastConfiguration.d.ts +0 -0
- package/lib/typescript/lib/module/api/cast/CastState.d.ts +0 -0
- package/lib/typescript/lib/module/api/cast/Chromecast.d.ts +0 -1
- package/lib/typescript/lib/module/api/cast/barrel.d.ts +0 -3
- package/lib/typescript/lib/module/api/config/PlayerConfiguration.d.ts +0 -1
- package/lib/typescript/lib/module/api/config/barrel.d.ts +0 -1
- package/lib/typescript/lib/module/api/drm/ContentProtectionAPI.d.ts +0 -1
- package/lib/typescript/lib/module/api/drm/ContentProtectionIntegration.d.ts +0 -1
- package/lib/typescript/lib/module/api/drm/ContentProtectionIntegrationFactory.d.ts +0 -1
- package/lib/typescript/lib/module/api/drm/ContentProtectionRequest.d.ts +0 -0
- package/lib/typescript/lib/module/api/drm/ContentProtectionResponse.d.ts +0 -1
- package/lib/typescript/lib/module/api/drm/barrel.d.ts +0 -4
- package/lib/typescript/lib/module/api/error/ChromecastError.d.ts +0 -0
- package/lib/typescript/lib/module/api/error/PlayerError.d.ts +0 -0
- package/lib/typescript/lib/module/api/error/barrel.d.ts +0 -1
- package/lib/typescript/lib/module/api/event/AdEvent.d.ts +0 -1
- package/lib/typescript/lib/module/api/event/CastEvent.d.ts +0 -1
- package/lib/typescript/lib/module/api/event/PlayerEvent.d.ts +0 -1
- package/lib/typescript/lib/module/api/event/TrackEvent.d.ts +0 -4
- package/lib/typescript/lib/module/api/event/barrel.d.ts +0 -4
- package/lib/typescript/lib/module/api/source/SourceDescription.d.ts +0 -1
- package/lib/typescript/lib/module/api/source/ads/Ads.d.ts +0 -0
- package/lib/typescript/lib/module/api/source/ads/FreeWheelAdDescription.d.ts +0 -1
- package/lib/typescript/lib/module/api/source/ads/IMAAdDescription.d.ts +0 -1
- package/lib/typescript/lib/module/api/source/ads/SpotXAdDescription.d.ts +0 -1
- package/lib/typescript/lib/module/api/source/ads/THEOplayerAdDescription.d.ts +0 -1
- package/lib/typescript/lib/module/api/source/ads/barrel.d.ts +0 -5
- package/lib/typescript/lib/module/api/source/ads/ssai/GoogleDAIConfiguration.d.ts +0 -1
- package/lib/typescript/lib/module/api/source/ads/ssai/ImagineServerSideAdInsertionConfiguration.d.ts +0 -1
- package/lib/typescript/lib/module/api/source/ads/ssai/ServerSideAdInsertionConfiguration.d.ts +0 -1
- package/lib/typescript/lib/module/api/source/ads/ssai/YospaceServerSideAdInsertionConfiguration.d.ts +0 -1
- package/lib/typescript/lib/module/api/source/ads/ssai/barrel.d.ts +0 -4
- package/lib/typescript/lib/module/api/source/barrel.d.ts +0 -6
- package/lib/typescript/lib/module/api/source/dash/DashPlaybackConfiguration.d.ts +0 -0
- package/lib/typescript/lib/module/api/source/dash/barrel.d.ts +0 -1
- package/lib/typescript/lib/module/api/source/drm/DRMConfiguration.d.ts +0 -0
- package/lib/typescript/lib/module/api/source/drm/barrel.d.ts +0 -1
- package/lib/typescript/lib/module/api/source/hls/HlsPlaybackConfiguration.d.ts +0 -0
- package/lib/typescript/lib/module/api/source/hls/barrel.d.ts +0 -1
- package/lib/typescript/lib/module/api/source/metadata/MetadataDescription.d.ts +0 -0
- package/lib/typescript/lib/module/api/source/metadata/barrel.d.ts +0 -1
- package/lib/typescript/lib/module/api/timeranges/TimeRange.d.ts +0 -0
- package/lib/typescript/lib/module/api/timeranges/barrel.d.ts +0 -1
- package/lib/typescript/lib/module/api/track/MediaTrack.d.ts +0 -8
- package/lib/typescript/lib/module/api/track/Quality.d.ts +0 -0
- package/lib/typescript/lib/module/api/track/TextTrack.d.ts +0 -20
- package/lib/typescript/lib/module/api/track/TextTrackCue.d.ts +0 -0
- package/lib/typescript/lib/module/api/track/Track.d.ts +0 -0
- package/lib/typescript/lib/module/api/track/barrel.d.ts +0 -2
- package/lib/typescript/lib/module/api/utils/TypeUtils.d.ts +0 -12
- package/lib/typescript/lib/module/api/utils/barrel.d.ts +0 -1
- package/lib/typescript/lib/module/index.d.ts +0 -3
- package/lib/typescript/lib/module/internal/THEOplayerView.d.ts +0 -25
- package/lib/typescript/lib/module/internal/THEOplayerView.style.d.ts +0 -11
- package/lib/typescript/lib/module/internal/THEOplayerView.web.d.ts +0 -24
- package/lib/typescript/lib/module/internal/ads/THEOplayerNativeAdsAPI.d.ts +0 -13
- package/lib/typescript/lib/module/internal/ads/THEOplayerNativeGoogleDAI.d.ts +0 -8
- package/lib/typescript/lib/module/internal/ads/THEOplayerWebAdsAPI.d.ts +0 -13
- package/lib/typescript/lib/module/internal/ads/THEOplayerWebGoogleDAI.d.ts +0 -8
- package/lib/typescript/lib/module/internal/cast/THEOplayerNativeAirplay.d.ts +0 -8
- package/lib/typescript/lib/module/internal/cast/THEOplayerNativeCastApi.d.ts +0 -11
- package/lib/typescript/lib/module/internal/cast/THEOplayerNativeChromecast.d.ts +0 -10
- package/lib/typescript/lib/module/internal/cast/THEOplayerWebCastApi.d.ts +0 -7
- package/lib/typescript/lib/module/internal/drm/ContentProtectionRegistry.d.ts +0 -13
- package/lib/typescript/lib/module/internal/drm/ContentProtectionRegistry.web.d.ts +0 -4
- package/lib/typescript/lib/module/internal/drm/NativeCertificateRequest.d.ts +0 -17
- package/lib/typescript/lib/module/internal/drm/NativeCertificateResponse.d.ts +0 -20
- package/lib/typescript/lib/module/internal/drm/NativeContentProtectionEvent.d.ts +0 -0
- package/lib/typescript/lib/module/internal/drm/NativeLicenseRequest.d.ts +0 -19
- package/lib/typescript/lib/module/internal/drm/NativeLicenseResponse.d.ts +0 -21
- package/lib/typescript/lib/module/internal/utils/TypeUtils.d.ts +0 -5
- package/lib/typescript/lib/module/internal/web/TrackUtils.d.ts +0 -31
- package/lib/typescript/lib/module/internal/web/stub/CastButtonStub.d.ts +0 -2
- package/lib/typescript/src/api/THEOplayerView.d.ts +0 -217
- package/lib/typescript/src/api/barrel.d.ts +0 -12
- package/lib/typescript/src/api/cast/Airplay.d.ts +0 -27
- package/lib/typescript/src/api/cast/CastAPI.d.ts +0 -25
- package/lib/typescript/src/api/cast/CastState.d.ts +0 -10
- package/lib/typescript/src/api/cast/Chromecast.d.ts +0 -39
- package/lib/typescript/src/api/config/PlayerConfiguration.d.ts +0 -24
- package/lib/typescript/src/api/event/AdEvent.d.ts +0 -13
- package/lib/typescript/src/api/event/CastEvent.d.ts +0 -21
- package/lib/typescript/src/api/event/PlayerEvent.d.ts +0 -56
- package/lib/typescript/src/api/event/TrackEvent.d.ts +0 -92
- package/lib/typescript/src/api/event/barrel.d.ts +0 -4
- package/lib/typescript/src/api/source/ads/Ads.d.ts +0 -94
- package/lib/typescript/src/api/source/ads/FreeWheelAdDescription.d.ts +0 -85
- package/lib/typescript/src/api/source/ads/IMAAdDescription.d.ts +0 -25
- package/lib/typescript/src/api/track/MediaTrack.d.ts +0 -58
- package/lib/typescript/src/api/track/TextTrack.d.ts +0 -86
- package/lib/typescript/src/api/track/Track.d.ts +0 -43
- package/lib/typescript/src/api/track/barrel.d.ts +0 -5
- package/lib/typescript/src/index.d.ts +0 -3
- package/lib/typescript/src/internal/THEOplayerView.d.ts +0 -87
- package/lib/typescript/src/internal/THEOplayerView.web.d.ts +0 -32
- package/lib/typescript/src/internal/ads/THEOplayerNativeAdsAPI.d.ts +0 -17
- package/lib/typescript/src/internal/ads/THEOplayerNativeGoogleDAI.d.ts +0 -10
- package/lib/typescript/src/internal/ads/THEOplayerWebAdsAPI.d.ts +0 -15
- package/lib/typescript/src/internal/cast/THEOplayerNativeAirplay.d.ts +0 -9
- package/lib/typescript/src/internal/cast/THEOplayerNativeCastApi.d.ts +0 -10
- package/lib/typescript/src/internal/cast/THEOplayerNativeChromecast.d.ts +0 -11
- package/lib/typescript/src/internal/cast/THEOplayerWebCastApi.d.ts +0 -9
- package/lib/typescript/src/internal/web/TrackUtils.d.ts +0 -7
- package/lib/typescript/src/internal/web/stub/CastButtonStub.d.ts +0 -3
- package/src/internal/ads/THEOplayerNativeAdsAPI.ts +0 -44
- package/src/internal/ads/THEOplayerNativeGoogleDAI.ts +0 -23
- package/src/internal/ads/THEOplayerWebAdsAPI.ts +0 -51
- package/src/internal/cast/THEOplayerNativeAirplay.ts +0 -22
- package/src/internal/cast/THEOplayerNativeCastApi.ts +0 -28
- package/src/internal/cast/THEOplayerNativeChromecast.ts +0 -30
- package/src/internal/cast/THEOplayerWebCastApi.ts +0 -21
- package/src/internal/web/TrackUtils.ts +0 -65
- package/src/internal/web/stub/CastButtonStub.tsx +0 -7
- /package/lib/typescript/{src/__tests__ → __tests__}/index.test.d.ts +0 -0
- /package/lib/typescript/{src/api → api}/abr/ABRConfiguration.d.ts +0 -0
- /package/lib/typescript/{src/api → api}/abr/barrel.d.ts +0 -0
- /package/lib/typescript/{src/api → api}/ads/Ad.d.ts +0 -0
- /package/lib/typescript/{src/api → api}/ads/AdBreak.d.ts +0 -0
- /package/lib/typescript/{src/api → api}/ads/AdsAPI.d.ts +0 -0
- /package/lib/typescript/{src/api → api}/ads/AdsConfiguration.d.ts +0 -0
- /package/lib/typescript/{src/api → api}/ads/CompanionAd.d.ts +0 -0
- /package/lib/typescript/{src/api → api}/ads/GoogleDai.d.ts +0 -0
- /package/lib/typescript/{src/api → api}/ads/GoogleImaAd.d.ts +0 -0
- /package/lib/typescript/{src/api → api}/ads/GoogleImaConfiguration.d.ts +0 -0
- /package/lib/typescript/{src/api → api}/ads/barrel.d.ts +0 -0
- /package/lib/typescript/{src/api → api}/cast/CastConfiguration.d.ts +0 -0
- /package/lib/typescript/{src/api → api}/cast/barrel.d.ts +0 -0
- /package/lib/typescript/{src/api → api}/config/barrel.d.ts +0 -0
- /package/lib/typescript/{src/api → api}/drm/ContentProtectionAPI.d.ts +0 -0
- /package/lib/typescript/{src/api → api}/drm/ContentProtectionIntegration.d.ts +0 -0
- /package/lib/typescript/{src/api → api}/drm/ContentProtectionIntegrationFactory.d.ts +0 -0
- /package/lib/typescript/{src/api → api}/drm/ContentProtectionRequest.d.ts +0 -0
- /package/lib/typescript/{src/api → api}/drm/ContentProtectionResponse.d.ts +0 -0
- /package/lib/typescript/{src/api → api}/drm/barrel.d.ts +0 -0
- /package/lib/typescript/{src/api → api}/error/ChromecastError.d.ts +0 -0
- /package/lib/typescript/{src/api → api}/error/PlayerError.d.ts +0 -0
- /package/lib/typescript/{src/api → api}/error/barrel.d.ts +0 -0
- /package/lib/typescript/{src/api → api}/source/SourceDescription.d.ts +0 -0
- /package/lib/typescript/{src/api → api}/source/ads/SpotXAdDescription.d.ts +0 -0
- /package/lib/typescript/{src/api → api}/source/ads/THEOplayerAdDescription.d.ts +0 -0
- /package/lib/typescript/{src/api → api}/source/ads/barrel.d.ts +0 -0
- /package/lib/typescript/{src/api → api}/source/ads/ssai/GoogleDAIConfiguration.d.ts +0 -0
- /package/lib/typescript/{src/api → api}/source/ads/ssai/ImagineServerSideAdInsertionConfiguration.d.ts +0 -0
- /package/lib/typescript/{src/api → api}/source/ads/ssai/ServerSideAdInsertionConfiguration.d.ts +0 -0
- /package/lib/typescript/{src/api → api}/source/ads/ssai/YospaceServerSideAdInsertionConfiguration.d.ts +0 -0
- /package/lib/typescript/{src/api → api}/source/ads/ssai/barrel.d.ts +0 -0
- /package/lib/typescript/{src/api → api}/source/barrel.d.ts +0 -0
- /package/lib/typescript/{src/api → api}/source/dash/DashPlaybackConfiguration.d.ts +0 -0
- /package/lib/typescript/{src/api → api}/source/dash/barrel.d.ts +0 -0
- /package/lib/typescript/{src/api → api}/source/drm/DRMConfiguration.d.ts +0 -0
- /package/lib/typescript/{src/api → api}/source/drm/barrel.d.ts +0 -0
- /package/lib/typescript/{src/api → api}/source/hls/HlsPlaybackConfiguration.d.ts +0 -0
- /package/lib/typescript/{src/api → api}/source/hls/barrel.d.ts +0 -0
- /package/lib/typescript/{src/api → api}/source/metadata/MetadataDescription.d.ts +0 -0
- /package/lib/typescript/{src/api → api}/source/metadata/barrel.d.ts +0 -0
- /package/lib/typescript/{src/api → api}/timeranges/TimeRange.d.ts +0 -0
- /package/lib/typescript/{src/api → api}/timeranges/barrel.d.ts +0 -0
- /package/lib/typescript/{src/api → api}/track/Quality.d.ts +0 -0
- /package/lib/typescript/{src/api → api}/track/TextTrackCue.d.ts +0 -0
- /package/lib/typescript/{src/api → api}/utils/TypeUtils.d.ts +0 -0
- /package/lib/typescript/{src/api → api}/utils/barrel.d.ts +0 -0
- /package/lib/typescript/{src/internal → internal}/THEOplayerView.style.d.ts +0 -0
- /package/lib/typescript/{src/internal → internal/adapter}/ads/THEOplayerWebGoogleDAI.d.ts +0 -0
- /package/lib/typescript/{src/internal → internal}/drm/ContentProtectionRegistry.d.ts +0 -0
- /package/lib/typescript/{src/internal → internal}/drm/ContentProtectionRegistry.web.d.ts +0 -0
- /package/lib/typescript/{src/internal → internal}/drm/NativeCertificateRequest.d.ts +0 -0
- /package/lib/typescript/{src/internal → internal}/drm/NativeCertificateResponse.d.ts +0 -0
- /package/lib/typescript/{src/internal → internal}/drm/NativeContentProtectionEvent.d.ts +0 -0
- /package/lib/typescript/{src/internal → internal}/drm/NativeLicenseRequest.d.ts +0 -0
- /package/lib/typescript/{src/internal → internal}/drm/NativeLicenseResponse.d.ts +0 -0
- /package/lib/typescript/{src/internal → internal}/utils/TypeUtils.d.ts +0 -0
- /package/src/internal/{ads → adapter/ads}/THEOplayerWebGoogleDAI.ts +0 -0
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.DefaultEventDispatcher = void 0;
|
|
7
|
+
var _arrayUtil = require("../../utils/arrayUtil");
|
|
8
|
+
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; }
|
|
9
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
10
|
+
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); }
|
|
11
|
+
class DefaultEventDispatcher {
|
|
12
|
+
constructor() {
|
|
13
|
+
_defineProperty(this, "_eventListeners", new Map());
|
|
14
|
+
_defineProperty(this, "dispatchEvent", event => {
|
|
15
|
+
const listeners = (this._eventListeners.get(event.type) ?? []).slice();
|
|
16
|
+
for (const listener of listeners) {
|
|
17
|
+
listener.call(this, event);
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
addEventListener(type, listener) {
|
|
22
|
+
if (!this._eventListeners.has(type)) {
|
|
23
|
+
// @ts-ignore
|
|
24
|
+
this._eventListeners.set(type, [listener]);
|
|
25
|
+
} else {
|
|
26
|
+
var _this$_eventListeners;
|
|
27
|
+
// @ts-ignore
|
|
28
|
+
(_this$_eventListeners = this._eventListeners.get(type)) === null || _this$_eventListeners === void 0 ? void 0 : _this$_eventListeners.push(listener);
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
clearEventListeners() {
|
|
32
|
+
this._eventListeners.clear();
|
|
33
|
+
}
|
|
34
|
+
removeEventListener(type, listener) {
|
|
35
|
+
const listeners = this._eventListeners.get(type);
|
|
36
|
+
if (listeners) {
|
|
37
|
+
(0, _arrayUtil.arrayRemoveElement)(listeners, listener);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
exports.DefaultEventDispatcher = DefaultEventDispatcher;
|
|
42
|
+
//# sourceMappingURL=DefaultEventDispatcher.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_arrayUtil","require","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","call","TypeError","Number","DefaultEventDispatcher","constructor","Map","event","listeners","_eventListeners","get","type","slice","listener","addEventListener","has","set","_this$_eventListeners","push","clearEventListeners","clear","removeEventListener","arrayRemoveElement","exports"],"sources":["DefaultEventDispatcher.ts"],"sourcesContent":["import type { EventDispatcher, EventMap, StringKeyOf } from '../../../api/event/EventDispatcher';\nimport type { EventListener } from '../../../api/event/EventListener';\nimport { arrayRemoveElement } from '../../utils/arrayUtil';\n\nexport class DefaultEventDispatcher<TMap extends EventMap<StringKeyOf<TMap>>> implements EventDispatcher<TMap> {\n readonly _eventListeners: Map<StringKeyOf<TMap>, EventListener<TMap[StringKeyOf<TMap>]>[]> = new Map();\n\n addEventListener<K extends StringKeyOf<TMap>>(type: K, listener: EventListener<TMap[K]>): void {\n if (!this._eventListeners.has(type)) {\n // @ts-ignore\n this._eventListeners.set(type, [listener]);\n } else {\n // @ts-ignore\n this._eventListeners.get(type)?.push(listener);\n }\n }\n\n clearEventListeners(): void {\n this._eventListeners.clear();\n }\n\n dispatchEvent = <K extends StringKeyOf<TMap>>(event: TMap[K]): void => {\n const listeners = (this._eventListeners.get(event.type) ?? []).slice();\n for (const listener of listeners) {\n listener.call(this, event);\n }\n };\n\n removeEventListener<K extends StringKeyOf<TMap>>(type: K, listener: EventListener<TMap[K]>): void {\n const listeners = this._eventListeners.get(type);\n if (listeners) {\n arrayRemoveElement(listeners, listener);\n }\n }\n}\n"],"mappings":";;;;;;AAEA,IAAAA,UAAA,GAAAC,OAAA;AAA2D,SAAAC,gBAAAC,GAAA,EAAAC,GAAA,EAAAC,KAAA,IAAAD,GAAA,GAAAE,cAAA,CAAAF,GAAA,OAAAA,GAAA,IAAAD,GAAA,IAAAI,MAAA,CAAAC,cAAA,CAAAL,GAAA,EAAAC,GAAA,IAAAC,KAAA,EAAAA,KAAA,EAAAI,UAAA,QAAAC,YAAA,QAAAC,QAAA,oBAAAR,GAAA,CAAAC,GAAA,IAAAC,KAAA,WAAAF,GAAA;AAAA,SAAAG,eAAAM,GAAA,QAAAR,GAAA,GAAAS,YAAA,CAAAD,GAAA,2BAAAR,GAAA,gBAAAA,GAAA,GAAAU,MAAA,CAAAV,GAAA;AAAA,SAAAS,aAAAE,KAAA,EAAAC,IAAA,eAAAD,KAAA,iBAAAA,KAAA,kBAAAA,KAAA,MAAAE,IAAA,GAAAF,KAAA,CAAAG,MAAA,CAAAC,WAAA,OAAAF,IAAA,KAAAG,SAAA,QAAAC,GAAA,GAAAJ,IAAA,CAAAK,IAAA,CAAAP,KAAA,EAAAC,IAAA,2BAAAK,GAAA,sBAAAA,GAAA,YAAAE,SAAA,4DAAAP,IAAA,gBAAAF,MAAA,GAAAU,MAAA,EAAAT,KAAA;AAEpD,MAAMU,sBAAsB,CAA4E;EAAAC,YAAA;IAAAxB,eAAA,0BAChB,IAAIyB,GAAG,EAAE;IAAAzB,eAAA,wBAgBxD0B,KAAc,IAAW;MACrE,MAAMC,SAAS,GAAG,CAAC,IAAI,CAACC,eAAe,CAACC,GAAG,CAACH,KAAK,CAACI,IAAI,CAAC,IAAI,EAAE,EAAEC,KAAK,EAAE;MACtE,KAAK,MAAMC,QAAQ,IAAIL,SAAS,EAAE;QAChCK,QAAQ,CAACZ,IAAI,CAAC,IAAI,EAAEM,KAAK,CAAC;MAC5B;IACF,CAAC;EAAA;EAnBDO,gBAAgBA,CAA8BH,IAAO,EAAEE,QAAgC,EAAQ;IAC7F,IAAI,CAAC,IAAI,CAACJ,eAAe,CAACM,GAAG,CAACJ,IAAI,CAAC,EAAE;MACnC;MACA,IAAI,CAACF,eAAe,CAACO,GAAG,CAACL,IAAI,EAAE,CAACE,QAAQ,CAAC,CAAC;IAC5C,CAAC,MAAM;MAAA,IAAAI,qBAAA;MACL;MACA,CAAAA,qBAAA,OAAI,CAACR,eAAe,CAACC,GAAG,CAACC,IAAI,CAAC,cAAAM,qBAAA,uBAA9BA,qBAAA,CAAgCC,IAAI,CAACL,QAAQ,CAAC;IAChD;EACF;EAEAM,mBAAmBA,CAAA,EAAS;IAC1B,IAAI,CAACV,eAAe,CAACW,KAAK,EAAE;EAC9B;EASAC,mBAAmBA,CAA8BV,IAAO,EAAEE,QAAgC,EAAQ;IAChG,MAAML,SAAS,GAAG,IAAI,CAACC,eAAe,CAACC,GAAG,CAACC,IAAI,CAAC;IAChD,IAAIH,SAAS,EAAE;MACb,IAAAc,6BAAkB,EAACd,SAAS,EAAEK,QAAQ,CAAC;IACzC;EACF;AACF;AAACU,OAAA,CAAAnB,sBAAA,GAAAA,sBAAA"}
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.DefaultVolumeChangeEvent = exports.DefaultTimeupdateEvent = exports.DefaultTextTrackListEvent = exports.DefaultTextTrackEvent = exports.DefaultSegmentNotFoundEvent = exports.DefaultReadyStateChangeEvent = exports.DefaultRateChangeEvent = exports.DefaultProgressEvent = exports.DefaultPresentationModeChangeEvent = exports.DefaultMediaTrackListEvent = exports.DefaultMediaTrackEvent = exports.DefaultLoadedMetadataEvent = exports.DefaultErrorEvent = exports.DefaultDurationChangeEvent = exports.DefaultChromecastErrorEvent = exports.DefaultChromecastChangeEvent = exports.DefaultAirplayStateChangeEvent = exports.DefaultAdEvent = void 0;
|
|
7
|
+
var _BaseEvent = require("./BaseEvent");
|
|
8
|
+
var _reactNativeTheoplayer = require("react-native-theoplayer");
|
|
9
|
+
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; }
|
|
10
|
+
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
11
|
+
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); }
|
|
12
|
+
class DefaultLoadedMetadataEvent extends _BaseEvent.BaseEvent {
|
|
13
|
+
constructor(textTracks, audioTracks, videoTracks, duration, selectedTextTrack, selectedVideoTrack, selectedAudioTrack) {
|
|
14
|
+
super(_reactNativeTheoplayer.PlayerEventType.LOADED_METADATA);
|
|
15
|
+
this.textTracks = textTracks;
|
|
16
|
+
this.audioTracks = audioTracks;
|
|
17
|
+
this.videoTracks = videoTracks;
|
|
18
|
+
this.duration = duration;
|
|
19
|
+
this.selectedTextTrack = selectedTextTrack;
|
|
20
|
+
this.selectedVideoTrack = selectedVideoTrack;
|
|
21
|
+
this.selectedAudioTrack = selectedAudioTrack;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
exports.DefaultLoadedMetadataEvent = DefaultLoadedMetadataEvent;
|
|
25
|
+
class DefaultReadyStateChangeEvent extends _BaseEvent.BaseEvent {
|
|
26
|
+
constructor(readyState) {
|
|
27
|
+
super(_reactNativeTheoplayer.PlayerEventType.READYSTATE_CHANGE);
|
|
28
|
+
this.readyState = readyState;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.DefaultReadyStateChangeEvent = DefaultReadyStateChangeEvent;
|
|
32
|
+
class DefaultPresentationModeChangeEvent extends _BaseEvent.BaseEvent {
|
|
33
|
+
constructor(presentationMode, previousPresentationMode, context) {
|
|
34
|
+
super(_reactNativeTheoplayer.PlayerEventType.PRESENTATIONMODE_CHANGE);
|
|
35
|
+
this.presentationMode = presentationMode;
|
|
36
|
+
this.previousPresentationMode = previousPresentationMode;
|
|
37
|
+
this.context = context;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
exports.DefaultPresentationModeChangeEvent = DefaultPresentationModeChangeEvent;
|
|
41
|
+
class DefaultVolumeChangeEvent extends _BaseEvent.BaseEvent {
|
|
42
|
+
constructor(volume, muted) {
|
|
43
|
+
super(_reactNativeTheoplayer.PlayerEventType.VOLUME_CHANGE);
|
|
44
|
+
this.volume = volume;
|
|
45
|
+
this.muted = muted;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
exports.DefaultVolumeChangeEvent = DefaultVolumeChangeEvent;
|
|
49
|
+
class DefaultErrorEvent extends _BaseEvent.BaseEvent {
|
|
50
|
+
constructor(error) {
|
|
51
|
+
super(_reactNativeTheoplayer.PlayerEventType.ERROR);
|
|
52
|
+
this.error = error;
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
exports.DefaultErrorEvent = DefaultErrorEvent;
|
|
56
|
+
class DefaultProgressEvent extends _BaseEvent.BaseEvent {
|
|
57
|
+
constructor(seekable, buffered) {
|
|
58
|
+
super(_reactNativeTheoplayer.PlayerEventType.PROGRESS);
|
|
59
|
+
this.seekable = seekable;
|
|
60
|
+
this.buffered = buffered;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
exports.DefaultProgressEvent = DefaultProgressEvent;
|
|
64
|
+
class DefaultTimeupdateEvent extends _BaseEvent.BaseEvent {
|
|
65
|
+
constructor(currentTime, currentProgramDateTime) {
|
|
66
|
+
super(_reactNativeTheoplayer.PlayerEventType.TIME_UPDATE);
|
|
67
|
+
this.currentTime = currentTime;
|
|
68
|
+
this.currentProgramDateTime = currentProgramDateTime;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
exports.DefaultTimeupdateEvent = DefaultTimeupdateEvent;
|
|
72
|
+
class DefaultDurationChangeEvent extends _BaseEvent.BaseEvent {
|
|
73
|
+
constructor(duration) {
|
|
74
|
+
super(_reactNativeTheoplayer.PlayerEventType.DURATION_CHANGE);
|
|
75
|
+
this.duration = duration;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
exports.DefaultDurationChangeEvent = DefaultDurationChangeEvent;
|
|
79
|
+
class DefaultRateChangeEvent extends _BaseEvent.BaseEvent {
|
|
80
|
+
constructor(playbackRate) {
|
|
81
|
+
super(_reactNativeTheoplayer.PlayerEventType.RATE_CHANGE);
|
|
82
|
+
this.playbackRate = playbackRate;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
exports.DefaultRateChangeEvent = DefaultRateChangeEvent;
|
|
86
|
+
class DefaultSegmentNotFoundEvent extends _BaseEvent.BaseEvent {
|
|
87
|
+
constructor(segmentStartTime, error, retryCount) {
|
|
88
|
+
super(_reactNativeTheoplayer.PlayerEventType.SEGMENT_NOT_FOUND);
|
|
89
|
+
this.segmentStartTime = segmentStartTime;
|
|
90
|
+
this.error = error;
|
|
91
|
+
this.retryCount = retryCount;
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
exports.DefaultSegmentNotFoundEvent = DefaultSegmentNotFoundEvent;
|
|
95
|
+
class DefaultTextTrackListEvent extends _BaseEvent.BaseEvent {
|
|
96
|
+
constructor(subType, track) {
|
|
97
|
+
super(_reactNativeTheoplayer.PlayerEventType.TEXT_TRACK_LIST);
|
|
98
|
+
this.subType = subType;
|
|
99
|
+
this.track = track;
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
exports.DefaultTextTrackListEvent = DefaultTextTrackListEvent;
|
|
103
|
+
class DefaultTextTrackEvent extends _BaseEvent.BaseEvent {
|
|
104
|
+
constructor(subType, trackUid, cue) {
|
|
105
|
+
super(_reactNativeTheoplayer.PlayerEventType.TEXT_TRACK);
|
|
106
|
+
this.subType = subType;
|
|
107
|
+
this.trackUid = trackUid;
|
|
108
|
+
this.cue = cue;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
exports.DefaultTextTrackEvent = DefaultTextTrackEvent;
|
|
112
|
+
class DefaultMediaTrackListEvent extends _BaseEvent.BaseEvent {
|
|
113
|
+
constructor(subType, trackType, track) {
|
|
114
|
+
super(_reactNativeTheoplayer.PlayerEventType.MEDIA_TRACK_LIST);
|
|
115
|
+
this.subType = subType;
|
|
116
|
+
this.trackType = trackType;
|
|
117
|
+
this.track = track;
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
exports.DefaultMediaTrackListEvent = DefaultMediaTrackListEvent;
|
|
121
|
+
class DefaultMediaTrackEvent extends _BaseEvent.BaseEvent {
|
|
122
|
+
constructor(subType, trackType, trackUid, qualities) {
|
|
123
|
+
super(_reactNativeTheoplayer.PlayerEventType.MEDIA_TRACK);
|
|
124
|
+
this.subType = subType;
|
|
125
|
+
this.trackType = trackType;
|
|
126
|
+
this.trackUid = trackUid;
|
|
127
|
+
this.qualities = qualities;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
exports.DefaultMediaTrackEvent = DefaultMediaTrackEvent;
|
|
131
|
+
class DefaultAdEvent extends _BaseEvent.BaseEvent {
|
|
132
|
+
constructor(subType, ad) {
|
|
133
|
+
super(_reactNativeTheoplayer.PlayerEventType.AD_EVENT);
|
|
134
|
+
this.subType = subType;
|
|
135
|
+
this.ad = ad;
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
exports.DefaultAdEvent = DefaultAdEvent;
|
|
139
|
+
class DefaultChromecastChangeEvent extends _BaseEvent.BaseEvent {
|
|
140
|
+
constructor(state) {
|
|
141
|
+
super(_reactNativeTheoplayer.PlayerEventType.CAST_EVENT);
|
|
142
|
+
this.state = state;
|
|
143
|
+
_defineProperty(this, "subType", void 0);
|
|
144
|
+
this.subType = _reactNativeTheoplayer.CastEventType.CHROMECAST_STATE_CHANGE;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
exports.DefaultChromecastChangeEvent = DefaultChromecastChangeEvent;
|
|
148
|
+
class DefaultAirplayStateChangeEvent extends _BaseEvent.BaseEvent {
|
|
149
|
+
constructor(state) {
|
|
150
|
+
super(_reactNativeTheoplayer.PlayerEventType.CAST_EVENT);
|
|
151
|
+
this.state = state;
|
|
152
|
+
_defineProperty(this, "subType", void 0);
|
|
153
|
+
this.subType = _reactNativeTheoplayer.CastEventType.AIRPLAY_STATE_CHANGE;
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
exports.DefaultAirplayStateChangeEvent = DefaultAirplayStateChangeEvent;
|
|
157
|
+
class DefaultChromecastErrorEvent extends _BaseEvent.BaseEvent {
|
|
158
|
+
constructor(error) {
|
|
159
|
+
super(_reactNativeTheoplayer.PlayerEventType.CAST_EVENT);
|
|
160
|
+
this.error = error;
|
|
161
|
+
_defineProperty(this, "subType", void 0);
|
|
162
|
+
this.subType = _reactNativeTheoplayer.CastEventType.CHROMECAST_ERROR;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
exports.DefaultChromecastErrorEvent = DefaultChromecastErrorEvent;
|
|
166
|
+
//# sourceMappingURL=PlayerEvents.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_BaseEvent","require","_reactNativeTheoplayer","_defineProperty","obj","key","value","_toPropertyKey","Object","defineProperty","enumerable","configurable","writable","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","call","TypeError","Number","DefaultLoadedMetadataEvent","BaseEvent","constructor","textTracks","audioTracks","videoTracks","duration","selectedTextTrack","selectedVideoTrack","selectedAudioTrack","PlayerEventType","LOADED_METADATA","exports","DefaultReadyStateChangeEvent","readyState","READYSTATE_CHANGE","DefaultPresentationModeChangeEvent","presentationMode","previousPresentationMode","context","PRESENTATIONMODE_CHANGE","DefaultVolumeChangeEvent","volume","muted","VOLUME_CHANGE","DefaultErrorEvent","error","ERROR","DefaultProgressEvent","seekable","buffered","PROGRESS","DefaultTimeupdateEvent","currentTime","currentProgramDateTime","TIME_UPDATE","DefaultDurationChangeEvent","DURATION_CHANGE","DefaultRateChangeEvent","playbackRate","RATE_CHANGE","DefaultSegmentNotFoundEvent","segmentStartTime","retryCount","SEGMENT_NOT_FOUND","DefaultTextTrackListEvent","subType","track","TEXT_TRACK_LIST","DefaultTextTrackEvent","trackUid","cue","TEXT_TRACK","DefaultMediaTrackListEvent","trackType","MEDIA_TRACK_LIST","DefaultMediaTrackEvent","qualities","MEDIA_TRACK","DefaultAdEvent","ad","AD_EVENT","DefaultChromecastChangeEvent","state","CAST_EVENT","CastEventType","CHROMECAST_STATE_CHANGE","DefaultAirplayStateChangeEvent","AIRPLAY_STATE_CHANGE","DefaultChromecastErrorEvent","CHROMECAST_ERROR"],"sources":["PlayerEvents.ts"],"sourcesContent":["import { BaseEvent } from './BaseEvent';\nimport {\n Ad,\n AdBreak,\n AdEvent,\n AdEventType,\n AirplayStateChangeEvent,\n CastEventType,\n CastState,\n ChromecastChangeEvent,\n ChromecastError,\n ChromecastErrorEvent,\n DurationChangeEvent,\n ErrorEvent,\n LoadedMetadataEvent,\n MediaTrack,\n MediaTrackEvent,\n MediaTrackEventType,\n MediaTrackListEvent,\n MediaTrackType,\n PlayerError,\n PlayerEventType,\n PresentationMode,\n PresentationModeChangeContext,\n PresentationModeChangeEvent,\n ProgressEvent,\n Quality,\n RateChangeEvent,\n ReadyStateChangeEvent,\n SegmentNotFoundEvent,\n TextTrack,\n TextTrackCue,\n TextTrackEvent,\n TextTrackEventType,\n TextTrackListEvent,\n TimeRange,\n TimeUpdateEvent,\n TrackListEventType,\n VolumeChangeEvent,\n} from 'react-native-theoplayer';\n\nexport class DefaultLoadedMetadataEvent extends BaseEvent<PlayerEventType.LOADED_METADATA> implements LoadedMetadataEvent {\n constructor(\n public textTracks: TextTrack[],\n public audioTracks: MediaTrack[],\n public videoTracks: MediaTrack[],\n public duration: number,\n public selectedTextTrack: number | undefined,\n public selectedVideoTrack: number | undefined,\n public selectedAudioTrack: number | undefined,\n ) {\n super(PlayerEventType.LOADED_METADATA);\n }\n}\n\nexport class DefaultReadyStateChangeEvent extends BaseEvent<PlayerEventType.READYSTATE_CHANGE> implements ReadyStateChangeEvent {\n constructor(public readyState: number) {\n super(PlayerEventType.READYSTATE_CHANGE);\n }\n}\n\nexport class DefaultPresentationModeChangeEvent extends BaseEvent<PlayerEventType.PRESENTATIONMODE_CHANGE> implements PresentationModeChangeEvent {\n constructor(\n public presentationMode: PresentationMode,\n public previousPresentationMode: PresentationMode,\n public context?: PresentationModeChangeContext,\n ) {\n super(PlayerEventType.PRESENTATIONMODE_CHANGE);\n }\n}\n\nexport class DefaultVolumeChangeEvent extends BaseEvent<PlayerEventType.VOLUME_CHANGE> implements VolumeChangeEvent {\n constructor(public volume: number, public muted: boolean) {\n super(PlayerEventType.VOLUME_CHANGE);\n }\n}\n\nexport class DefaultErrorEvent extends BaseEvent<PlayerEventType.ERROR> implements ErrorEvent {\n constructor(public error: PlayerError) {\n super(PlayerEventType.ERROR);\n }\n}\n\nexport class DefaultProgressEvent extends BaseEvent<PlayerEventType.PROGRESS> implements ProgressEvent {\n constructor(public seekable: TimeRange[], public buffered: TimeRange[]) {\n super(PlayerEventType.PROGRESS);\n }\n}\n\nexport class DefaultTimeupdateEvent extends BaseEvent<PlayerEventType.TIME_UPDATE> implements TimeUpdateEvent {\n constructor(public currentTime: number, public currentProgramDateTime?: number) {\n super(PlayerEventType.TIME_UPDATE);\n }\n}\n\nexport class DefaultDurationChangeEvent extends BaseEvent<PlayerEventType.DURATION_CHANGE> implements DurationChangeEvent {\n constructor(public duration: number) {\n super(PlayerEventType.DURATION_CHANGE);\n }\n}\n\nexport class DefaultRateChangeEvent extends BaseEvent<PlayerEventType.RATE_CHANGE> implements RateChangeEvent {\n constructor(public playbackRate: number) {\n super(PlayerEventType.RATE_CHANGE);\n }\n}\n\nexport class DefaultSegmentNotFoundEvent extends BaseEvent<PlayerEventType.SEGMENT_NOT_FOUND> implements SegmentNotFoundEvent {\n constructor(public readonly segmentStartTime: number, public error: string, public retryCount: number) {\n super(PlayerEventType.SEGMENT_NOT_FOUND);\n }\n}\n\nexport class DefaultTextTrackListEvent extends BaseEvent<PlayerEventType.TEXT_TRACK_LIST> implements TextTrackListEvent {\n constructor(public subType: TrackListEventType, public track: TextTrack) {\n super(PlayerEventType.TEXT_TRACK_LIST);\n }\n}\n\nexport class DefaultTextTrackEvent extends BaseEvent<PlayerEventType.TEXT_TRACK> implements TextTrackEvent {\n constructor(public subType: TextTrackEventType, public trackUid: number, public cue: TextTrackCue) {\n super(PlayerEventType.TEXT_TRACK);\n }\n}\n\nexport class DefaultMediaTrackListEvent extends BaseEvent<PlayerEventType.MEDIA_TRACK_LIST> implements MediaTrackListEvent {\n constructor(public subType: TrackListEventType, public trackType: MediaTrackType, public track: MediaTrack) {\n super(PlayerEventType.MEDIA_TRACK_LIST);\n }\n}\n\nexport class DefaultMediaTrackEvent extends BaseEvent<PlayerEventType.MEDIA_TRACK> implements MediaTrackEvent {\n constructor(\n public subType: MediaTrackEventType,\n public trackType: MediaTrackType,\n public trackUid: number,\n public qualities?: Quality | Quality[],\n ) {\n super(PlayerEventType.MEDIA_TRACK);\n }\n}\n\nexport class DefaultAdEvent extends BaseEvent<PlayerEventType.AD_EVENT> implements AdEvent {\n constructor(public subType: AdEventType, public ad: Ad | AdBreak) {\n super(PlayerEventType.AD_EVENT);\n }\n}\n\nexport class DefaultChromecastChangeEvent extends BaseEvent<PlayerEventType.CAST_EVENT> implements ChromecastChangeEvent {\n readonly subType: CastEventType.CHROMECAST_STATE_CHANGE;\n\n constructor(public state: CastState) {\n super(PlayerEventType.CAST_EVENT);\n this.subType = CastEventType.CHROMECAST_STATE_CHANGE;\n }\n}\n\nexport class DefaultAirplayStateChangeEvent extends BaseEvent<PlayerEventType.CAST_EVENT> implements AirplayStateChangeEvent {\n readonly subType: CastEventType.AIRPLAY_STATE_CHANGE;\n\n constructor(public state: CastState) {\n super(PlayerEventType.CAST_EVENT);\n this.subType = CastEventType.AIRPLAY_STATE_CHANGE;\n }\n}\n\nexport class DefaultChromecastErrorEvent extends BaseEvent<PlayerEventType.CAST_EVENT> implements ChromecastErrorEvent {\n readonly subType: CastEventType.CHROMECAST_ERROR;\n\n constructor(public error: ChromecastError) {\n super(PlayerEventType.CAST_EVENT);\n this.subType = CastEventType.CHROMECAST_ERROR;\n }\n}\n"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AACA,IAAAC,sBAAA,GAAAD,OAAA;AAsCiC,SAAAE,gBAAAC,GAAA,EAAAC,GAAA,EAAAC,KAAA,IAAAD,GAAA,GAAAE,cAAA,CAAAF,GAAA,OAAAA,GAAA,IAAAD,GAAA,IAAAI,MAAA,CAAAC,cAAA,CAAAL,GAAA,EAAAC,GAAA,IAAAC,KAAA,EAAAA,KAAA,EAAAI,UAAA,QAAAC,YAAA,QAAAC,QAAA,oBAAAR,GAAA,CAAAC,GAAA,IAAAC,KAAA,WAAAF,GAAA;AAAA,SAAAG,eAAAM,GAAA,QAAAR,GAAA,GAAAS,YAAA,CAAAD,GAAA,2BAAAR,GAAA,gBAAAA,GAAA,GAAAU,MAAA,CAAAV,GAAA;AAAA,SAAAS,aAAAE,KAAA,EAAAC,IAAA,eAAAD,KAAA,iBAAAA,KAAA,kBAAAA,KAAA,MAAAE,IAAA,GAAAF,KAAA,CAAAG,MAAA,CAAAC,WAAA,OAAAF,IAAA,KAAAG,SAAA,QAAAC,GAAA,GAAAJ,IAAA,CAAAK,IAAA,CAAAP,KAAA,EAAAC,IAAA,2BAAAK,GAAA,sBAAAA,GAAA,YAAAE,SAAA,4DAAAP,IAAA,gBAAAF,MAAA,GAAAU,MAAA,EAAAT,KAAA;AAE1B,MAAMU,0BAA0B,SAASC,oBAAS,CAAiE;EACxHC,WAAWA,CACFC,UAAuB,EACvBC,WAAyB,EACzBC,WAAyB,EACzBC,QAAgB,EAChBC,iBAAqC,EACrCC,kBAAsC,EACtCC,kBAAsC,EAC7C;IACA,KAAK,CAACC,sCAAe,CAACC,eAAe,CAAC;IAAC,KARhCR,UAAuB,GAAvBA,UAAuB;IAAA,KACvBC,WAAyB,GAAzBA,WAAyB;IAAA,KACzBC,WAAyB,GAAzBA,WAAyB;IAAA,KACzBC,QAAgB,GAAhBA,QAAgB;IAAA,KAChBC,iBAAqC,GAArCA,iBAAqC;IAAA,KACrCC,kBAAsC,GAAtCA,kBAAsC;IAAA,KACtCC,kBAAsC,GAAtCA,kBAAsC;EAG/C;AACF;AAACG,OAAA,CAAAZ,0BAAA,GAAAA,0BAAA;AAEM,MAAMa,4BAA4B,SAASZ,oBAAS,CAAqE;EAC9HC,WAAWA,CAAQY,UAAkB,EAAE;IACrC,KAAK,CAACJ,sCAAe,CAACK,iBAAiB,CAAC;IAAC,KADxBD,UAAkB,GAAlBA,UAAkB;EAErC;AACF;AAACF,OAAA,CAAAC,4BAAA,GAAAA,4BAAA;AAEM,MAAMG,kCAAkC,SAASf,oBAAS,CAAiF;EAChJC,WAAWA,CACFe,gBAAkC,EAClCC,wBAA0C,EAC1CC,OAAuC,EAC9C;IACA,KAAK,CAACT,sCAAe,CAACU,uBAAuB,CAAC;IAAC,KAJxCH,gBAAkC,GAAlCA,gBAAkC;IAAA,KAClCC,wBAA0C,GAA1CA,wBAA0C;IAAA,KAC1CC,OAAuC,GAAvCA,OAAuC;EAGhD;AACF;AAACP,OAAA,CAAAI,kCAAA,GAAAA,kCAAA;AAEM,MAAMK,wBAAwB,SAASpB,oBAAS,CAA6D;EAClHC,WAAWA,CAAQoB,MAAc,EAASC,KAAc,EAAE;IACxD,KAAK,CAACb,sCAAe,CAACc,aAAa,CAAC;IAAC,KADpBF,MAAc,GAAdA,MAAc;IAAA,KAASC,KAAc,GAAdA,KAAc;EAExD;AACF;AAACX,OAAA,CAAAS,wBAAA,GAAAA,wBAAA;AAEM,MAAMI,iBAAiB,SAASxB,oBAAS,CAA8C;EAC5FC,WAAWA,CAAQwB,KAAkB,EAAE;IACrC,KAAK,CAAChB,sCAAe,CAACiB,KAAK,CAAC;IAAC,KADZD,KAAkB,GAAlBA,KAAkB;EAErC;AACF;AAACd,OAAA,CAAAa,iBAAA,GAAAA,iBAAA;AAEM,MAAMG,oBAAoB,SAAS3B,oBAAS,CAAoD;EACrGC,WAAWA,CAAQ2B,QAAqB,EAASC,QAAqB,EAAE;IACtE,KAAK,CAACpB,sCAAe,CAACqB,QAAQ,CAAC;IAAC,KADfF,QAAqB,GAArBA,QAAqB;IAAA,KAASC,QAAqB,GAArBA,QAAqB;EAEtE;AACF;AAAClB,OAAA,CAAAgB,oBAAA,GAAAA,oBAAA;AAEM,MAAMI,sBAAsB,SAAS/B,oBAAS,CAAyD;EAC5GC,WAAWA,CAAQ+B,WAAmB,EAASC,sBAA+B,EAAE;IAC9E,KAAK,CAACxB,sCAAe,CAACyB,WAAW,CAAC;IAAC,KADlBF,WAAmB,GAAnBA,WAAmB;IAAA,KAASC,sBAA+B,GAA/BA,sBAA+B;EAE9E;AACF;AAACtB,OAAA,CAAAoB,sBAAA,GAAAA,sBAAA;AAEM,MAAMI,0BAA0B,SAASnC,oBAAS,CAAiE;EACxHC,WAAWA,CAAQI,QAAgB,EAAE;IACnC,KAAK,CAACI,sCAAe,CAAC2B,eAAe,CAAC;IAAC,KADtB/B,QAAgB,GAAhBA,QAAgB;EAEnC;AACF;AAACM,OAAA,CAAAwB,0BAAA,GAAAA,0BAAA;AAEM,MAAME,sBAAsB,SAASrC,oBAAS,CAAyD;EAC5GC,WAAWA,CAAQqC,YAAoB,EAAE;IACvC,KAAK,CAAC7B,sCAAe,CAAC8B,WAAW,CAAC;IAAC,KADlBD,YAAoB,GAApBA,YAAoB;EAEvC;AACF;AAAC3B,OAAA,CAAA0B,sBAAA,GAAAA,sBAAA;AAEM,MAAMG,2BAA2B,SAASxC,oBAAS,CAAoE;EAC5HC,WAAWA,CAAiBwC,gBAAwB,EAAShB,KAAa,EAASiB,UAAkB,EAAE;IACrG,KAAK,CAACjC,sCAAe,CAACkC,iBAAiB,CAAC;IAAC,KADfF,gBAAwB,GAAxBA,gBAAwB;IAAA,KAAShB,KAAa,GAAbA,KAAa;IAAA,KAASiB,UAAkB,GAAlBA,UAAkB;EAErG;AACF;AAAC/B,OAAA,CAAA6B,2BAAA,GAAAA,2BAAA;AAEM,MAAMI,yBAAyB,SAAS5C,oBAAS,CAAgE;EACtHC,WAAWA,CAAQ4C,OAA2B,EAASC,KAAgB,EAAE;IACvE,KAAK,CAACrC,sCAAe,CAACsC,eAAe,CAAC;IAAC,KADtBF,OAA2B,GAA3BA,OAA2B;IAAA,KAASC,KAAgB,GAAhBA,KAAgB;EAEvE;AACF;AAACnC,OAAA,CAAAiC,yBAAA,GAAAA,yBAAA;AAEM,MAAMI,qBAAqB,SAAShD,oBAAS,CAAuD;EACzGC,WAAWA,CAAQ4C,OAA2B,EAASI,QAAgB,EAASC,GAAiB,EAAE;IACjG,KAAK,CAACzC,sCAAe,CAAC0C,UAAU,CAAC;IAAC,KADjBN,OAA2B,GAA3BA,OAA2B;IAAA,KAASI,QAAgB,GAAhBA,QAAgB;IAAA,KAASC,GAAiB,GAAjBA,GAAiB;EAEjG;AACF;AAACvC,OAAA,CAAAqC,qBAAA,GAAAA,qBAAA;AAEM,MAAMI,0BAA0B,SAASpD,oBAAS,CAAkE;EACzHC,WAAWA,CAAQ4C,OAA2B,EAASQ,SAAyB,EAASP,KAAiB,EAAE;IAC1G,KAAK,CAACrC,sCAAe,CAAC6C,gBAAgB,CAAC;IAAC,KADvBT,OAA2B,GAA3BA,OAA2B;IAAA,KAASQ,SAAyB,GAAzBA,SAAyB;IAAA,KAASP,KAAiB,GAAjBA,KAAiB;EAE1G;AACF;AAACnC,OAAA,CAAAyC,0BAAA,GAAAA,0BAAA;AAEM,MAAMG,sBAAsB,SAASvD,oBAAS,CAAyD;EAC5GC,WAAWA,CACF4C,OAA4B,EAC5BQ,SAAyB,EACzBJ,QAAgB,EAChBO,SAA+B,EACtC;IACA,KAAK,CAAC/C,sCAAe,CAACgD,WAAW,CAAC;IAAC,KAL5BZ,OAA4B,GAA5BA,OAA4B;IAAA,KAC5BQ,SAAyB,GAAzBA,SAAyB;IAAA,KACzBJ,QAAgB,GAAhBA,QAAgB;IAAA,KAChBO,SAA+B,GAA/BA,SAA+B;EAGxC;AACF;AAAC7C,OAAA,CAAA4C,sBAAA,GAAAA,sBAAA;AAEM,MAAMG,cAAc,SAAS1D,oBAAS,CAA8C;EACzFC,WAAWA,CAAQ4C,OAAoB,EAASc,EAAgB,EAAE;IAChE,KAAK,CAAClD,sCAAe,CAACmD,QAAQ,CAAC;IAAC,KADff,OAAoB,GAApBA,OAAoB;IAAA,KAASc,EAAgB,GAAhBA,EAAgB;EAEhE;AACF;AAAChD,OAAA,CAAA+C,cAAA,GAAAA,cAAA;AAEM,MAAMG,4BAA4B,SAAS7D,oBAAS,CAA8D;EAGvHC,WAAWA,CAAQ6D,KAAgB,EAAE;IACnC,KAAK,CAACrD,sCAAe,CAACsD,UAAU,CAAC;IAAC,KADjBD,KAAgB,GAAhBA,KAAgB;IAAAtF,eAAA;IAEjC,IAAI,CAACqE,OAAO,GAAGmB,oCAAa,CAACC,uBAAuB;EACtD;AACF;AAACtD,OAAA,CAAAkD,4BAAA,GAAAA,4BAAA;AAEM,MAAMK,8BAA8B,SAASlE,oBAAS,CAAgE;EAG3HC,WAAWA,CAAQ6D,KAAgB,EAAE;IACnC,KAAK,CAACrD,sCAAe,CAACsD,UAAU,CAAC;IAAC,KADjBD,KAAgB,GAAhBA,KAAgB;IAAAtF,eAAA;IAEjC,IAAI,CAACqE,OAAO,GAAGmB,oCAAa,CAACG,oBAAoB;EACnD;AACF;AAACxD,OAAA,CAAAuD,8BAAA,GAAAA,8BAAA;AAEM,MAAME,2BAA2B,SAASpE,oBAAS,CAA6D;EAGrHC,WAAWA,CAAQwB,KAAsB,EAAE;IACzC,KAAK,CAAChB,sCAAe,CAACsD,UAAU,CAAC;IAAC,KADjBtC,KAAsB,GAAtBA,KAAsB;IAAAjD,eAAA;IAEvC,IAAI,CAACqE,OAAO,GAAGmB,oCAAa,CAACK,gBAAgB;EAC/C;AACF;AAAC1D,OAAA,CAAAyD,2BAAA,GAAAA,2BAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["NativeAdEvent.ts"],"sourcesContent":["import type { Ad, AdBreak, AdEventType } from 'react-native-theoplayer';\n\nexport interface NativeAdEvent {\n /**\n * Type of ad event.\n */\n type: AdEventType;\n\n /**\n * The ad or adbreak for which the event was dispatched.\n */\n ad: Ad | AdBreak;\n}\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["NativeCastEvent.ts"],"sourcesContent":["import type { CastState, ChromecastError } from 'react-native-theoplayer';\nimport type { CastEventType } from 'react-native-theoplayer';\n\nexport type NativeCastEvent = NativeChromecastChangeEvent | NativeAirplayStateChangeEvent | NativeChromecastErrorEvent;\n\nexport interface NativeChromecastChangeEvent {\n readonly type: CastEventType.CHROMECAST_STATE_CHANGE;\n\n readonly state: CastState;\n}\n\nexport interface NativeAirplayStateChangeEvent {\n readonly type: CastEventType.AIRPLAY_STATE_CHANGE;\n\n readonly state: CastState;\n}\n\nexport interface NativeChromecastErrorEvent {\n readonly type: CastEventType.CHROMECAST_ERROR;\n\n readonly error: ChromecastError;\n}\n"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sources":["NativePlayerEvent.ts"],"sourcesContent":["import type { MediaTrack, PlayerError, PresentationMode, PresentationModeChangeContext, TextTrack, TimeRange } from 'react-native-theoplayer';\nimport type { NativePlayerState } from '../../NativePlayerState';\n\nexport interface NativeErrorEvent {\n error: PlayerError;\n}\n\nexport interface NativeLoadedMetadataEvent {\n textTracks: TextTrack[];\n audioTracks: MediaTrack[];\n videoTracks: MediaTrack[];\n duration: number;\n selectedTextTrack: number | undefined;\n selectedVideoTrack: number | undefined;\n selectedAudioTrack: number | undefined;\n}\n\nexport interface NativeVolumeChangeEvent {\n /**\n * The player's current volume.\n */\n readonly volume: number;\n\n /**\n * The player's current mute state.\n */\n readonly muted: boolean;\n}\n\nexport interface NativeTimeUpdateEvent {\n /**\n * The player's current time, in msecs.\n */\n readonly currentTime: number;\n\n /**\n * The player's current program date time, in msecs.\n */\n readonly currentProgramDateTime?: number;\n}\n\nexport interface NativeDurationChangeEvent {\n /**\n * The player's new duration, in msecs.\n */\n readonly duration: number;\n}\n\nexport interface NativeRateChangeEvent {\n /**\n * The player's new playbackRate.\n */\n readonly playbackRate: number;\n}\n\nexport interface NativeReadyStateChangeEvent {\n /**\n * The player's new ready state.\n */\n readonly readyState: number;\n}\n\nexport interface NativePresentationModeChangeEvent {\n /**\n * The player's new presentation mode.\n */\n readonly presentationMode: PresentationMode;\n\n /**\n * The player's previous presentationMode.\n */\n readonly previousPresentationMode: PresentationMode;\n\n /**\n * The context for presentationMode change.\n */\n readonly context?: PresentationModeChangeContext;\n}\n\nexport interface NativeProgressEvent {\n /**\n * The ranges of the media resource that are seekable by the player.\n */\n readonly seekable: TimeRange[];\n\n /**\n * The ranges of the media resource that are buffered by the player.\n */\n readonly buffered: TimeRange[];\n}\n\nexport interface NativeSegmentNotFoundEvent {\n /**\n * Start time of the segment.\n */\n readonly segmentStartTime: number;\n\n /**\n * Descriptive error message.\n */\n readonly error: string;\n\n /**\n * Number of times the segment was retried.\n */\n readonly retryCount: number;\n}\n\nexport interface NativePlayerStateEvent {\n readonly state: NativePlayerState;\n}\n"],"mappings":""}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.NativeTrackListEventType = exports.NativeTextTrackEventType = exports.NativeMediaTrackType = exports.NativeMediaTrackEventType = void 0;
|
|
7
|
+
exports.toMediaTrackType = toMediaTrackType;
|
|
8
|
+
exports.toMediaTrackTypeEventType = toMediaTrackTypeEventType;
|
|
9
|
+
exports.toTextTrackEventType = toTextTrackEventType;
|
|
10
|
+
exports.toTrackListEventType = toTrackListEventType;
|
|
11
|
+
var _reactNativeTheoplayer = require("react-native-theoplayer");
|
|
12
|
+
let NativeTrackListEventType;
|
|
13
|
+
exports.NativeTrackListEventType = NativeTrackListEventType;
|
|
14
|
+
(function (NativeTrackListEventType) {
|
|
15
|
+
NativeTrackListEventType[NativeTrackListEventType["AddTrack"] = 0] = "AddTrack";
|
|
16
|
+
NativeTrackListEventType[NativeTrackListEventType["RemoveTrack"] = 1] = "RemoveTrack";
|
|
17
|
+
NativeTrackListEventType[NativeTrackListEventType["ChangeTrack"] = 2] = "ChangeTrack";
|
|
18
|
+
})(NativeTrackListEventType || (exports.NativeTrackListEventType = NativeTrackListEventType = {}));
|
|
19
|
+
let NativeTextTrackEventType;
|
|
20
|
+
exports.NativeTextTrackEventType = NativeTextTrackEventType;
|
|
21
|
+
(function (NativeTextTrackEventType) {
|
|
22
|
+
NativeTextTrackEventType[NativeTextTrackEventType["AddCue"] = 0] = "AddCue";
|
|
23
|
+
NativeTextTrackEventType[NativeTextTrackEventType["RemoveCue"] = 1] = "RemoveCue";
|
|
24
|
+
NativeTextTrackEventType[NativeTextTrackEventType["EnterCue"] = 2] = "EnterCue";
|
|
25
|
+
NativeTextTrackEventType[NativeTextTrackEventType["ExitCue"] = 3] = "ExitCue";
|
|
26
|
+
})(NativeTextTrackEventType || (exports.NativeTextTrackEventType = NativeTextTrackEventType = {}));
|
|
27
|
+
let NativeMediaTrackType;
|
|
28
|
+
exports.NativeMediaTrackType = NativeMediaTrackType;
|
|
29
|
+
(function (NativeMediaTrackType) {
|
|
30
|
+
NativeMediaTrackType[NativeMediaTrackType["Audio"] = 0] = "Audio";
|
|
31
|
+
NativeMediaTrackType[NativeMediaTrackType["Video"] = 1] = "Video";
|
|
32
|
+
})(NativeMediaTrackType || (exports.NativeMediaTrackType = NativeMediaTrackType = {}));
|
|
33
|
+
let NativeMediaTrackEventType;
|
|
34
|
+
exports.NativeMediaTrackEventType = NativeMediaTrackEventType;
|
|
35
|
+
(function (NativeMediaTrackEventType) {
|
|
36
|
+
NativeMediaTrackEventType[NativeMediaTrackEventType["ActiveQualityChanged"] = 0] = "ActiveQualityChanged";
|
|
37
|
+
})(NativeMediaTrackEventType || (exports.NativeMediaTrackEventType = NativeMediaTrackEventType = {}));
|
|
38
|
+
function toTrackListEventType(type) {
|
|
39
|
+
switch (type) {
|
|
40
|
+
case NativeTrackListEventType.AddTrack:
|
|
41
|
+
return _reactNativeTheoplayer.TrackListEventType.ADD_TRACK;
|
|
42
|
+
case NativeTrackListEventType.ChangeTrack:
|
|
43
|
+
return _reactNativeTheoplayer.TrackListEventType.CHANGE_TRACK;
|
|
44
|
+
case NativeTrackListEventType.RemoveTrack:
|
|
45
|
+
return _reactNativeTheoplayer.TrackListEventType.REMOVE_TRACK;
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
function toTextTrackEventType(type) {
|
|
49
|
+
switch (type) {
|
|
50
|
+
case NativeTextTrackEventType.AddCue:
|
|
51
|
+
return _reactNativeTheoplayer.TextTrackEventType.ADD_CUE;
|
|
52
|
+
case NativeTextTrackEventType.RemoveCue:
|
|
53
|
+
return _reactNativeTheoplayer.TextTrackEventType.REMOVE_CUE;
|
|
54
|
+
case NativeTextTrackEventType.EnterCue:
|
|
55
|
+
return _reactNativeTheoplayer.TextTrackEventType.ENTER_CUE;
|
|
56
|
+
case NativeTextTrackEventType.ExitCue:
|
|
57
|
+
return _reactNativeTheoplayer.TextTrackEventType.EXIT_CUE;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
function toMediaTrackType(type) {
|
|
61
|
+
switch (type) {
|
|
62
|
+
case NativeMediaTrackType.Audio:
|
|
63
|
+
return _reactNativeTheoplayer.MediaTrackType.AUDIO;
|
|
64
|
+
case NativeMediaTrackType.Video:
|
|
65
|
+
return _reactNativeTheoplayer.MediaTrackType.VIDEO;
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
function toMediaTrackTypeEventType(type) {
|
|
69
|
+
switch (type) {
|
|
70
|
+
case NativeMediaTrackEventType.ActiveQualityChanged:
|
|
71
|
+
return _reactNativeTheoplayer.MediaTrackEventType.ACTIVE_QUALITY_CHANGED;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
//# sourceMappingURL=NativeTrackEvent.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_reactNativeTheoplayer","require","NativeTrackListEventType","exports","NativeTextTrackEventType","NativeMediaTrackType","NativeMediaTrackEventType","toTrackListEventType","type","AddTrack","TrackListEventType","ADD_TRACK","ChangeTrack","CHANGE_TRACK","RemoveTrack","REMOVE_TRACK","toTextTrackEventType","AddCue","TextTrackEventType","ADD_CUE","RemoveCue","REMOVE_CUE","EnterCue","ENTER_CUE","ExitCue","EXIT_CUE","toMediaTrackType","Audio","MediaTrackType","AUDIO","Video","VIDEO","toMediaTrackTypeEventType","ActiveQualityChanged","MediaTrackEventType","ACTIVE_QUALITY_CHANGED"],"sources":["NativeTrackEvent.ts"],"sourcesContent":["import type { MediaTrack, Quality, TextTrack, TextTrackCue } from 'react-native-theoplayer';\nimport { MediaTrackEventType, MediaTrackType, TextTrackEventType, TrackListEventType } from 'react-native-theoplayer';\n\nexport enum NativeTrackListEventType {\n /**\n * Dispatched when track has been added to the track list.\n */\n AddTrack,\n\n /**\n * Dispatched when track has been removed from the track list.\n */\n RemoveTrack,\n\n /**\n * Fired when a track has been changed.\n */\n ChangeTrack,\n}\n\nexport interface NativeTrackListEvent {\n /**\n * The type of track list event.\n */\n readonly type: NativeTrackListEventType;\n}\n\nexport interface NativeTextTrackListEvent extends NativeTrackListEvent {\n /**\n * The relevant text track.\n */\n readonly track: TextTrack;\n}\n\nexport enum NativeTextTrackEventType {\n /**\n * Dispatched when cue has been added to the text track.\n */\n AddCue,\n\n /**\n * Dispatched when cue has been removed from the text track.\n */\n RemoveCue,\n\n /**\n * Dispatched when a cue of the track enters.\n */\n EnterCue,\n\n /**\n * Dispatched when a cue of the track exits.\n */\n ExitCue,\n}\n\nexport interface NativeTextTrackEvent {\n /**\n * The type of text track event.\n */\n readonly type: NativeTextTrackEventType;\n\n /**\n * The text track's uid to which this cue belongs.\n */\n readonly trackUid: number;\n\n /**\n * The text track's cue.\n */\n readonly cue: TextTrackCue;\n}\n\nexport enum NativeMediaTrackType {\n Audio,\n\n Video,\n}\n\nexport interface NativeMediaTrackListEvent extends NativeTrackListEvent {\n /**\n * The relevant media track type, either {@link NativeMediaTrackType.Audio} or {@link NativeMediaTrackType.Video}.\n */\n readonly trackType: NativeMediaTrackType;\n\n /**\n * The relevant media track.\n */\n readonly track: MediaTrack;\n}\n\nexport enum NativeMediaTrackEventType {\n /**\n * Dispatched when the media track's active quality changes.\n */\n ActiveQualityChanged,\n}\n\nexport interface NativeMediaTrackEvent {\n /**\n * The type of media track event.\n */\n readonly type: NativeMediaTrackEventType;\n\n /**\n * The media track's type to which event belongs, either {@link MediaTrackType.Audio} or {@link MediaTrackType.Video}.\n */\n readonly trackType: NativeMediaTrackType;\n\n /**\n * The media track's uid to which event belongs.\n */\n readonly trackUid: number;\n\n /**\n * The affected media track's qualities.\n */\n readonly qualities?: Quality | Quality[];\n}\n\nexport function toTrackListEventType(type: NativeTrackListEventType): TrackListEventType {\n switch (type) {\n case NativeTrackListEventType.AddTrack:\n return TrackListEventType.ADD_TRACK;\n case NativeTrackListEventType.ChangeTrack:\n return TrackListEventType.CHANGE_TRACK;\n case NativeTrackListEventType.RemoveTrack:\n return TrackListEventType.REMOVE_TRACK;\n }\n}\n\nexport function toTextTrackEventType(type: NativeTextTrackEventType): TextTrackEventType {\n switch (type) {\n case NativeTextTrackEventType.AddCue:\n return TextTrackEventType.ADD_CUE;\n case NativeTextTrackEventType.RemoveCue:\n return TextTrackEventType.REMOVE_CUE;\n case NativeTextTrackEventType.EnterCue:\n return TextTrackEventType.ENTER_CUE;\n case NativeTextTrackEventType.ExitCue:\n return TextTrackEventType.EXIT_CUE;\n }\n}\n\nexport function toMediaTrackType(type: NativeMediaTrackType): MediaTrackType {\n switch (type) {\n case NativeMediaTrackType.Audio:\n return MediaTrackType.AUDIO;\n case NativeMediaTrackType.Video:\n return MediaTrackType.VIDEO;\n }\n}\n\nexport function toMediaTrackTypeEventType(type: NativeMediaTrackEventType): MediaTrackEventType {\n switch (type) {\n case NativeMediaTrackEventType.ActiveQualityChanged:\n return MediaTrackEventType.ACTIVE_QUALITY_CHANGED;\n }\n}\n"],"mappings":";;;;;;;;;;AACA,IAAAA,sBAAA,GAAAC,OAAA;AAAsH,IAE1GC,wBAAwB;AAAAC,OAAA,CAAAD,wBAAA,GAAAA,wBAAA;AAAA,WAAxBA,wBAAwB;EAAxBA,wBAAwB,CAAxBA,wBAAwB;EAAxBA,wBAAwB,CAAxBA,wBAAwB;EAAxBA,wBAAwB,CAAxBA,wBAAwB;AAAA,GAAxBA,wBAAwB,KAAAC,OAAA,CAAAD,wBAAA,GAAxBA,wBAAwB;AAAA,IA+BxBE,wBAAwB;AAAAD,OAAA,CAAAC,wBAAA,GAAAA,wBAAA;AAAA,WAAxBA,wBAAwB;EAAxBA,wBAAwB,CAAxBA,wBAAwB;EAAxBA,wBAAwB,CAAxBA,wBAAwB;EAAxBA,wBAAwB,CAAxBA,wBAAwB;EAAxBA,wBAAwB,CAAxBA,wBAAwB;AAAA,GAAxBA,wBAAwB,KAAAD,OAAA,CAAAC,wBAAA,GAAxBA,wBAAwB;AAAA,IAuCxBC,oBAAoB;AAAAF,OAAA,CAAAE,oBAAA,GAAAA,oBAAA;AAAA,WAApBA,oBAAoB;EAApBA,oBAAoB,CAApBA,oBAAoB;EAApBA,oBAAoB,CAApBA,oBAAoB;AAAA,GAApBA,oBAAoB,KAAAF,OAAA,CAAAE,oBAAA,GAApBA,oBAAoB;AAAA,IAkBpBC,yBAAyB;AAAAH,OAAA,CAAAG,yBAAA,GAAAA,yBAAA;AAAA,WAAzBA,yBAAyB;EAAzBA,yBAAyB,CAAzBA,yBAAyB;AAAA,GAAzBA,yBAAyB,KAAAH,OAAA,CAAAG,yBAAA,GAAzBA,yBAAyB;AA6B9B,SAASC,oBAAoBA,CAACC,IAA8B,EAAsB;EACvF,QAAQA,IAAI;IACV,KAAKN,wBAAwB,CAACO,QAAQ;MACpC,OAAOC,yCAAkB,CAACC,SAAS;IACrC,KAAKT,wBAAwB,CAACU,WAAW;MACvC,OAAOF,yCAAkB,CAACG,YAAY;IACxC,KAAKX,wBAAwB,CAACY,WAAW;MACvC,OAAOJ,yCAAkB,CAACK,YAAY;EAAC;AAE7C;AAEO,SAASC,oBAAoBA,CAACR,IAA8B,EAAsB;EACvF,QAAQA,IAAI;IACV,KAAKJ,wBAAwB,CAACa,MAAM;MAClC,OAAOC,yCAAkB,CAACC,OAAO;IACnC,KAAKf,wBAAwB,CAACgB,SAAS;MACrC,OAAOF,yCAAkB,CAACG,UAAU;IACtC,KAAKjB,wBAAwB,CAACkB,QAAQ;MACpC,OAAOJ,yCAAkB,CAACK,SAAS;IACrC,KAAKnB,wBAAwB,CAACoB,OAAO;MACnC,OAAON,yCAAkB,CAACO,QAAQ;EAAC;AAEzC;AAEO,SAASC,gBAAgBA,CAAClB,IAA0B,EAAkB;EAC3E,QAAQA,IAAI;IACV,KAAKH,oBAAoB,CAACsB,KAAK;MAC7B,OAAOC,qCAAc,CAACC,KAAK;IAC7B,KAAKxB,oBAAoB,CAACyB,KAAK;MAC7B,OAAOF,qCAAc,CAACG,KAAK;EAAC;AAElC;AAEO,SAASC,yBAAyBA,CAACxB,IAA+B,EAAuB;EAC9F,QAAQA,IAAI;IACV,KAAKF,yBAAyB,CAAC2B,oBAAoB;MACjD,OAAOC,0CAAmB,CAACC,sBAAsB;EAAC;AAExD"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.TextTrackStyleAdapter = void 0;
|
|
7
|
+
class TextTrackStyleAdapter {
|
|
8
|
+
// @ts-ignore
|
|
9
|
+
constructor(_player) {
|
|
10
|
+
this._player = _player;
|
|
11
|
+
}
|
|
12
|
+
get backgroundColor() {
|
|
13
|
+
// NYI
|
|
14
|
+
return undefined;
|
|
15
|
+
}
|
|
16
|
+
set backgroundColor(_) {
|
|
17
|
+
// NYI
|
|
18
|
+
}
|
|
19
|
+
get edgeStyle() {
|
|
20
|
+
return undefined;
|
|
21
|
+
}
|
|
22
|
+
set edgeStyle(_) {
|
|
23
|
+
// NYI
|
|
24
|
+
}
|
|
25
|
+
get fontColor() {
|
|
26
|
+
return undefined;
|
|
27
|
+
}
|
|
28
|
+
set fontColor(_) {
|
|
29
|
+
// NYI
|
|
30
|
+
}
|
|
31
|
+
get fontFamily() {
|
|
32
|
+
return undefined;
|
|
33
|
+
}
|
|
34
|
+
set fontFamily(_) {
|
|
35
|
+
// NYI
|
|
36
|
+
}
|
|
37
|
+
get fontSize() {
|
|
38
|
+
return undefined;
|
|
39
|
+
}
|
|
40
|
+
set fontSize(_) {
|
|
41
|
+
// NYI
|
|
42
|
+
}
|
|
43
|
+
get windowColor() {
|
|
44
|
+
return undefined;
|
|
45
|
+
}
|
|
46
|
+
set windowColor(_) {
|
|
47
|
+
// NYI
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
exports.TextTrackStyleAdapter = TextTrackStyleAdapter;
|
|
51
|
+
//# sourceMappingURL=TextTrackStyleAdapter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["TextTrackStyleAdapter","constructor","_player","backgroundColor","undefined","_","edgeStyle","fontColor","fontFamily","fontSize","windowColor","exports"],"sources":["TextTrackStyleAdapter.ts"],"sourcesContent":["import type { EdgeStyle, TextTrackStyle, THEOplayerView } from 'react-native-theoplayer';\n\nexport class TextTrackStyleAdapter implements TextTrackStyle {\n // @ts-ignore\n constructor(private readonly _player: THEOplayerView) {}\n\n get backgroundColor(): string | undefined {\n // NYI\n return undefined;\n }\n\n set backgroundColor(_: string | undefined) {\n // NYI\n }\n\n get edgeStyle(): EdgeStyle | undefined {\n return undefined;\n }\n\n set edgeStyle(_: EdgeStyle | undefined) {\n // NYI\n }\n\n get fontColor(): string | undefined {\n return undefined;\n }\n\n set fontColor(_: string | undefined) {\n // NYI\n }\n\n get fontFamily(): string | undefined {\n return undefined;\n }\n\n set fontFamily(_: string | undefined) {\n // NYI\n }\n\n get fontSize(): string | undefined {\n return undefined;\n }\n\n set fontSize(_: string | undefined) {\n // NYI\n }\n\n get windowColor(): string | undefined {\n return undefined;\n }\n\n set windowColor(_: string | undefined) {\n // NYI\n }\n}\n"],"mappings":";;;;;;AAEO,MAAMA,qBAAqB,CAA2B;EAC3D;EACAC,WAAWA,CAAkBC,OAAuB,EAAE;IAAA,KAAzBA,OAAuB,GAAvBA,OAAuB;EAAG;EAEvD,IAAIC,eAAeA,CAAA,EAAuB;IACxC;IACA,OAAOC,SAAS;EAClB;EAEA,IAAID,eAAeA,CAACE,CAAqB,EAAE;IACzC;EAAA;EAGF,IAAIC,SAASA,CAAA,EAA0B;IACrC,OAAOF,SAAS;EAClB;EAEA,IAAIE,SAASA,CAACD,CAAwB,EAAE;IACtC;EAAA;EAGF,IAAIE,SAASA,CAAA,EAAuB;IAClC,OAAOH,SAAS;EAClB;EAEA,IAAIG,SAASA,CAACF,CAAqB,EAAE;IACnC;EAAA;EAGF,IAAIG,UAAUA,CAAA,EAAuB;IACnC,OAAOJ,SAAS;EAClB;EAEA,IAAII,UAAUA,CAACH,CAAqB,EAAE;IACpC;EAAA;EAGF,IAAII,QAAQA,CAAA,EAAuB;IACjC,OAAOL,SAAS;EAClB;EAEA,IAAIK,QAAQA,CAACJ,CAAqB,EAAE;IAClC;EAAA;EAGF,IAAIK,WAAWA,CAAA,EAAuB;IACpC,OAAON,SAAS;EAClB;EAEA,IAAIM,WAAWA,CAACL,CAAqB,EAAE;IACrC;EAAA;AAEJ;AAACM,OAAA,CAAAX,qBAAA,GAAAA,qBAAA"}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.findNativeQualitiesByUid = findNativeQualitiesByUid;
|
|
7
|
+
exports.findNativeQualityByUid = findNativeQualityByUid;
|
|
8
|
+
exports.fromNativeCue = fromNativeCue;
|
|
9
|
+
exports.fromNativeMediaTrack = fromNativeMediaTrack;
|
|
10
|
+
exports.fromNativeMediaTrackList = fromNativeMediaTrackList;
|
|
11
|
+
exports.fromNativeTextTrack = fromNativeTextTrack;
|
|
12
|
+
exports.fromNativeTextTrackList = fromNativeTextTrackList;
|
|
13
|
+
function fromNativeCue(cue) {
|
|
14
|
+
return {
|
|
15
|
+
id: cue.id,
|
|
16
|
+
uid: cue.uid,
|
|
17
|
+
startTime: 1e3 * cue.startTime,
|
|
18
|
+
endTime: 1e3 * cue.endTime,
|
|
19
|
+
content: cue.content
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
function fromNativeTextTrackList(tracks) {
|
|
23
|
+
return tracks.map(track => fromNativeTextTrack(track));
|
|
24
|
+
}
|
|
25
|
+
function fromNativeTextTrack(track) {
|
|
26
|
+
const {
|
|
27
|
+
id,
|
|
28
|
+
uid,
|
|
29
|
+
kind,
|
|
30
|
+
label,
|
|
31
|
+
language,
|
|
32
|
+
mode,
|
|
33
|
+
type,
|
|
34
|
+
src,
|
|
35
|
+
forced
|
|
36
|
+
} = track;
|
|
37
|
+
return {
|
|
38
|
+
id,
|
|
39
|
+
uid,
|
|
40
|
+
kind,
|
|
41
|
+
label,
|
|
42
|
+
language,
|
|
43
|
+
mode,
|
|
44
|
+
type,
|
|
45
|
+
src,
|
|
46
|
+
forced,
|
|
47
|
+
cues: track.cues ? track.cues.map(cue => fromNativeCue(cue)) : []
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function fromNativeMediaTrackList(tracks) {
|
|
51
|
+
return tracks.map(track => fromNativeMediaTrack(track));
|
|
52
|
+
}
|
|
53
|
+
function fromNativeMediaTrack(track) {
|
|
54
|
+
const {
|
|
55
|
+
id,
|
|
56
|
+
uid,
|
|
57
|
+
kind,
|
|
58
|
+
label,
|
|
59
|
+
language,
|
|
60
|
+
activeQuality,
|
|
61
|
+
qualities
|
|
62
|
+
} = track;
|
|
63
|
+
return {
|
|
64
|
+
kind,
|
|
65
|
+
label,
|
|
66
|
+
language,
|
|
67
|
+
id,
|
|
68
|
+
uid,
|
|
69
|
+
activeQuality,
|
|
70
|
+
qualities
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
function findNativeQualityByUid(mediaTrack, uid) {
|
|
74
|
+
return mediaTrack.qualities.find(quality => quality.uid === uid);
|
|
75
|
+
}
|
|
76
|
+
function findNativeQualitiesByUid(mediaTrack, uid) {
|
|
77
|
+
if (uid !== undefined && mediaTrack) {
|
|
78
|
+
if (Array.isArray(uid)) {
|
|
79
|
+
return mediaTrack.qualities.filter(quality => uid.includes(quality.uid));
|
|
80
|
+
} else {
|
|
81
|
+
const quality = findNativeQualityByUid(mediaTrack, uid);
|
|
82
|
+
return quality ? [quality] : undefined;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
return undefined;
|
|
86
|
+
}
|
|
87
|
+
//# sourceMappingURL=TrackUtils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["fromNativeCue","cue","id","uid","startTime","endTime","content","fromNativeTextTrackList","tracks","map","track","fromNativeTextTrack","kind","label","language","mode","type","src","forced","cues","fromNativeMediaTrackList","fromNativeMediaTrack","activeQuality","qualities","findNativeQualityByUid","mediaTrack","find","quality","findNativeQualitiesByUid","undefined","Array","isArray","filter","includes"],"sources":["TrackUtils.ts"],"sourcesContent":["import type {\n MediaTrack as NativeMediaTrack,\n MediaTrackList as NativeMediaTrackList,\n Quality as NativeQuality,\n TextTrack as NativeTextTrack,\n TextTrackCue as NativeTextTrackCue,\n TextTracksList as NativeTextTrackList,\n} from 'theoplayer';\nimport type { MediaTrack, TextTrack, TextTrackCue } from 'react-native-theoplayer';\n\nexport function fromNativeCue(cue: NativeTextTrackCue): TextTrackCue {\n return {\n id: cue.id,\n uid: cue.uid,\n startTime: 1e3 * cue.startTime,\n endTime: 1e3 * cue.endTime,\n content: cue.content,\n } as TextTrackCue;\n}\n\nexport function fromNativeTextTrackList(tracks: NativeTextTrackList): TextTrack[] {\n return tracks.map((track) => fromNativeTextTrack(track));\n}\n\nexport function fromNativeTextTrack(track: NativeTextTrack): TextTrack {\n const { id, uid, kind, label, language, mode, type, src, forced } = track;\n\n return {\n id,\n uid,\n kind,\n label,\n language,\n mode,\n type,\n src,\n forced,\n cues: track.cues ? track.cues.map((cue) => fromNativeCue(cue)) : [],\n } as TextTrack;\n}\n\nexport function fromNativeMediaTrackList(tracks: NativeMediaTrackList): MediaTrack[] {\n return tracks.map((track) => fromNativeMediaTrack(track));\n}\n\nexport function fromNativeMediaTrack(track: NativeMediaTrack): MediaTrack {\n const { id, uid, kind, label, language, activeQuality, qualities } = track;\n return {\n kind,\n label,\n language,\n id,\n uid,\n activeQuality,\n qualities,\n } as MediaTrack;\n}\n\nexport function findNativeQualityByUid(mediaTrack: NativeMediaTrack, uid: number | undefined): NativeQuality | undefined {\n return mediaTrack.qualities.find((quality) => quality.uid === uid);\n}\n\nexport function findNativeQualitiesByUid(mediaTrack: NativeMediaTrack | undefined, uid: number | number[] | undefined): NativeQuality[] | undefined {\n if (uid !== undefined && mediaTrack) {\n if (Array.isArray(uid)) {\n return mediaTrack.qualities.filter((quality) => uid.includes(quality.uid));\n } else {\n const quality = findNativeQualityByUid(mediaTrack, uid);\n return quality ? [quality] : undefined;\n }\n }\n return undefined;\n}\n"],"mappings":";;;;;;;;;;;;AAUO,SAASA,aAAaA,CAACC,GAAuB,EAAgB;EACnE,OAAO;IACLC,EAAE,EAAED,GAAG,CAACC,EAAE;IACVC,GAAG,EAAEF,GAAG,CAACE,GAAG;IACZC,SAAS,EAAE,GAAG,GAAGH,GAAG,CAACG,SAAS;IAC9BC,OAAO,EAAE,GAAG,GAAGJ,GAAG,CAACI,OAAO;IAC1BC,OAAO,EAAEL,GAAG,CAACK;EACf,CAAC;AACH;AAEO,SAASC,uBAAuBA,CAACC,MAA2B,EAAe;EAChF,OAAOA,MAAM,CAACC,GAAG,CAAEC,KAAK,IAAKC,mBAAmB,CAACD,KAAK,CAAC,CAAC;AAC1D;AAEO,SAASC,mBAAmBA,CAACD,KAAsB,EAAa;EACrE,MAAM;IAAER,EAAE;IAAEC,GAAG;IAAES,IAAI;IAAEC,KAAK;IAAEC,QAAQ;IAAEC,IAAI;IAAEC,IAAI;IAAEC,GAAG;IAAEC;EAAO,CAAC,GAAGR,KAAK;EAEzE,OAAO;IACLR,EAAE;IACFC,GAAG;IACHS,IAAI;IACJC,KAAK;IACLC,QAAQ;IACRC,IAAI;IACJC,IAAI;IACJC,GAAG;IACHC,MAAM;IACNC,IAAI,EAAET,KAAK,CAACS,IAAI,GAAGT,KAAK,CAACS,IAAI,CAACV,GAAG,CAAER,GAAG,IAAKD,aAAa,CAACC,GAAG,CAAC,CAAC,GAAG;EACnE,CAAC;AACH;AAEO,SAASmB,wBAAwBA,CAACZ,MAA4B,EAAgB;EACnF,OAAOA,MAAM,CAACC,GAAG,CAAEC,KAAK,IAAKW,oBAAoB,CAACX,KAAK,CAAC,CAAC;AAC3D;AAEO,SAASW,oBAAoBA,CAACX,KAAuB,EAAc;EACxE,MAAM;IAAER,EAAE;IAAEC,GAAG;IAAES,IAAI;IAAEC,KAAK;IAAEC,QAAQ;IAAEQ,aAAa;IAAEC;EAAU,CAAC,GAAGb,KAAK;EAC1E,OAAO;IACLE,IAAI;IACJC,KAAK;IACLC,QAAQ;IACRZ,EAAE;IACFC,GAAG;IACHmB,aAAa;IACbC;EACF,CAAC;AACH;AAEO,SAASC,sBAAsBA,CAACC,UAA4B,EAAEtB,GAAuB,EAA6B;EACvH,OAAOsB,UAAU,CAACF,SAAS,CAACG,IAAI,CAAEC,OAAO,IAAKA,OAAO,CAACxB,GAAG,KAAKA,GAAG,CAAC;AACpE;AAEO,SAASyB,wBAAwBA,CAACH,UAAwC,EAAEtB,GAAkC,EAA+B;EAClJ,IAAIA,GAAG,KAAK0B,SAAS,IAAIJ,UAAU,EAAE;IACnC,IAAIK,KAAK,CAACC,OAAO,CAAC5B,GAAG,CAAC,EAAE;MACtB,OAAOsB,UAAU,CAACF,SAAS,CAACS,MAAM,CAAEL,OAAO,IAAKxB,GAAG,CAAC8B,QAAQ,CAACN,OAAO,CAACxB,GAAG,CAAC,CAAC;IAC5E,CAAC,MAAM;MACL,MAAMwB,OAAO,GAAGH,sBAAsB,CAACC,UAAU,EAAEtB,GAAG,CAAC;MACvD,OAAOwB,OAAO,GAAG,CAACA,OAAO,CAAC,GAAGE,SAAS;IACxC;EACF;EACA,OAAOA,SAAS;AAClB"}
|