react-native-theoplayer 2.8.0 → 2.9.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 +49 -13
- package/README.md +16 -2
- package/android/src/main/java/com/theoplayer/media/MediaNotificationBuilder.kt +5 -0
- package/android/src/main/java/com/theoplayer/media/MediaPlaybackService.kt +31 -8
- package/ios/contentprotection/THEOplayerRCTProxyContentProtectionIntegration.swift +19 -29
- package/lib/commonjs/api/cast/Chromecast.js.map +1 -1
- package/lib/commonjs/index.js +0 -12
- package/lib/commonjs/index.js.map +1 -1
- package/lib/module/api/cast/Chromecast.js.map +1 -1
- package/lib/module/index.js +0 -1
- package/lib/module/index.js.map +1 -1
- package/lib/typescript/api/cast/Chromecast.d.ts +1 -1
- package/lib/typescript/index.d.ts +0 -1
- package/package.json +2 -8
- package/react-native-theoplayer.podspec +1 -1
- package/src/api/cast/Chromecast.ts +1 -1
- package/src/index.tsx +0 -1
- package/lib/commonjs/ui/THEOplayerDefaultUi.js +0 -82
- package/lib/commonjs/ui/THEOplayerDefaultUi.js.map +0 -1
- package/lib/commonjs/ui/THEOplayerTheme.js +0 -48
- package/lib/commonjs/ui/THEOplayerTheme.js.map +0 -1
- package/lib/commonjs/ui/barrel.js +0 -39
- package/lib/commonjs/ui/barrel.js.map +0 -1
- package/lib/commonjs/ui/components/activityindicator/CenteredDelayedActivityIndicator.js +0 -99
- package/lib/commonjs/ui/components/activityindicator/CenteredDelayedActivityIndicator.js.map +0 -1
- package/lib/commonjs/ui/components/activityindicator/DelayedActivityIndicator.js +0 -35
- package/lib/commonjs/ui/components/activityindicator/DelayedActivityIndicator.js.map +0 -1
- package/lib/commonjs/ui/components/activityindicator/barrel.js +0 -28
- package/lib/commonjs/ui/components/activityindicator/barrel.js.map +0 -1
- package/lib/commonjs/ui/components/barrel.js +0 -105
- package/lib/commonjs/ui/components/barrel.js.map +0 -1
- package/lib/commonjs/ui/components/button/AirplayButton.js +0 -81
- package/lib/commonjs/ui/components/button/AirplayButton.js.map +0 -1
- package/lib/commonjs/ui/components/button/ChromecastButton.js +0 -66
- package/lib/commonjs/ui/components/button/ChromecastButton.js.map +0 -1
- package/lib/commonjs/ui/components/button/ChromecastButton.web.js +0 -82
- package/lib/commonjs/ui/components/button/ChromecastButton.web.js.map +0 -1
- package/lib/commonjs/ui/components/button/FullscreenButton.js +0 -72
- package/lib/commonjs/ui/components/button/FullscreenButton.js.map +0 -1
- package/lib/commonjs/ui/components/button/MuteButton.js +0 -66
- package/lib/commonjs/ui/components/button/MuteButton.js.map +0 -1
- package/lib/commonjs/ui/components/button/PipButton.js +0 -72
- package/lib/commonjs/ui/components/button/PipButton.js.map +0 -1
- package/lib/commonjs/ui/components/button/PlayButton.js +0 -113
- package/lib/commonjs/ui/components/button/PlayButton.js.map +0 -1
- package/lib/commonjs/ui/components/button/SkipButton.js +0 -122
- package/lib/commonjs/ui/components/button/SkipButton.js.map +0 -1
- package/lib/commonjs/ui/components/button/actionbutton/ActionButton.js +0 -82
- package/lib/commonjs/ui/components/button/actionbutton/ActionButton.js.map +0 -1
- package/lib/commonjs/ui/components/button/barrel.js +0 -105
- package/lib/commonjs/ui/components/button/barrel.js.map +0 -1
- package/lib/commonjs/ui/components/button/svg/AirplaySvg.js +0 -22
- package/lib/commonjs/ui/components/button/svg/AirplaySvg.js.map +0 -1
- package/lib/commonjs/ui/components/button/svg/ArrowForwardSvg.js +0 -22
- package/lib/commonjs/ui/components/button/svg/ArrowForwardSvg.js.map +0 -1
- package/lib/commonjs/ui/components/button/svg/BackSvg.js +0 -22
- package/lib/commonjs/ui/components/button/svg/BackSvg.js.map +0 -1
- package/lib/commonjs/ui/components/button/svg/BackwardSvg.js +0 -22
- package/lib/commonjs/ui/components/button/svg/BackwardSvg.js.map +0 -1
- package/lib/commonjs/ui/components/button/svg/ChromecastSvg.js +0 -22
- package/lib/commonjs/ui/components/button/svg/ChromecastSvg.js.map +0 -1
- package/lib/commonjs/ui/components/button/svg/ErrorSvg.js +0 -22
- package/lib/commonjs/ui/components/button/svg/ErrorSvg.js.map +0 -1
- package/lib/commonjs/ui/components/button/svg/ForwardSvg.js +0 -22
- package/lib/commonjs/ui/components/button/svg/ForwardSvg.js.map +0 -1
- package/lib/commonjs/ui/components/button/svg/FullscreenEnterSvg.js +0 -22
- package/lib/commonjs/ui/components/button/svg/FullscreenEnterSvg.js.map +0 -1
- package/lib/commonjs/ui/components/button/svg/FullscreenExitSvg.js +0 -22
- package/lib/commonjs/ui/components/button/svg/FullscreenExitSvg.js.map +0 -1
- package/lib/commonjs/ui/components/button/svg/LanguageSvg.js +0 -22
- package/lib/commonjs/ui/components/button/svg/LanguageSvg.js.map +0 -1
- package/lib/commonjs/ui/components/button/svg/ListSvg.js +0 -22
- package/lib/commonjs/ui/components/button/svg/ListSvg.js.map +0 -1
- package/lib/commonjs/ui/components/button/svg/PauseSvg.js +0 -22
- package/lib/commonjs/ui/components/button/svg/PauseSvg.js.map +0 -1
- package/lib/commonjs/ui/components/button/svg/PipEnterSvg.js +0 -22
- package/lib/commonjs/ui/components/button/svg/PipEnterSvg.js.map +0 -1
- package/lib/commonjs/ui/components/button/svg/PipExitSvg.js +0 -22
- package/lib/commonjs/ui/components/button/svg/PipExitSvg.js.map +0 -1
- package/lib/commonjs/ui/components/button/svg/PlaySvg.js +0 -22
- package/lib/commonjs/ui/components/button/svg/PlaySvg.js.map +0 -1
- package/lib/commonjs/ui/components/button/svg/ReplaySvg.js +0 -22
- package/lib/commonjs/ui/components/button/svg/ReplaySvg.js.map +0 -1
- package/lib/commonjs/ui/components/button/svg/SettingsSvg.js +0 -22
- package/lib/commonjs/ui/components/button/svg/SettingsSvg.js.map +0 -1
- package/lib/commonjs/ui/components/button/svg/SvgUtils.js +0 -13
- package/lib/commonjs/ui/components/button/svg/SvgUtils.js.map +0 -1
- package/lib/commonjs/ui/components/button/svg/VolumeOffSvg.js +0 -22
- package/lib/commonjs/ui/components/button/svg/VolumeOffSvg.js.map +0 -1
- package/lib/commonjs/ui/components/button/svg/VolumeUpSvg.js +0 -22
- package/lib/commonjs/ui/components/button/svg/VolumeUpSvg.js.map +0 -1
- package/lib/commonjs/ui/components/button/svg/barrel.js +0 -226
- package/lib/commonjs/ui/components/button/svg/barrel.js.map +0 -1
- package/lib/commonjs/ui/components/button/svg/res/AirPlayButton.html +0 -6
- package/lib/commonjs/ui/components/button/svg/res/Airplay.svg +0 -1
- package/lib/commonjs/ui/components/button/svg/res/ChromecastButton.html +0 -25
- package/lib/commonjs/ui/components/button/svg/res/arrow_forward.svg +0 -1
- package/lib/commonjs/ui/components/button/svg/res/back.svg +0 -1
- package/lib/commonjs/ui/components/button/svg/res/backward.svg +0 -1
- package/lib/commonjs/ui/components/button/svg/res/chromecast-48px.svg +0 -1
- package/lib/commonjs/ui/components/button/svg/res/close.svg +0 -1
- package/lib/commonjs/ui/components/button/svg/res/error.svg +0 -1
- package/lib/commonjs/ui/components/button/svg/res/forward.svg +0 -1
- package/lib/commonjs/ui/components/button/svg/res/fullscreen-enter.svg +0 -1
- package/lib/commonjs/ui/components/button/svg/res/fullscreen-exit.svg +0 -1
- package/lib/commonjs/ui/components/button/svg/res/language.svg +0 -1
- package/lib/commonjs/ui/components/button/svg/res/list.svg +0 -1
- package/lib/commonjs/ui/components/button/svg/res/live.svg +0 -1
- package/lib/commonjs/ui/components/button/svg/res/pause.svg +0 -1
- package/lib/commonjs/ui/components/button/svg/res/pip_enter.svg +0 -1
- package/lib/commonjs/ui/components/button/svg/res/pip_exit.svg +0 -1
- package/lib/commonjs/ui/components/button/svg/res/play.svg +0 -1
- package/lib/commonjs/ui/components/button/svg/res/replay.svg +0 -1
- package/lib/commonjs/ui/components/button/svg/res/settings.svg +0 -1
- package/lib/commonjs/ui/components/button/svg/res/skip-next.svg +0 -1
- package/lib/commonjs/ui/components/button/svg/res/volume-high.svg +0 -1
- package/lib/commonjs/ui/components/button/svg/res/volume-low.svg +0 -1
- package/lib/commonjs/ui/components/button/svg/res/volume-off.svg +0 -1
- package/lib/commonjs/ui/components/controlbar/ControlBar.js +0 -61
- package/lib/commonjs/ui/components/controlbar/ControlBar.js.map +0 -1
- package/lib/commonjs/ui/components/controlbar/Spacer.js +0 -21
- package/lib/commonjs/ui/components/controlbar/Spacer.js.map +0 -1
- package/lib/commonjs/ui/components/controlbar/barrel.js +0 -28
- package/lib/commonjs/ui/components/controlbar/barrel.js.map +0 -1
- package/lib/commonjs/ui/components/menu/LanguageMenuButton.js +0 -175
- package/lib/commonjs/ui/components/menu/LanguageMenuButton.js.map +0 -1
- package/lib/commonjs/ui/components/menu/PlaybackRateSubMenu.js +0 -91
- package/lib/commonjs/ui/components/menu/PlaybackRateSubMenu.js.map +0 -1
- package/lib/commonjs/ui/components/menu/QualitySubMenu.js +0 -145
- package/lib/commonjs/ui/components/menu/QualitySubMenu.js.map +0 -1
- package/lib/commonjs/ui/components/menu/SettingsMenuButton.js +0 -36
- package/lib/commonjs/ui/components/menu/SettingsMenuButton.js.map +0 -1
- package/lib/commonjs/ui/components/menu/barrel.js +0 -61
- package/lib/commonjs/ui/components/menu/barrel.js.map +0 -1
- package/lib/commonjs/ui/components/menu/common/MenuButton.js +0 -34
- package/lib/commonjs/ui/components/menu/common/MenuButton.js.map +0 -1
- package/lib/commonjs/ui/components/menu/common/MenuRadioButton.js +0 -47
- package/lib/commonjs/ui/components/menu/common/MenuRadioButton.js.map +0 -1
- package/lib/commonjs/ui/components/menu/common/MenuTitle.js +0 -38
- package/lib/commonjs/ui/components/menu/common/MenuTitle.js.map +0 -1
- package/lib/commonjs/ui/components/menu/common/MenuView.js +0 -75
- package/lib/commonjs/ui/components/menu/common/MenuView.js.map +0 -1
- package/lib/commonjs/ui/components/menu/common/ScrollableMenu.js +0 -45
- package/lib/commonjs/ui/components/menu/common/ScrollableMenu.js.map +0 -1
- package/lib/commonjs/ui/components/menu/common/SubMenuWithButton.js +0 -65
- package/lib/commonjs/ui/components/menu/common/SubMenuWithButton.js.map +0 -1
- package/lib/commonjs/ui/components/menu/common/barrel.js +0 -72
- package/lib/commonjs/ui/components/menu/common/barrel.js.map +0 -1
- package/lib/commonjs/ui/components/message/CastMessage.js +0 -79
- package/lib/commonjs/ui/components/message/CastMessage.js.map +0 -1
- package/lib/commonjs/ui/components/message/ErrorDisplay.js +0 -53
- package/lib/commonjs/ui/components/message/ErrorDisplay.js.map +0 -1
- package/lib/commonjs/ui/components/message/barrel.js +0 -28
- package/lib/commonjs/ui/components/message/barrel.js.map +0 -1
- package/lib/commonjs/ui/components/seekbar/SeekBar.js +0 -194
- package/lib/commonjs/ui/components/seekbar/SeekBar.js.map +0 -1
- package/lib/commonjs/ui/components/seekbar/barrel.js +0 -28
- package/lib/commonjs/ui/components/seekbar/barrel.js.map +0 -1
- package/lib/commonjs/ui/components/seekbar/thumbnail/SingleThumbnailView.js +0 -45
- package/lib/commonjs/ui/components/seekbar/thumbnail/SingleThumbnailView.js.map +0 -1
- package/lib/commonjs/ui/components/seekbar/thumbnail/Thumbnail.js +0 -18
- package/lib/commonjs/ui/components/seekbar/thumbnail/Thumbnail.js.map +0 -1
- package/lib/commonjs/ui/components/seekbar/thumbnail/ThumbnailView.js +0 -256
- package/lib/commonjs/ui/components/seekbar/thumbnail/ThumbnailView.js.map +0 -1
- package/lib/commonjs/ui/components/seekbar/thumbnail/Urlpolyfill.js +0 -17
- package/lib/commonjs/ui/components/seekbar/thumbnail/Urlpolyfill.js.map +0 -1
- package/lib/commonjs/ui/components/seekbar/thumbnail/Urlpolyfill.web.js +0 -10
- package/lib/commonjs/ui/components/seekbar/thumbnail/Urlpolyfill.web.js.map +0 -1
- package/lib/commonjs/ui/components/seekbar/thumbnail/barrel.js +0 -28
- package/lib/commonjs/ui/components/seekbar/thumbnail/barrel.js.map +0 -1
- package/lib/commonjs/ui/components/timelabel/StaticTimeLabel.js +0 -55
- package/lib/commonjs/ui/components/timelabel/StaticTimeLabel.js.map +0 -1
- package/lib/commonjs/ui/components/timelabel/TimeLabel.js +0 -88
- package/lib/commonjs/ui/components/timelabel/TimeLabel.js.map +0 -1
- package/lib/commonjs/ui/components/timelabel/barrel.js +0 -28
- package/lib/commonjs/ui/components/timelabel/barrel.js.map +0 -1
- package/lib/commonjs/ui/components/uicontroller/UiContainer.js +0 -350
- package/lib/commonjs/ui/components/uicontroller/UiContainer.js.map +0 -1
- package/lib/commonjs/ui/components/uicontroller/UiControls.js +0 -6
- package/lib/commonjs/ui/components/uicontroller/UiControls.js.map +0 -1
- package/lib/commonjs/ui/components/uicontroller/barrel.js +0 -28
- package/lib/commonjs/ui/components/uicontroller/barrel.js.map +0 -1
- package/lib/commonjs/ui/components/util/PlayerContext.js +0 -19
- package/lib/commonjs/ui/components/util/PlayerContext.js.map +0 -1
- package/lib/commonjs/ui/components/util/TrackUtils.js +0 -69
- package/lib/commonjs/ui/components/util/TrackUtils.js.map +0 -1
- package/lib/commonjs/ui/components/util/barrel.js +0 -17
- package/lib/commonjs/ui/components/util/barrel.js.map +0 -1
- package/lib/commonjs/ui/utils/ArrayUtils.js +0 -19
- package/lib/commonjs/ui/utils/ArrayUtils.js.map +0 -1
- package/lib/commonjs/ui/utils/language/Language.js +0 -38
- package/lib/commonjs/ui/utils/language/Language.js.map +0 -1
- package/lib/commonjs/ui/utils/language/languages.json +0 -1658
- package/lib/module/ui/THEOplayerDefaultUi.js +0 -74
- package/lib/module/ui/THEOplayerDefaultUi.js.map +0 -1
- package/lib/module/ui/THEOplayerTheme.js +0 -41
- package/lib/module/ui/THEOplayerTheme.js.map +0 -1
- package/lib/module/ui/barrel.js +0 -4
- package/lib/module/ui/barrel.js.map +0 -1
- package/lib/module/ui/components/activityindicator/CenteredDelayedActivityIndicator.js +0 -90
- package/lib/module/ui/components/activityindicator/CenteredDelayedActivityIndicator.js.map +0 -1
- package/lib/module/ui/components/activityindicator/DelayedActivityIndicator.js +0 -26
- package/lib/module/ui/components/activityindicator/DelayedActivityIndicator.js.map +0 -1
- package/lib/module/ui/components/activityindicator/barrel.js +0 -3
- package/lib/module/ui/components/activityindicator/barrel.js.map +0 -1
- package/lib/module/ui/components/barrel.js +0 -10
- package/lib/module/ui/components/barrel.js.map +0 -1
- package/lib/module/ui/components/button/AirplayButton.js +0 -72
- package/lib/module/ui/components/button/AirplayButton.js.map +0 -1
- package/lib/module/ui/components/button/ChromecastButton.js +0 -56
- package/lib/module/ui/components/button/ChromecastButton.js.map +0 -1
- package/lib/module/ui/components/button/ChromecastButton.web.js +0 -72
- package/lib/module/ui/components/button/ChromecastButton.web.js.map +0 -1
- package/lib/module/ui/components/button/FullscreenButton.js +0 -63
- package/lib/module/ui/components/button/FullscreenButton.js.map +0 -1
- package/lib/module/ui/components/button/MuteButton.js +0 -57
- package/lib/module/ui/components/button/MuteButton.js.map +0 -1
- package/lib/module/ui/components/button/PipButton.js +0 -63
- package/lib/module/ui/components/button/PipButton.js.map +0 -1
- package/lib/module/ui/components/button/PlayButton.js +0 -104
- package/lib/module/ui/components/button/PlayButton.js.map +0 -1
- package/lib/module/ui/components/button/SkipButton.js +0 -113
- package/lib/module/ui/components/button/SkipButton.js.map +0 -1
- package/lib/module/ui/components/button/actionbutton/ActionButton.js +0 -72
- package/lib/module/ui/components/button/actionbutton/ActionButton.js.map +0 -1
- package/lib/module/ui/components/button/barrel.js +0 -10
- package/lib/module/ui/components/button/barrel.js.map +0 -1
- package/lib/module/ui/components/button/svg/AirplaySvg.js +0 -12
- package/lib/module/ui/components/button/svg/AirplaySvg.js.map +0 -1
- package/lib/module/ui/components/button/svg/ArrowForwardSvg.js +0 -12
- package/lib/module/ui/components/button/svg/ArrowForwardSvg.js.map +0 -1
- package/lib/module/ui/components/button/svg/BackSvg.js +0 -12
- package/lib/module/ui/components/button/svg/BackSvg.js.map +0 -1
- package/lib/module/ui/components/button/svg/BackwardSvg.js +0 -12
- package/lib/module/ui/components/button/svg/BackwardSvg.js.map +0 -1
- package/lib/module/ui/components/button/svg/ChromecastSvg.js +0 -12
- package/lib/module/ui/components/button/svg/ChromecastSvg.js.map +0 -1
- package/lib/module/ui/components/button/svg/ErrorSvg.js +0 -12
- package/lib/module/ui/components/button/svg/ErrorSvg.js.map +0 -1
- package/lib/module/ui/components/button/svg/ForwardSvg.js +0 -12
- package/lib/module/ui/components/button/svg/ForwardSvg.js.map +0 -1
- package/lib/module/ui/components/button/svg/FullscreenEnterSvg.js +0 -12
- package/lib/module/ui/components/button/svg/FullscreenEnterSvg.js.map +0 -1
- package/lib/module/ui/components/button/svg/FullscreenExitSvg.js +0 -12
- package/lib/module/ui/components/button/svg/FullscreenExitSvg.js.map +0 -1
- package/lib/module/ui/components/button/svg/LanguageSvg.js +0 -12
- package/lib/module/ui/components/button/svg/LanguageSvg.js.map +0 -1
- package/lib/module/ui/components/button/svg/ListSvg.js +0 -12
- package/lib/module/ui/components/button/svg/ListSvg.js.map +0 -1
- package/lib/module/ui/components/button/svg/PauseSvg.js +0 -12
- package/lib/module/ui/components/button/svg/PauseSvg.js.map +0 -1
- package/lib/module/ui/components/button/svg/PipEnterSvg.js +0 -12
- package/lib/module/ui/components/button/svg/PipEnterSvg.js.map +0 -1
- package/lib/module/ui/components/button/svg/PipExitSvg.js +0 -12
- package/lib/module/ui/components/button/svg/PipExitSvg.js.map +0 -1
- package/lib/module/ui/components/button/svg/PlaySvg.js +0 -12
- package/lib/module/ui/components/button/svg/PlaySvg.js.map +0 -1
- package/lib/module/ui/components/button/svg/ReplaySvg.js +0 -12
- package/lib/module/ui/components/button/svg/ReplaySvg.js.map +0 -1
- package/lib/module/ui/components/button/svg/SettingsSvg.js +0 -12
- package/lib/module/ui/components/button/svg/SettingsSvg.js.map +0 -1
- package/lib/module/ui/components/button/svg/SvgUtils.js +0 -5
- package/lib/module/ui/components/button/svg/SvgUtils.js.map +0 -1
- package/lib/module/ui/components/button/svg/VolumeOffSvg.js +0 -12
- package/lib/module/ui/components/button/svg/VolumeOffSvg.js.map +0 -1
- package/lib/module/ui/components/button/svg/VolumeUpSvg.js +0 -12
- package/lib/module/ui/components/button/svg/VolumeUpSvg.js.map +0 -1
- package/lib/module/ui/components/button/svg/barrel.js +0 -21
- package/lib/module/ui/components/button/svg/barrel.js.map +0 -1
- package/lib/module/ui/components/button/svg/res/AirPlayButton.html +0 -6
- package/lib/module/ui/components/button/svg/res/Airplay.svg +0 -1
- package/lib/module/ui/components/button/svg/res/ChromecastButton.html +0 -25
- package/lib/module/ui/components/button/svg/res/arrow_forward.svg +0 -1
- package/lib/module/ui/components/button/svg/res/back.svg +0 -1
- package/lib/module/ui/components/button/svg/res/backward.svg +0 -1
- package/lib/module/ui/components/button/svg/res/chromecast-48px.svg +0 -1
- package/lib/module/ui/components/button/svg/res/close.svg +0 -1
- package/lib/module/ui/components/button/svg/res/error.svg +0 -1
- package/lib/module/ui/components/button/svg/res/forward.svg +0 -1
- package/lib/module/ui/components/button/svg/res/fullscreen-enter.svg +0 -1
- package/lib/module/ui/components/button/svg/res/fullscreen-exit.svg +0 -1
- package/lib/module/ui/components/button/svg/res/language.svg +0 -1
- package/lib/module/ui/components/button/svg/res/list.svg +0 -1
- package/lib/module/ui/components/button/svg/res/live.svg +0 -1
- package/lib/module/ui/components/button/svg/res/pause.svg +0 -1
- package/lib/module/ui/components/button/svg/res/pip_enter.svg +0 -1
- package/lib/module/ui/components/button/svg/res/pip_exit.svg +0 -1
- package/lib/module/ui/components/button/svg/res/play.svg +0 -1
- package/lib/module/ui/components/button/svg/res/replay.svg +0 -1
- package/lib/module/ui/components/button/svg/res/settings.svg +0 -1
- package/lib/module/ui/components/button/svg/res/skip-next.svg +0 -1
- package/lib/module/ui/components/button/svg/res/volume-high.svg +0 -1
- package/lib/module/ui/components/button/svg/res/volume-low.svg +0 -1
- package/lib/module/ui/components/button/svg/res/volume-off.svg +0 -1
- package/lib/module/ui/components/controlbar/ControlBar.js +0 -52
- package/lib/module/ui/components/controlbar/ControlBar.js.map +0 -1
- package/lib/module/ui/components/controlbar/Spacer.js +0 -14
- package/lib/module/ui/components/controlbar/Spacer.js.map +0 -1
- package/lib/module/ui/components/controlbar/barrel.js +0 -3
- package/lib/module/ui/components/controlbar/barrel.js.map +0 -1
- package/lib/module/ui/components/menu/LanguageMenuButton.js +0 -165
- package/lib/module/ui/components/menu/LanguageMenuButton.js.map +0 -1
- package/lib/module/ui/components/menu/PlaybackRateSubMenu.js +0 -80
- package/lib/module/ui/components/menu/PlaybackRateSubMenu.js.map +0 -1
- package/lib/module/ui/components/menu/QualitySubMenu.js +0 -135
- package/lib/module/ui/components/menu/QualitySubMenu.js.map +0 -1
- package/lib/module/ui/components/menu/SettingsMenuButton.js +0 -28
- package/lib/module/ui/components/menu/SettingsMenuButton.js.map +0 -1
- package/lib/module/ui/components/menu/barrel.js +0 -6
- package/lib/module/ui/components/menu/barrel.js.map +0 -1
- package/lib/module/ui/components/menu/common/MenuButton.js +0 -26
- package/lib/module/ui/components/menu/common/MenuButton.js.map +0 -1
- package/lib/module/ui/components/menu/common/MenuRadioButton.js +0 -38
- package/lib/module/ui/components/menu/common/MenuRadioButton.js.map +0 -1
- package/lib/module/ui/components/menu/common/MenuTitle.js +0 -29
- package/lib/module/ui/components/menu/common/MenuTitle.js.map +0 -1
- package/lib/module/ui/components/menu/common/MenuView.js +0 -65
- package/lib/module/ui/components/menu/common/MenuView.js.map +0 -1
- package/lib/module/ui/components/menu/common/ScrollableMenu.js +0 -36
- package/lib/module/ui/components/menu/common/ScrollableMenu.js.map +0 -1
- package/lib/module/ui/components/menu/common/SubMenuWithButton.js +0 -56
- package/lib/module/ui/components/menu/common/SubMenuWithButton.js.map +0 -1
- package/lib/module/ui/components/menu/common/barrel.js +0 -7
- package/lib/module/ui/components/menu/common/barrel.js.map +0 -1
- package/lib/module/ui/components/message/CastMessage.js +0 -70
- package/lib/module/ui/components/message/CastMessage.js.map +0 -1
- package/lib/module/ui/components/message/ErrorDisplay.js +0 -46
- package/lib/module/ui/components/message/ErrorDisplay.js.map +0 -1
- package/lib/module/ui/components/message/barrel.js +0 -3
- package/lib/module/ui/components/message/barrel.js.map +0 -1
- package/lib/module/ui/components/seekbar/SeekBar.js +0 -184
- package/lib/module/ui/components/seekbar/SeekBar.js.map +0 -1
- package/lib/module/ui/components/seekbar/barrel.js +0 -3
- package/lib/module/ui/components/seekbar/barrel.js.map +0 -1
- package/lib/module/ui/components/seekbar/thumbnail/SingleThumbnailView.js +0 -37
- package/lib/module/ui/components/seekbar/thumbnail/SingleThumbnailView.js.map +0 -1
- package/lib/module/ui/components/seekbar/thumbnail/Thumbnail.js +0 -11
- package/lib/module/ui/components/seekbar/thumbnail/Thumbnail.js.map +0 -1
- package/lib/module/ui/components/seekbar/thumbnail/ThumbnailView.js +0 -246
- package/lib/module/ui/components/seekbar/thumbnail/ThumbnailView.js.map +0 -1
- package/lib/module/ui/components/seekbar/thumbnail/Urlpolyfill.js +0 -2
- package/lib/module/ui/components/seekbar/thumbnail/Urlpolyfill.js.map +0 -1
- package/lib/module/ui/components/seekbar/thumbnail/Urlpolyfill.web.js +0 -4
- package/lib/module/ui/components/seekbar/thumbnail/Urlpolyfill.web.js.map +0 -1
- package/lib/module/ui/components/seekbar/thumbnail/barrel.js +0 -3
- package/lib/module/ui/components/seekbar/thumbnail/barrel.js.map +0 -1
- package/lib/module/ui/components/timelabel/StaticTimeLabel.js +0 -48
- package/lib/module/ui/components/timelabel/StaticTimeLabel.js.map +0 -1
- package/lib/module/ui/components/timelabel/TimeLabel.js +0 -78
- package/lib/module/ui/components/timelabel/TimeLabel.js.map +0 -1
- package/lib/module/ui/components/timelabel/barrel.js +0 -3
- package/lib/module/ui/components/timelabel/barrel.js.map +0 -1
- package/lib/module/ui/components/uicontroller/UiContainer.js +0 -336
- package/lib/module/ui/components/uicontroller/UiContainer.js.map +0 -1
- package/lib/module/ui/components/uicontroller/UiControls.js +0 -2
- package/lib/module/ui/components/uicontroller/UiControls.js.map +0 -1
- package/lib/module/ui/components/uicontroller/barrel.js +0 -3
- package/lib/module/ui/components/uicontroller/barrel.js.map +0 -1
- package/lib/module/ui/components/util/PlayerContext.js +0 -11
- package/lib/module/ui/components/util/PlayerContext.js.map +0 -1
- package/lib/module/ui/components/util/TrackUtils.js +0 -60
- package/lib/module/ui/components/util/TrackUtils.js.map +0 -1
- package/lib/module/ui/components/util/barrel.js +0 -2
- package/lib/module/ui/components/util/barrel.js.map +0 -1
- package/lib/module/ui/utils/ArrayUtils.js +0 -12
- package/lib/module/ui/utils/ArrayUtils.js.map +0 -1
- package/lib/module/ui/utils/language/Language.js +0 -27
- package/lib/module/ui/utils/language/Language.js.map +0 -1
- package/lib/module/ui/utils/language/languages.json +0 -1658
- package/lib/typescript/ui/THEOplayerDefaultUi.d.ts +0 -35
- package/lib/typescript/ui/THEOplayerTheme.d.ts +0 -84
- package/lib/typescript/ui/barrel.d.ts +0 -3
- package/lib/typescript/ui/components/activityindicator/CenteredDelayedActivityIndicator.d.ts +0 -25
- package/lib/typescript/ui/components/activityindicator/DelayedActivityIndicator.d.ts +0 -9
- package/lib/typescript/ui/components/activityindicator/barrel.d.ts +0 -2
- package/lib/typescript/ui/components/barrel.d.ts +0 -9
- package/lib/typescript/ui/components/button/AirplayButton.d.ts +0 -18
- package/lib/typescript/ui/components/button/ChromecastButton.d.ts +0 -19
- package/lib/typescript/ui/components/button/ChromecastButton.web.d.ts +0 -19
- package/lib/typescript/ui/components/button/FullscreenButton.d.ts +0 -17
- package/lib/typescript/ui/components/button/MuteButton.d.ts +0 -16
- package/lib/typescript/ui/components/button/PipButton.d.ts +0 -17
- package/lib/typescript/ui/components/button/PlayButton.d.ts +0 -28
- package/lib/typescript/ui/components/button/SkipButton.d.ts +0 -33
- package/lib/typescript/ui/components/button/actionbutton/ActionButton.d.ts +0 -41
- package/lib/typescript/ui/components/button/barrel.d.ts +0 -9
- package/lib/typescript/ui/components/button/svg/AirplaySvg.d.ts +0 -3
- package/lib/typescript/ui/components/button/svg/ArrowForwardSvg.d.ts +0 -3
- package/lib/typescript/ui/components/button/svg/BackSvg.d.ts +0 -3
- package/lib/typescript/ui/components/button/svg/BackwardSvg.d.ts +0 -3
- package/lib/typescript/ui/components/button/svg/ChromecastSvg.d.ts +0 -3
- package/lib/typescript/ui/components/button/svg/ErrorSvg.d.ts +0 -3
- package/lib/typescript/ui/components/button/svg/ForwardSvg.d.ts +0 -3
- package/lib/typescript/ui/components/button/svg/FullscreenEnterSvg.d.ts +0 -3
- package/lib/typescript/ui/components/button/svg/FullscreenExitSvg.d.ts +0 -3
- package/lib/typescript/ui/components/button/svg/LanguageSvg.d.ts +0 -3
- package/lib/typescript/ui/components/button/svg/ListSvg.d.ts +0 -3
- package/lib/typescript/ui/components/button/svg/PauseSvg.d.ts +0 -3
- package/lib/typescript/ui/components/button/svg/PipEnterSvg.d.ts +0 -3
- package/lib/typescript/ui/components/button/svg/PipExitSvg.d.ts +0 -3
- package/lib/typescript/ui/components/button/svg/PlaySvg.d.ts +0 -3
- package/lib/typescript/ui/components/button/svg/ReplaySvg.d.ts +0 -3
- package/lib/typescript/ui/components/button/svg/SettingsSvg.d.ts +0 -3
- package/lib/typescript/ui/components/button/svg/SvgUtils.d.ts +0 -3
- package/lib/typescript/ui/components/button/svg/VolumeOffSvg.d.ts +0 -3
- package/lib/typescript/ui/components/button/svg/VolumeUpSvg.d.ts +0 -3
- package/lib/typescript/ui/components/button/svg/barrel.d.ts +0 -20
- package/lib/typescript/ui/components/controlbar/ControlBar.d.ts +0 -39
- package/lib/typescript/ui/components/controlbar/Spacer.d.ts +0 -5
- package/lib/typescript/ui/components/controlbar/barrel.d.ts +0 -2
- package/lib/typescript/ui/components/menu/LanguageMenuButton.d.ts +0 -40
- package/lib/typescript/ui/components/menu/PlaybackRateSubMenu.d.ts +0 -36
- package/lib/typescript/ui/components/menu/QualitySubMenu.d.ts +0 -29
- package/lib/typescript/ui/components/menu/SettingsMenuButton.d.ts +0 -12
- package/lib/typescript/ui/components/menu/barrel.d.ts +0 -5
- package/lib/typescript/ui/components/menu/common/MenuButton.d.ts +0 -25
- package/lib/typescript/ui/components/menu/common/MenuRadioButton.d.ts +0 -33
- package/lib/typescript/ui/components/menu/common/MenuTitle.d.ts +0 -20
- package/lib/typescript/ui/components/menu/common/MenuView.d.ts +0 -21
- package/lib/typescript/ui/components/menu/common/ScrollableMenu.d.ts +0 -23
- package/lib/typescript/ui/components/menu/common/SubMenuWithButton.d.ts +0 -29
- package/lib/typescript/ui/components/menu/common/barrel.d.ts +0 -6
- package/lib/typescript/ui/components/message/CastMessage.d.ts +0 -16
- package/lib/typescript/ui/components/message/ErrorDisplay.d.ts +0 -12
- package/lib/typescript/ui/components/message/barrel.d.ts +0 -2
- package/lib/typescript/ui/components/seekbar/SeekBar.d.ts +0 -41
- package/lib/typescript/ui/components/seekbar/barrel.d.ts +0 -2
- package/lib/typescript/ui/components/seekbar/thumbnail/SingleThumbnailView.d.ts +0 -8
- package/lib/typescript/ui/components/seekbar/thumbnail/Thumbnail.d.ts +0 -56
- package/lib/typescript/ui/components/seekbar/thumbnail/ThumbnailView.d.ts +0 -60
- package/lib/typescript/ui/components/seekbar/thumbnail/Urlpolyfill.d.ts +0 -1
- package/lib/typescript/ui/components/seekbar/thumbnail/Urlpolyfill.web.d.ts +0 -8
- package/lib/typescript/ui/components/seekbar/thumbnail/barrel.d.ts +0 -2
- package/lib/typescript/ui/components/timelabel/StaticTimeLabel.d.ts +0 -24
- package/lib/typescript/ui/components/timelabel/TimeLabel.d.ts +0 -32
- package/lib/typescript/ui/components/timelabel/barrel.d.ts +0 -2
- package/lib/typescript/ui/components/uicontroller/UiContainer.d.ts +0 -115
- package/lib/typescript/ui/components/uicontroller/UiControls.d.ts +0 -14
- package/lib/typescript/ui/components/uicontroller/barrel.d.ts +0 -2
- package/lib/typescript/ui/components/util/PlayerContext.d.ts +0 -22
- package/lib/typescript/ui/components/util/TrackUtils.d.ts +0 -10
- package/lib/typescript/ui/components/util/barrel.d.ts +0 -1
- package/lib/typescript/ui/utils/ArrayUtils.d.ts +0 -2
- package/lib/typescript/ui/utils/language/Language.d.ts +0 -19
- package/src/ui/THEOplayerDefaultUi.tsx +0 -108
- package/src/ui/THEOplayerTheme.ts +0 -112
- package/src/ui/barrel.ts +0 -3
- package/src/ui/components/activityindicator/CenteredDelayedActivityIndicator.tsx +0 -96
- package/src/ui/components/activityindicator/DelayedActivityIndicator.tsx +0 -32
- package/src/ui/components/activityindicator/barrel.ts +0 -2
- package/src/ui/components/barrel.ts +0 -9
- package/src/ui/components/button/AirplayButton.tsx +0 -64
- package/src/ui/components/button/ChromecastButton.tsx +0 -60
- package/src/ui/components/button/ChromecastButton.web.tsx +0 -66
- package/src/ui/components/button/FullscreenButton.tsx +0 -60
- package/src/ui/components/button/MuteButton.tsx +0 -52
- package/src/ui/components/button/PipButton.tsx +0 -61
- package/src/ui/components/button/PlayButton.tsx +0 -107
- package/src/ui/components/button/SkipButton.tsx +0 -112
- package/src/ui/components/button/actionbutton/ActionButton.tsx +0 -105
- package/src/ui/components/button/barrel.ts +0 -9
- package/src/ui/components/button/svg/AirplaySvg.tsx +0 -18
- package/src/ui/components/button/svg/ArrowForwardSvg.tsx +0 -18
- package/src/ui/components/button/svg/BackSvg.tsx +0 -18
- package/src/ui/components/button/svg/BackwardSvg.tsx +0 -18
- package/src/ui/components/button/svg/ChromecastSvg.tsx +0 -18
- package/src/ui/components/button/svg/ErrorSvg.tsx +0 -18
- package/src/ui/components/button/svg/ForwardSvg.tsx +0 -18
- package/src/ui/components/button/svg/FullscreenEnterSvg.tsx +0 -18
- package/src/ui/components/button/svg/FullscreenExitSvg.tsx +0 -18
- package/src/ui/components/button/svg/LanguageSvg.tsx +0 -18
- package/src/ui/components/button/svg/ListSvg.tsx +0 -18
- package/src/ui/components/button/svg/PauseSvg.tsx +0 -18
- package/src/ui/components/button/svg/PipEnterSvg.tsx +0 -18
- package/src/ui/components/button/svg/PipExitSvg.tsx +0 -18
- package/src/ui/components/button/svg/PlaySvg.tsx +0 -18
- package/src/ui/components/button/svg/ReplaySvg.tsx +0 -18
- package/src/ui/components/button/svg/SettingsSvg.tsx +0 -18
- package/src/ui/components/button/svg/SvgUtils.ts +0 -4
- package/src/ui/components/button/svg/VolumeOffSvg.tsx +0 -18
- package/src/ui/components/button/svg/VolumeUpSvg.tsx +0 -18
- package/src/ui/components/button/svg/barrel.ts +0 -20
- package/src/ui/components/button/svg/res/AirPlayButton.html +0 -6
- package/src/ui/components/button/svg/res/Airplay.svg +0 -1
- package/src/ui/components/button/svg/res/ChromecastButton.html +0 -25
- package/src/ui/components/button/svg/res/arrow_forward.svg +0 -1
- package/src/ui/components/button/svg/res/back.svg +0 -1
- package/src/ui/components/button/svg/res/backward.svg +0 -1
- package/src/ui/components/button/svg/res/chromecast-48px.svg +0 -1
- package/src/ui/components/button/svg/res/close.svg +0 -1
- package/src/ui/components/button/svg/res/error.svg +0 -1
- package/src/ui/components/button/svg/res/forward.svg +0 -1
- package/src/ui/components/button/svg/res/fullscreen-enter.svg +0 -1
- package/src/ui/components/button/svg/res/fullscreen-exit.svg +0 -1
- package/src/ui/components/button/svg/res/language.svg +0 -1
- package/src/ui/components/button/svg/res/list.svg +0 -1
- package/src/ui/components/button/svg/res/live.svg +0 -1
- package/src/ui/components/button/svg/res/pause.svg +0 -1
- package/src/ui/components/button/svg/res/pip_enter.svg +0 -1
- package/src/ui/components/button/svg/res/pip_exit.svg +0 -1
- package/src/ui/components/button/svg/res/play.svg +0 -1
- package/src/ui/components/button/svg/res/replay.svg +0 -1
- package/src/ui/components/button/svg/res/settings.svg +0 -1
- package/src/ui/components/button/svg/res/skip-next.svg +0 -1
- package/src/ui/components/button/svg/res/volume-high.svg +0 -1
- package/src/ui/components/button/svg/res/volume-low.svg +0 -1
- package/src/ui/components/button/svg/res/volume-off.svg +0 -1
- package/src/ui/components/controlbar/ControlBar.tsx +0 -69
- package/src/ui/components/controlbar/Spacer.tsx +0 -9
- package/src/ui/components/controlbar/barrel.ts +0 -2
- package/src/ui/components/menu/LanguageMenuButton.tsx +0 -192
- package/src/ui/components/menu/PlaybackRateSubMenu.tsx +0 -93
- package/src/ui/components/menu/QualitySubMenu.tsx +0 -148
- package/src/ui/components/menu/SettingsMenuButton.tsx +0 -25
- package/src/ui/components/menu/barrel.ts +0 -5
- package/src/ui/components/menu/common/MenuButton.tsx +0 -49
- package/src/ui/components/menu/common/MenuRadioButton.tsx +0 -65
- package/src/ui/components/menu/common/MenuTitle.tsx +0 -37
- package/src/ui/components/menu/common/MenuView.tsx +0 -62
- package/src/ui/components/menu/common/ScrollableMenu.tsx +0 -43
- package/src/ui/components/menu/common/SubMenuWithButton.tsx +0 -58
- package/src/ui/components/menu/common/barrel.ts +0 -6
- package/src/ui/components/message/CastMessage.tsx +0 -74
- package/src/ui/components/message/ErrorDisplay.tsx +0 -43
- package/src/ui/components/message/barrel.ts +0 -2
- package/src/ui/components/seekbar/SeekBar.tsx +0 -178
- package/src/ui/components/seekbar/barrel.ts +0 -2
- package/src/ui/components/seekbar/thumbnail/SingleThumbnailView.tsx +0 -38
- package/src/ui/components/seekbar/thumbnail/Thumbnail.ts +0 -72
- package/src/ui/components/seekbar/thumbnail/ThumbnailView.tsx +0 -266
- package/src/ui/components/seekbar/thumbnail/Urlpolyfill.ts +0 -1
- package/src/ui/components/seekbar/thumbnail/Urlpolyfill.web.ts +0 -3
- package/src/ui/components/seekbar/thumbnail/barrel.ts +0 -2
- package/src/ui/components/timelabel/StaticTimeLabel.tsx +0 -63
- package/src/ui/components/timelabel/TimeLabel.tsx +0 -79
- package/src/ui/components/timelabel/barrel.ts +0 -2
- package/src/ui/components/uicontroller/UiContainer.tsx +0 -355
- package/src/ui/components/uicontroller/UiControls.ts +0 -31
- package/src/ui/components/uicontroller/barrel.ts +0 -2
- package/src/ui/components/util/PlayerContext.ts +0 -29
- package/src/ui/components/util/TrackUtils.ts +0 -62
- package/src/ui/components/util/barrel.ts +0 -1
- package/src/ui/utils/ArrayUtils.ts +0 -12
- package/src/ui/utils/language/Language.ts +0 -38
- package/src/ui/utils/language/languages.json +0 -1658
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.MenuButton = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _ActionButton = require("../../button/actionbutton/ActionButton");
|
|
9
|
-
var _PlayerContext = require("../../util/PlayerContext");
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
/**
|
|
12
|
-
* A menu button that opens a fullscreen menu for in the `react-native-theoplayer` UI.
|
|
13
|
-
*/
|
|
14
|
-
const MenuButton = props => {
|
|
15
|
-
const {
|
|
16
|
-
icon,
|
|
17
|
-
svg,
|
|
18
|
-
style,
|
|
19
|
-
menuConstructor
|
|
20
|
-
} = props;
|
|
21
|
-
return /*#__PURE__*/_react.default.createElement(_PlayerContext.PlayerContext.Consumer, null, context => /*#__PURE__*/_react.default.createElement(_ActionButton.ActionButton, {
|
|
22
|
-
svg: svg,
|
|
23
|
-
icon: icon,
|
|
24
|
-
onPress: () => {
|
|
25
|
-
if (menuConstructor) {
|
|
26
|
-
context.ui.openMenu_(menuConstructor);
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
style: style,
|
|
30
|
-
touchable: true
|
|
31
|
-
}));
|
|
32
|
-
};
|
|
33
|
-
exports.MenuButton = MenuButton;
|
|
34
|
-
//# sourceMappingURL=MenuButton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_ActionButton","_PlayerContext","obj","__esModule","default","MenuButton","props","icon","svg","style","menuConstructor","createElement","PlayerContext","Consumer","context","ActionButton","onPress","ui","openMenu_","touchable","exports"],"sources":["MenuButton.tsx"],"sourcesContent":["import type { ImageSourcePropType, StyleProp, ViewStyle } from 'react-native';\nimport React, { ReactNode } from 'react';\nimport { ActionButton } from '../../button/actionbutton/ActionButton';\nimport { PlayerContext, UiContext } from '../../util/PlayerContext';\nimport type { MenuConstructor } from '../../uicontroller/UiControls';\n\nexport interface MenuButtonProps {\n /**\n * The image that will be used in the button.\n */\n icon?: ImageSourcePropType;\n /**\n * The SVG that will be used in the button. Takes priority over images.\n */\n svg?: ReactNode;\n /**\n * The style overrides for the menu button.\n */\n style?: StyleProp<ViewStyle>;\n /**\n * The menu that will be constructed when the button is pressed.\n */\n menuConstructor?: MenuConstructor;\n}\n\n/**\n * A menu button that opens a fullscreen menu for in the `react-native-theoplayer` UI.\n */\nexport const MenuButton = (props: MenuButtonProps) => {\n const { icon, svg, style, menuConstructor } = props;\n\n return (\n <PlayerContext.Consumer>\n {(context: UiContext) => (\n <ActionButton\n svg={svg}\n icon={icon}\n onPress={() => {\n if (menuConstructor) {\n context.ui.openMenu_(menuConstructor);\n }\n }}\n style={style}\n touchable={true}\n />\n )}\n </PlayerContext.Consumer>\n );\n};\n"],"mappings":";;;;;;AACA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;AAAoE,SAAAD,uBAAAI,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAsBpE;AACA;AACA;AACO,MAAMG,UAAU,GAAIC,KAAsB,IAAK;EACpD,MAAM;IAAEC,IAAI;IAAEC,GAAG;IAAEC,KAAK;IAAEC;EAAgB,CAAC,GAAGJ,KAAK;EAEnD,oBACET,MAAA,CAAAO,OAAA,CAAAO,aAAA,CAACV,cAAA,CAAAW,aAAa,CAACC,QAAQ,QACnBC,OAAkB,iBAClBjB,MAAA,CAAAO,OAAA,CAAAO,aAAA,CAACX,aAAA,CAAAe,YAAY;IACXP,GAAG,EAAEA,GAAI;IACTD,IAAI,EAAEA,IAAK;IACXS,OAAO,EAAEA,CAAA,KAAM;MACb,IAAIN,eAAe,EAAE;QACnBI,OAAO,CAACG,EAAE,CAACC,SAAS,CAACR,eAAe,CAAC;MACvC;IACF,CAAE;IACFD,KAAK,EAAEA,KAAM;IACbU,SAAS,EAAE;EAAK,EAEnB,CACsB;AAE7B,CAAC;AAACC,OAAA,CAAAf,UAAA,GAAAA,UAAA"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.MenuRadioButton = exports.DEFAULT_MENU_BUTTON_STYLE = void 0;
|
|
7
|
-
var _reactNative = require("react-native");
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _PlayerContext = require("../../util/PlayerContext");
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
/**
|
|
12
|
-
* The default style for the menu button.
|
|
13
|
-
*/
|
|
14
|
-
const DEFAULT_MENU_BUTTON_STYLE = {
|
|
15
|
-
fontSize: 16,
|
|
16
|
-
lineHeight: 24,
|
|
17
|
-
padding: 10,
|
|
18
|
-
textAlign: 'center'
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
/**
|
|
22
|
-
* The default radio button that can be used in menus for the `react-native-theoplayer` UI.
|
|
23
|
-
*/
|
|
24
|
-
exports.DEFAULT_MENU_BUTTON_STYLE = DEFAULT_MENU_BUTTON_STYLE;
|
|
25
|
-
const MenuRadioButton = props => {
|
|
26
|
-
const {
|
|
27
|
-
uid,
|
|
28
|
-
onSelect,
|
|
29
|
-
label,
|
|
30
|
-
selected,
|
|
31
|
-
style
|
|
32
|
-
} = props;
|
|
33
|
-
return /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
34
|
-
onPress: () => {
|
|
35
|
-
onSelect(uid);
|
|
36
|
-
}
|
|
37
|
-
}, /*#__PURE__*/_react.default.createElement(_PlayerContext.PlayerContext.Consumer, null, context => /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
38
|
-
style: [DEFAULT_MENU_BUTTON_STYLE, selected ? {
|
|
39
|
-
color: context.style.colors.textSelected,
|
|
40
|
-
backgroundColor: context.style.colors.textSelectedBackground
|
|
41
|
-
} : {
|
|
42
|
-
color: context.style.colors.text
|
|
43
|
-
}, style]
|
|
44
|
-
}, label)));
|
|
45
|
-
};
|
|
46
|
-
exports.MenuRadioButton = MenuRadioButton;
|
|
47
|
-
//# sourceMappingURL=MenuRadioButton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_react","_interopRequireDefault","_PlayerContext","obj","__esModule","default","DEFAULT_MENU_BUTTON_STYLE","fontSize","lineHeight","padding","textAlign","exports","MenuRadioButton","props","uid","onSelect","label","selected","style","createElement","TouchableOpacity","onPress","PlayerContext","Consumer","context","Text","color","colors","textSelected","backgroundColor","textSelectedBackground","text"],"sources":["MenuRadioButton.tsx"],"sourcesContent":["import { StyleProp, Text, TextStyle, TouchableOpacity } from 'react-native';\nimport React from 'react';\nimport { PlayerContext, UiContext } from '../../util/PlayerContext';\n\nexport interface MenuRadioButtonProps {\n /**\n * The label for the button.\n */\n label: string;\n /**\n * The uid used in the callback when the button is pressed.\n */\n uid: number | undefined;\n /**\n * Whether the radio button is selected.\n */\n selected?: boolean;\n /**\n * The callback that is called when the button is pressed.\n * @param id The uid prop.\n */\n onSelect: (id: number | undefined) => void;\n /**\n * The style overrides for the radio button.\n */\n style?: StyleProp<TextStyle>;\n}\n\n/**\n * The default style for the menu button.\n */\nexport const DEFAULT_MENU_BUTTON_STYLE: TextStyle = {\n fontSize: 16,\n lineHeight: 24,\n padding: 10,\n textAlign: 'center',\n};\n\n/**\n * The default radio button that can be used in menus for the `react-native-theoplayer` UI.\n */\nexport const MenuRadioButton = (props: MenuRadioButtonProps) => {\n const { uid, onSelect, label, selected, style } = props;\n return (\n <TouchableOpacity\n onPress={() => {\n onSelect(uid);\n }}>\n <PlayerContext.Consumer>\n {(context: UiContext) => (\n <Text\n style={[\n DEFAULT_MENU_BUTTON_STYLE,\n selected\n ? { color: context.style.colors.textSelected, backgroundColor: context.style.colors.textSelectedBackground }\n : { color: context.style.colors.text },\n style,\n ]}>\n {label}\n </Text>\n )}\n </PlayerContext.Consumer>\n </TouchableOpacity>\n );\n};\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,cAAA,GAAAH,OAAA;AAAoE,SAAAE,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AA0BpE;AACA;AACA;AACO,MAAMG,yBAAoC,GAAG;EAClDC,QAAQ,EAAE,EAAE;EACZC,UAAU,EAAE,EAAE;EACdC,OAAO,EAAE,EAAE;EACXC,SAAS,EAAE;AACb,CAAC;;AAED;AACA;AACA;AAFAC,OAAA,CAAAL,yBAAA,GAAAA,yBAAA;AAGO,MAAMM,eAAe,GAAIC,KAA2B,IAAK;EAC9D,MAAM;IAAEC,GAAG;IAAEC,QAAQ;IAAEC,KAAK;IAAEC,QAAQ;IAAEC;EAAM,CAAC,GAAGL,KAAK;EACvD,oBACEb,MAAA,CAAAK,OAAA,CAAAc,aAAA,CAACrB,YAAA,CAAAsB,gBAAgB;IACfC,OAAO,EAAEA,CAAA,KAAM;MACbN,QAAQ,CAACD,GAAG,CAAC;IACf;EAAE,gBACFd,MAAA,CAAAK,OAAA,CAAAc,aAAA,CAACjB,cAAA,CAAAoB,aAAa,CAACC,QAAQ,QACnBC,OAAkB,iBAClBxB,MAAA,CAAAK,OAAA,CAAAc,aAAA,CAACrB,YAAA,CAAA2B,IAAI;IACHP,KAAK,EAAE,CACLZ,yBAAyB,EACzBW,QAAQ,GACJ;MAAES,KAAK,EAAEF,OAAO,CAACN,KAAK,CAACS,MAAM,CAACC,YAAY;MAAEC,eAAe,EAAEL,OAAO,CAACN,KAAK,CAACS,MAAM,CAACG;IAAuB,CAAC,GAC1G;MAAEJ,KAAK,EAAEF,OAAO,CAACN,KAAK,CAACS,MAAM,CAACI;IAAK,CAAC,EACxCb,KAAK;EACL,GACDF,KAAK,CAET,CACsB,CACR;AAEvB,CAAC;AAACL,OAAA,CAAAC,eAAA,GAAAA,eAAA"}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.MenuTitle = exports.DEFAULT_MENU_TITLE_STYLE = void 0;
|
|
7
|
-
var _reactNative = require("react-native");
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _PlayerContext = require("../../util/PlayerContext");
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
/**
|
|
12
|
-
* The default style for the menu title.
|
|
13
|
-
*/
|
|
14
|
-
const DEFAULT_MENU_TITLE_STYLE = {
|
|
15
|
-
fontSize: 20,
|
|
16
|
-
lineHeight: 24,
|
|
17
|
-
padding: 10,
|
|
18
|
-
textAlign: 'center',
|
|
19
|
-
fontWeight: 'bold'
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
* The title placed at the top of the fullscreen menu.
|
|
24
|
-
*/
|
|
25
|
-
exports.DEFAULT_MENU_TITLE_STYLE = DEFAULT_MENU_TITLE_STYLE;
|
|
26
|
-
const MenuTitle = props => {
|
|
27
|
-
const {
|
|
28
|
-
label,
|
|
29
|
-
style
|
|
30
|
-
} = props;
|
|
31
|
-
return /*#__PURE__*/_react.default.createElement(_PlayerContext.PlayerContext.Consumer, null, context => /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
32
|
-
style: [DEFAULT_MENU_TITLE_STYLE, {
|
|
33
|
-
color: context.style.colors.text
|
|
34
|
-
}, style]
|
|
35
|
-
}, label));
|
|
36
|
-
};
|
|
37
|
-
exports.MenuTitle = MenuTitle;
|
|
38
|
-
//# sourceMappingURL=MenuTitle.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_reactNative","require","_react","_interopRequireDefault","_PlayerContext","obj","__esModule","default","DEFAULT_MENU_TITLE_STYLE","fontSize","lineHeight","padding","textAlign","fontWeight","exports","MenuTitle","props","label","style","createElement","PlayerContext","Consumer","context","Text","color","colors","text"],"sources":["MenuTitle.tsx"],"sourcesContent":["import { StyleProp, Text, TextStyle } from 'react-native';\nimport React from 'react';\nimport { PlayerContext, UiContext } from '../../util/PlayerContext';\n\nexport interface MenuTitleProps {\n /**\n * The label of the menu title component.\n */\n label: string;\n /**\n * The style overrides.\n */\n style?: StyleProp<TextStyle>;\n}\n\n/**\n * The default style for the menu title.\n */\nexport const DEFAULT_MENU_TITLE_STYLE: TextStyle = {\n fontSize: 20,\n lineHeight: 24,\n padding: 10,\n textAlign: 'center',\n fontWeight: 'bold',\n};\n\n/**\n * The title placed at the top of the fullscreen menu.\n */\nexport const MenuTitle = (props: MenuTitleProps) => {\n const { label, style } = props;\n return (\n <PlayerContext.Consumer>\n {(context: UiContext) => <Text style={[DEFAULT_MENU_TITLE_STYLE, { color: context.style.colors.text }, style]}>{label}</Text>}\n </PlayerContext.Consumer>\n );\n};\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAC,sBAAA,CAAAF,OAAA;AACA,IAAAG,cAAA,GAAAH,OAAA;AAAoE,SAAAE,uBAAAE,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAapE;AACA;AACA;AACO,MAAMG,wBAAmC,GAAG;EACjDC,QAAQ,EAAE,EAAE;EACZC,UAAU,EAAE,EAAE;EACdC,OAAO,EAAE,EAAE;EACXC,SAAS,EAAE,QAAQ;EACnBC,UAAU,EAAE;AACd,CAAC;;AAED;AACA;AACA;AAFAC,OAAA,CAAAN,wBAAA,GAAAA,wBAAA;AAGO,MAAMO,SAAS,GAAIC,KAAqB,IAAK;EAClD,MAAM;IAAEC,KAAK;IAAEC;EAAM,CAAC,GAAGF,KAAK;EAC9B,oBACEd,MAAA,CAAAK,OAAA,CAAAY,aAAA,CAACf,cAAA,CAAAgB,aAAa,CAACC,QAAQ,QACnBC,OAAkB,iBAAKpB,MAAA,CAAAK,OAAA,CAAAY,aAAA,CAACnB,YAAA,CAAAuB,IAAI;IAACL,KAAK,EAAE,CAACV,wBAAwB,EAAE;MAAEgB,KAAK,EAAEF,OAAO,CAACJ,KAAK,CAACO,MAAM,CAACC;IAAK,CAAC,EAAER,KAAK;EAAE,GAAED,KAAK,CAAQ,CACtG;AAE7B,CAAC;AAACH,OAAA,CAAAC,SAAA,GAAAA,SAAA"}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.MenuView = exports.DEFAULT_MENU_VIEW_STYLE = void 0;
|
|
7
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _PlayerContext = require("../../util/PlayerContext");
|
|
9
|
-
var _reactNative = require("react-native");
|
|
10
|
-
var _ControlBar = require("../../controlbar/ControlBar");
|
|
11
|
-
var _UiContainer = require("../../uicontroller/UiContainer");
|
|
12
|
-
var _BackSvg = require("../../button/svg/BackSvg");
|
|
13
|
-
var _ActionButton = require("../../button/actionbutton/ActionButton");
|
|
14
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
15
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
16
|
-
/**
|
|
17
|
-
* The default style for the menu view.
|
|
18
|
-
*/
|
|
19
|
-
const DEFAULT_MENU_VIEW_STYLE = {
|
|
20
|
-
flex: 1,
|
|
21
|
-
flexDirection: 'row',
|
|
22
|
-
left: 0,
|
|
23
|
-
right: 0,
|
|
24
|
-
top: 0,
|
|
25
|
-
bottom: 0,
|
|
26
|
-
paddingVertical: 20,
|
|
27
|
-
paddingLeft: 50,
|
|
28
|
-
paddingRight: 40
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* A component to render a fullscreen menu with a title and back button for the `react-native-theoplayer` UI.
|
|
33
|
-
*/
|
|
34
|
-
exports.DEFAULT_MENU_VIEW_STYLE = DEFAULT_MENU_VIEW_STYLE;
|
|
35
|
-
const MenuView = props => {
|
|
36
|
-
const {
|
|
37
|
-
menu,
|
|
38
|
-
style
|
|
39
|
-
} = props;
|
|
40
|
-
const context = (0, _react.useContext)(_PlayerContext.PlayerContext);
|
|
41
|
-
const onClose = () => {
|
|
42
|
-
context.ui.closeCurrentMenu_();
|
|
43
|
-
};
|
|
44
|
-
return /*#__PURE__*/_react.default.createElement(_PlayerContext.PlayerContext.Consumer, null, context => /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
45
|
-
style: _reactNative.StyleSheet.absoluteFill
|
|
46
|
-
}, /*#__PURE__*/_react.default.createElement(_ControlBar.ControlBar, {
|
|
47
|
-
style: _UiContainer.TOP_UI_CONTAINER_STYLE
|
|
48
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
49
|
-
style: {
|
|
50
|
-
flexDirection: 'row'
|
|
51
|
-
}
|
|
52
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
53
|
-
style: {
|
|
54
|
-
flexDirection: 'row'
|
|
55
|
-
},
|
|
56
|
-
onPress: onClose
|
|
57
|
-
}, /*#__PURE__*/_react.default.createElement(_ActionButton.ActionButton, {
|
|
58
|
-
touchable: false,
|
|
59
|
-
svg: /*#__PURE__*/_react.default.createElement(_BackSvg.BackSvg, null)
|
|
60
|
-
}), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
61
|
-
style: {
|
|
62
|
-
color: context.style.colors.text,
|
|
63
|
-
fontSize: 16,
|
|
64
|
-
lineHeight: 30
|
|
65
|
-
}
|
|
66
|
-
}, "Back"))), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
67
|
-
style: {
|
|
68
|
-
flexGrow: 1
|
|
69
|
-
}
|
|
70
|
-
})), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
71
|
-
style: [DEFAULT_MENU_VIEW_STYLE, style]
|
|
72
|
-
}, menu)));
|
|
73
|
-
};
|
|
74
|
-
exports.MenuView = MenuView;
|
|
75
|
-
//# sourceMappingURL=MenuView.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_PlayerContext","_reactNative","_ControlBar","_UiContainer","_BackSvg","_ActionButton","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","DEFAULT_MENU_VIEW_STYLE","flex","flexDirection","left","right","top","bottom","paddingVertical","paddingLeft","paddingRight","exports","MenuView","props","menu","style","context","useContext","PlayerContext","onClose","ui","closeCurrentMenu_","createElement","Consumer","View","StyleSheet","absoluteFill","ControlBar","TOP_UI_CONTAINER_STYLE","TouchableOpacity","onPress","ActionButton","touchable","svg","BackSvg","Text","color","colors","text","fontSize","lineHeight","flexGrow"],"sources":["MenuView.tsx"],"sourcesContent":["import React, { ReactNode, useContext } from 'react';\nimport { PlayerContext, UiContext } from '../../util/PlayerContext';\nimport { StyleProp, StyleSheet, Text, TouchableOpacity, View, ViewStyle } from 'react-native';\nimport { ControlBar } from '../../controlbar/ControlBar';\nimport { TOP_UI_CONTAINER_STYLE } from '../../uicontroller/UiContainer';\nimport { BackSvg } from '../../button/svg/BackSvg';\nimport { ActionButton } from '../../button/actionbutton/ActionButton';\n\ninterface MenuViewProps {\n /**\n * The menu to render inside the menu view.\n */\n menu: ReactNode;\n /**\n * The style overrides for the menu view.\n */\n style?: StyleProp<ViewStyle>;\n}\n\n/**\n * The default style for the menu view.\n */\nexport const DEFAULT_MENU_VIEW_STYLE: ViewStyle = {\n flex: 1,\n flexDirection: 'row',\n left: 0,\n right: 0,\n top: 0,\n bottom: 0,\n paddingVertical: 20,\n paddingLeft: 50,\n paddingRight: 40,\n};\n\n/**\n * A component to render a fullscreen menu with a title and back button for the `react-native-theoplayer` UI.\n */\nexport const MenuView = (props: MenuViewProps) => {\n const { menu, style } = props;\n const context = useContext(PlayerContext);\n const onClose = () => {\n context.ui.closeCurrentMenu_();\n };\n return (\n <PlayerContext.Consumer>\n {(context: UiContext) => (\n <View style={StyleSheet.absoluteFill}>\n <ControlBar style={TOP_UI_CONTAINER_STYLE}>\n <View style={{ flexDirection: 'row' }}>\n <TouchableOpacity style={{ flexDirection: 'row' }} onPress={onClose}>\n <ActionButton touchable={false} svg={<BackSvg />} />\n <Text style={{ color: context.style.colors.text, fontSize: 16, lineHeight: 30 }}>Back</Text>\n </TouchableOpacity>\n </View>\n <View style={{ flexGrow: 1 }} />\n </ControlBar>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CAAAgB,OAAA,CAAAoC,aAAA,CAAChD,YAAA,CAAAuD,gBAAgB;IAACd,KAAK,EAAE;MAAEZ,aAAa,EAAE;IAAM,CAAE;IAAC2B,OAAO,EAAEX;EAAQ,gBAClEjD,MAAA,CAAAgB,OAAA,CAAAoC,aAAA,CAAC5C,aAAA,CAAAqD,YAAY;IAACC,SAAS,EAAE,KAAM;IAACC,GAAG,eAAE/D,MAAA,CAAAgB,OAAA,CAAAoC,aAAA,CAAC7C,QAAA,CAAAyD,OAAO;EAAI,EAAG,eACpDhE,MAAA,CAAAgB,OAAA,CAAAoC,aAAA,CAAChD,YAAA,CAAA6D,IAAI;IAACpB,KAAK,EAAE;MAAEqB,KAAK,EAAEpB,OAAO,CAACD,KAAK,CAACsB,MAAM,CAACC,IAAI;MAAEC,QAAQ,EAAE,EAAE;MAAEC,UAAU,EAAE;IAAG;EAAE,GAAC,MAAI,CAAO,CAC3E,CACd,eACPtE,MAAA,CAAAgB,OAAA,CAAAoC,aAAA,CAAChD,YAAA,CAAAkD,IAAI;IAACT,KAAK,EAAE;MAAE0B,QAAQ,EAAE;IAAE;EAAE,EAAG,CACrB,eACbvE,MAAA,CAAAgB,OAAA,CAAAoC,aAAA,CAAChD,YAAA,CAAAkD,IAAI;IAACT,KAAK,EAAE,CAACd,uBAAuB,EAAEc,KAAK;EAAE,GAAED,IAAI,CAAQ,CAE/D,CACsB;AAE7B,CAAC;AAACH,OAAA,CAAAC,QAAA,GAAAA,QAAA"}
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.ScrollableMenu = exports.DEFAULT_SCROLLABLE_MENU_STYLE = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _MenuTitle = require("./MenuTitle");
|
|
10
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
|
-
/**
|
|
12
|
-
* The default style for the scrollable menu.
|
|
13
|
-
*/
|
|
14
|
-
const DEFAULT_SCROLLABLE_MENU_STYLE = {
|
|
15
|
-
flex: 1,
|
|
16
|
-
left: 0,
|
|
17
|
-
right: 0,
|
|
18
|
-
top: 0,
|
|
19
|
-
bottom: 0,
|
|
20
|
-
paddingRight: 10
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* A menu component that provides a ScrollView for menu items for the `react-native-theoplayer` UI.
|
|
25
|
-
* @param props
|
|
26
|
-
* @constructor
|
|
27
|
-
*/
|
|
28
|
-
exports.DEFAULT_SCROLLABLE_MENU_STYLE = DEFAULT_SCROLLABLE_MENU_STYLE;
|
|
29
|
-
const ScrollableMenu = props => {
|
|
30
|
-
const {
|
|
31
|
-
title,
|
|
32
|
-
items
|
|
33
|
-
} = props;
|
|
34
|
-
return /*#__PURE__*/_react.default.createElement(_reactNative.SafeAreaView, {
|
|
35
|
-
style: DEFAULT_SCROLLABLE_MENU_STYLE
|
|
36
|
-
}, /*#__PURE__*/_react.default.createElement(_MenuTitle.MenuTitle, {
|
|
37
|
-
label: title
|
|
38
|
-
}), /*#__PURE__*/_react.default.createElement(_reactNative.ScrollView, null, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
39
|
-
style: {
|
|
40
|
-
flexDirection: 'column'
|
|
41
|
-
}
|
|
42
|
-
}, items)));
|
|
43
|
-
};
|
|
44
|
-
exports.ScrollableMenu = ScrollableMenu;
|
|
45
|
-
//# sourceMappingURL=ScrollableMenu.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_MenuTitle","obj","__esModule","default","DEFAULT_SCROLLABLE_MENU_STYLE","flex","left","right","top","bottom","paddingRight","exports","ScrollableMenu","props","title","items","createElement","SafeAreaView","style","MenuTitle","label","ScrollView","View","flexDirection"],"sources":["ScrollableMenu.tsx"],"sourcesContent":["import React, { ReactNode } from 'react';\nimport { SafeAreaView, ScrollView, View, ViewStyle } from 'react-native';\nimport { MenuTitle } from './MenuTitle';\n\ninterface ScrollableMenuProps {\n /**\n * The title of the scrollable menu.\n */\n title: string;\n /**\n * The items to be put in the scrollable menu.\n */\n items?: ReactNode;\n}\n\n/**\n * The default style for the scrollable menu.\n */\nexport const DEFAULT_SCROLLABLE_MENU_STYLE: ViewStyle = {\n flex: 1,\n left: 0,\n right: 0,\n top: 0,\n bottom: 0,\n paddingRight: 10,\n};\n\n/**\n * A menu component that provides a ScrollView for menu items for the `react-native-theoplayer` UI.\n * @param props\n * @constructor\n */\nexport const ScrollableMenu = (props: ScrollableMenuProps) => {\n const { title, items } = props;\n return (\n <SafeAreaView style={DEFAULT_SCROLLABLE_MENU_STYLE}>\n <MenuTitle label={title} />\n <ScrollView>\n <View style={{ flexDirection: 'column' }}>{items}</View>\n </ScrollView>\n </SafeAreaView>\n );\n};\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,UAAA,GAAAF,OAAA;AAAwC,SAAAD,uBAAAI,GAAA,WAAAA,GAAA,IAAAA,GAAA,CAAAC,UAAA,GAAAD,GAAA,KAAAE,OAAA,EAAAF,GAAA;AAaxC;AACA;AACA;AACO,MAAMG,6BAAwC,GAAG;EACtDC,IAAI,EAAE,CAAC;EACPC,IAAI,EAAE,CAAC;EACPC,KAAK,EAAE,CAAC;EACRC,GAAG,EAAE,CAAC;EACNC,MAAM,EAAE,CAAC;EACTC,YAAY,EAAE;AAChB,CAAC;;AAED;AACA;AACA;AACA;AACA;AAJAC,OAAA,CAAAP,6BAAA,GAAAA,6BAAA;AAKO,MAAMQ,cAAc,GAAIC,KAA0B,IAAK;EAC5D,MAAM;IAAEC,KAAK;IAAEC;EAAM,CAAC,GAAGF,KAAK;EAC9B,oBACEjB,MAAA,CAAAO,OAAA,CAAAa,aAAA,CAACjB,YAAA,CAAAkB,YAAY;IAACC,KAAK,EAAEd;EAA8B,gBACjDR,MAAA,CAAAO,OAAA,CAAAa,aAAA,CAAChB,UAAA,CAAAmB,SAAS;IAACC,KAAK,EAAEN;EAAM,EAAG,eAC3BlB,MAAA,CAAAO,OAAA,CAAAa,aAAA,CAACjB,YAAA,CAAAsB,UAAU,qBACTzB,MAAA,CAAAO,OAAA,CAAAa,aAAA,CAACjB,YAAA,CAAAuB,IAAI;IAACJ,KAAK,EAAE;MAAEK,aAAa,EAAE;IAAS;EAAE,GAAER,KAAK,CAAQ,CAC7C,CACA;AAEnB,CAAC;AAACJ,OAAA,CAAAC,cAAA,GAAAA,cAAA"}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.SubMenuWithButton = void 0;
|
|
7
|
-
var _PlayerContext = require("../../util/PlayerContext");
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
-
var _ArrowForwardSvg = require("../../button/svg/ArrowForwardSvg");
|
|
11
|
-
var _MenuRadioButton = require("./MenuRadioButton");
|
|
12
|
-
var _ActionButton = require("../../button/actionbutton/ActionButton");
|
|
13
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
14
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
15
|
-
/**
|
|
16
|
-
* A component that can be put inside a SettingsMenuButton to create a sub menu.
|
|
17
|
-
*/
|
|
18
|
-
const SubMenuWithButton = props => {
|
|
19
|
-
const {
|
|
20
|
-
style,
|
|
21
|
-
textStyle,
|
|
22
|
-
menuConstructor,
|
|
23
|
-
label,
|
|
24
|
-
preview
|
|
25
|
-
} = props;
|
|
26
|
-
const context = (0, _react.useContext)(_PlayerContext.PlayerContext);
|
|
27
|
-
const onTouch = () => {
|
|
28
|
-
if (menuConstructor) {
|
|
29
|
-
context.ui.openMenu_(menuConstructor);
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
return /*#__PURE__*/_react.default.createElement(_PlayerContext.PlayerContext.Consumer, null, context => /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
33
|
-
style: [{
|
|
34
|
-
height: 44,
|
|
35
|
-
flexDirection: 'row',
|
|
36
|
-
width: '100%',
|
|
37
|
-
justifyContent: 'center'
|
|
38
|
-
}, style]
|
|
39
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
40
|
-
style: [_MenuRadioButton.DEFAULT_MENU_BUTTON_STYLE, {
|
|
41
|
-
color: context.style.colors.text,
|
|
42
|
-
width: '30%'
|
|
43
|
-
}, textStyle]
|
|
44
|
-
}, label), /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
45
|
-
style: {
|
|
46
|
-
flexDirection: 'row',
|
|
47
|
-
width: '40%',
|
|
48
|
-
justifyContent: 'flex-end'
|
|
49
|
-
}
|
|
50
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.TouchableOpacity, {
|
|
51
|
-
style: {
|
|
52
|
-
flexDirection: 'row'
|
|
53
|
-
},
|
|
54
|
-
onPress: onTouch
|
|
55
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
56
|
-
style: [_MenuRadioButton.DEFAULT_MENU_BUTTON_STYLE, {
|
|
57
|
-
color: context.style.colors.text
|
|
58
|
-
}, textStyle]
|
|
59
|
-
}, preview), /*#__PURE__*/_react.default.createElement(_ActionButton.ActionButton, {
|
|
60
|
-
touchable: false,
|
|
61
|
-
svg: /*#__PURE__*/_react.default.createElement(_ArrowForwardSvg.ArrowForwardSvg, null)
|
|
62
|
-
})))));
|
|
63
|
-
};
|
|
64
|
-
exports.SubMenuWithButton = SubMenuWithButton;
|
|
65
|
-
//# sourceMappingURL=SubMenuWithButton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_PlayerContext","require","_reactNative","_react","_interopRequireWildcard","_ArrowForwardSvg","_MenuRadioButton","_ActionButton","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","SubMenuWithButton","props","style","textStyle","menuConstructor","label","preview","context","useContext","PlayerContext","onTouch","ui","openMenu_","createElement","Consumer","View","height","flexDirection","width","justifyContent","Text","DEFAULT_MENU_BUTTON_STYLE","color","colors","text","TouchableOpacity","onPress","ActionButton","touchable","svg","ArrowForwardSvg","exports"],"sources":["SubMenuWithButton.tsx"],"sourcesContent":["import { PlayerContext, UiContext } from '../../util/PlayerContext';\nimport { StyleProp, Text, TextStyle, TouchableOpacity, View, ViewStyle } from 'react-native';\nimport React, { useContext } from 'react';\nimport { ArrowForwardSvg } from '../../button/svg/ArrowForwardSvg';\nimport type { MenuConstructor } from '../../uicontroller/UiControls';\nimport { DEFAULT_MENU_BUTTON_STYLE } from './MenuRadioButton';\nimport { ActionButton } from '../../button/actionbutton/ActionButton';\n\nexport interface SubMenuButtonProps {\n /**\n * The style overrides.\n */\n style?: StyleProp<ViewStyle>;\n /**\n * The style overrides for the text components.\n */\n textStyle?: StyleProp<TextStyle>;\n /**\n * The sub menu that will be opened.\n */\n menuConstructor: MenuConstructor;\n /**\n * The label for the sub menu button.\n */\n label: string;\n /**\n * A preview for the currently selected value before opening the sub menu.\n */\n preview: string;\n}\n\n/**\n * A component that can be put inside a SettingsMenuButton to create a sub menu.\n */\nexport const SubMenuWithButton = (props: SubMenuButtonProps) => {\n const { style, textStyle, menuConstructor, label, preview } = props;\n const context = useContext(PlayerContext);\n const onTouch = () => {\n if (menuConstructor) {\n context.ui.openMenu_(menuConstructor);\n }\n };\n return (\n <PlayerContext.Consumer>\n {(context: UiContext) => (\n <View style={[{ height: 44, flexDirection: 'row', width: '100%', justifyContent: 'center' }, style]}>\n <Text style={[DEFAULT_MENU_BUTTON_STYLE, { color: context.style.colors.text, width: '30%' }, textStyle]}>{label}</Text>\n <View style={{ flexDirection: 'row', width: '40%', justifyContent: 'flex-end' }}>\n <TouchableOpacity style={{ flexDirection: 'row' }} onPress={onTouch}>\n <Text style={[DEFAULT_MENU_BUTTON_STYLE, { color: context.style.colors.text }, textStyle]}>{preview}</Text>\n <ActionButton touchable={false} svg={<ArrowForwardSvg />} />\n </TouchableOpacity>\n </View>\n </View>\n )}\n </PlayerContext.Consumer>\n );\n};\n"],"mappings":";;;;;;AAAA,IAAAA,cAAA,GAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AACA,IAAAE,MAAA,GAAAC,uBAAA,CAAAH,OAAA;AACA,IAAAI,gBAAA,GAAAJ,OAAA;AAEA,IAAAK,gBAAA,GAAAL,OAAA;AACA,IAAAM,aAAA,GAAAN,OAAA;AAAsE,SAAAO,yBAAAC,WAAA,eAAAC,OAAA,kCAAAC,iBAAA,OAAAD,OAAA,QAAAE,gBAAA,OAAAF,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AQ,eAC3GjC,MAAA,CAAAY,OAAA,CAAA4B,aAAA,CAACpC,aAAA,CAAAkD,YAAY;IAACC,SAAS,EAAE,KAAM;IAACC,GAAG,eAAExD,MAAA,CAAAY,OAAA,CAAA4B,aAAA,CAACtC,gBAAA,CAAAuD,eAAe;EAAI,EAAG,CAC3C,CACd,CAEV,CACsB;AAE7B,CAAC;AAACC,OAAA,CAAA/B,iBAAA,GAAAA,iBAAA"}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
var _MenuButton = require("./MenuButton");
|
|
7
|
-
Object.keys(_MenuButton).forEach(function (key) {
|
|
8
|
-
if (key === "default" || key === "__esModule") return;
|
|
9
|
-
if (key in exports && exports[key] === _MenuButton[key]) return;
|
|
10
|
-
Object.defineProperty(exports, key, {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: function () {
|
|
13
|
-
return _MenuButton[key];
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
});
|
|
17
|
-
var _MenuTitle = require("./MenuTitle");
|
|
18
|
-
Object.keys(_MenuTitle).forEach(function (key) {
|
|
19
|
-
if (key === "default" || key === "__esModule") return;
|
|
20
|
-
if (key in exports && exports[key] === _MenuTitle[key]) return;
|
|
21
|
-
Object.defineProperty(exports, key, {
|
|
22
|
-
enumerable: true,
|
|
23
|
-
get: function () {
|
|
24
|
-
return _MenuTitle[key];
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
});
|
|
28
|
-
var _MenuView = require("./MenuView");
|
|
29
|
-
Object.keys(_MenuView).forEach(function (key) {
|
|
30
|
-
if (key === "default" || key === "__esModule") return;
|
|
31
|
-
if (key in exports && exports[key] === _MenuView[key]) return;
|
|
32
|
-
Object.defineProperty(exports, key, {
|
|
33
|
-
enumerable: true,
|
|
34
|
-
get: function () {
|
|
35
|
-
return _MenuView[key];
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
|
-
});
|
|
39
|
-
var _MenuRadioButton = require("./MenuRadioButton");
|
|
40
|
-
Object.keys(_MenuRadioButton).forEach(function (key) {
|
|
41
|
-
if (key === "default" || key === "__esModule") return;
|
|
42
|
-
if (key in exports && exports[key] === _MenuRadioButton[key]) return;
|
|
43
|
-
Object.defineProperty(exports, key, {
|
|
44
|
-
enumerable: true,
|
|
45
|
-
get: function () {
|
|
46
|
-
return _MenuRadioButton[key];
|
|
47
|
-
}
|
|
48
|
-
});
|
|
49
|
-
});
|
|
50
|
-
var _ScrollableMenu = require("./ScrollableMenu");
|
|
51
|
-
Object.keys(_ScrollableMenu).forEach(function (key) {
|
|
52
|
-
if (key === "default" || key === "__esModule") return;
|
|
53
|
-
if (key in exports && exports[key] === _ScrollableMenu[key]) return;
|
|
54
|
-
Object.defineProperty(exports, key, {
|
|
55
|
-
enumerable: true,
|
|
56
|
-
get: function () {
|
|
57
|
-
return _ScrollableMenu[key];
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
});
|
|
61
|
-
var _SubMenuWithButton = require("./SubMenuWithButton");
|
|
62
|
-
Object.keys(_SubMenuWithButton).forEach(function (key) {
|
|
63
|
-
if (key === "default" || key === "__esModule") return;
|
|
64
|
-
if (key in exports && exports[key] === _SubMenuWithButton[key]) return;
|
|
65
|
-
Object.defineProperty(exports, key, {
|
|
66
|
-
enumerable: true,
|
|
67
|
-
get: function () {
|
|
68
|
-
return _SubMenuWithButton[key];
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
});
|
|
72
|
-
//# sourceMappingURL=barrel.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_MenuButton","require","Object","keys","forEach","key","exports","defineProperty","enumerable","get","_MenuTitle","_MenuView","_MenuRadioButton","_ScrollableMenu","_SubMenuWithButton"],"sources":["barrel.ts"],"sourcesContent":["export * from './MenuButton';\nexport * from './MenuTitle';\nexport * from './Men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NativeTheoplayer = require("react-native-theoplayer");
|
|
9
|
-
var _reactNative = require("react-native");
|
|
10
|
-
var _PlayerContext = require("../util/PlayerContext");
|
|
11
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
12
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
13
|
-
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; }
|
|
14
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
15
|
-
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); }
|
|
16
|
-
/**
|
|
17
|
-
* A simple cast message showing the current state of casting for the `react-native-theoplayer` UI.
|
|
18
|
-
*/
|
|
19
|
-
class CastMessage extends _react.PureComponent {
|
|
20
|
-
constructor(props) {
|
|
21
|
-
super(props);
|
|
22
|
-
_defineProperty(this, "_processCastState", (state, target) => {
|
|
23
|
-
let message;
|
|
24
|
-
switch (state) {
|
|
25
|
-
case 'connecting':
|
|
26
|
-
message = `Connecting to ${target} ...`;
|
|
27
|
-
break;
|
|
28
|
-
case 'connected':
|
|
29
|
-
message = `Playing on ${target}`;
|
|
30
|
-
break;
|
|
31
|
-
}
|
|
32
|
-
this.setState({
|
|
33
|
-
message
|
|
34
|
-
});
|
|
35
|
-
});
|
|
36
|
-
_defineProperty(this, "onCastEvent", event => {
|
|
37
|
-
if (event.subType !== _reactNativeTheoplayer.CastEventType.CHROMECAST_STATE_CHANGE && event.subType !== _reactNativeTheoplayer.CastEventType.AIRPLAY_STATE_CHANGE) {
|
|
38
|
-
return;
|
|
39
|
-
}
|
|
40
|
-
const castTarget = event.subType === _reactNativeTheoplayer.CastEventType.CHROMECAST_STATE_CHANGE ? 'Chromecast' : 'Airplay';
|
|
41
|
-
this._processCastState(event.state, castTarget);
|
|
42
|
-
});
|
|
43
|
-
this.state = {
|
|
44
|
-
message: undefined
|
|
45
|
-
};
|
|
46
|
-
}
|
|
47
|
-
componentDidMount() {
|
|
48
|
-
var _player$cast$chromeca, _player$cast$airplay;
|
|
49
|
-
const player = this.context.player;
|
|
50
|
-
player.addEventListener(_reactNativeTheoplayer.PlayerEventType.CAST_EVENT, this.onCastEvent);
|
|
51
|
-
const chromecastState = (_player$cast$chromeca = player.cast.chromecast) === null || _player$cast$chromeca === void 0 ? void 0 : _player$cast$chromeca.state;
|
|
52
|
-
const airplayState = (_player$cast$airplay = player.cast.airplay) === null || _player$cast$airplay === void 0 ? void 0 : _player$cast$airplay.state;
|
|
53
|
-
if (chromecastState === 'connecting' || chromecastState === 'connected') {
|
|
54
|
-
this._processCastState(chromecastState, 'Chromecast');
|
|
55
|
-
} else if (airplayState === 'connecting' || airplayState === 'connected') {
|
|
56
|
-
this._processCastState(airplayState, 'Airplay');
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
componentWillUnmount() {
|
|
60
|
-
const context = this.context;
|
|
61
|
-
context.player.removeEventListener(_reactNativeTheoplayer.PlayerEventType.CAST_EVENT, this.onCastEvent);
|
|
62
|
-
}
|
|
63
|
-
render() {
|
|
64
|
-
const {
|
|
65
|
-
message
|
|
66
|
-
} = this.state;
|
|
67
|
-
if (!message) {
|
|
68
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null);
|
|
69
|
-
}
|
|
70
|
-
return /*#__PURE__*/_react.default.createElement(_PlayerContext.PlayerContext.Consumer, null, context => /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
71
|
-
style: [context.style.text, {
|
|
72
|
-
color: context.style.colors.text
|
|
73
|
-
}]
|
|
74
|
-
}, message));
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
exports.CastMessage = CastMessage;
|
|
78
|
-
CastMessage.contextType = _PlayerContext.PlayerContext;
|
|
79
|
-
//# sourceMappingURL=CastMessage.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNativeTheoplayer","_reactNative","_PlayerContext","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","_defineProperty","value","_toPropertyKey","enumerable","configurable","writable","arg","_toPrimitive","String","input","hint","prim","Symbol","toPrimitive","undefined","res","TypeError","Number","CastMessage","PureComponent","constructor","props","state","target","message","setState","event","subType","CastEventType","CHROMECAST_STATE_CHANGE","AIRPLAY_STATE_CHANGE","castTarget","_processCastState","componentDidMount","_player$cast$chromeca","_player$cast$airplay","player","context","addEventListener","PlayerEventType","CAST_EVENT","onCastEvent","chromecastState","cast","chromecast","airplayState","airplay","componentWillUnmount","removeEventListener","render","createElement","Fragment","PlayerContext","Consumer","Text","style","text","color","colors","exports","contextType"],"sources":["CastMessage.tsx"],"sourcesContent":["import React, { PureComponent } from 'react';\nimport { CastEvent, CastEventType, CastState, PlayerEventType } from 'react-native-theoplayer';\nimport { Text } from 'react-native';\nimport { PlayerContext, UiContext } from '../util/PlayerContext';\n\ninterface CastMessageState {\n message: string | undefined;\n}\n\n/**\n * A simple cast message showing the current state of casting for the `react-native-theoplayer` UI.\n */\nexport class CastMessage extends PureComponent<unknown, CastMessageState> {\n constructor(props: unknown) {\n super(props);\n this.state = { message: undefined };\n }\n\n componentDidMount() {\n const player = (this.context as UiContext).player;\n player.addEventListener(PlayerEventType.CAST_EVENT, this.onCastEvent);\n const chromecastState = player.cast.chromecast?.state;\n const airplayState = player.cast.airplay?.state;\n if (chromecastState === 'connecting' || chromecastState === 'connected') {\n this._processCastState(chromecastState, 'Chromecast');\n } else if (airplayState === 'connecting' || airplayState === 'connected') {\n this._processCastState(airplayState, 'Airplay');\n }\n }\n\n componentWillUnmount() {\n const context = this.context as UiContext;\n context.player.removeEventListener(PlayerEventType.CAST_EVENT, this.onCastEvent);\n }\n\n private _processCastState = (state: CastState, target: 'Chromecast' | 'Airplay') => {\n let message: string | undefined;\n switch (state) {\n case 'connecting':\n message = `Connecting to ${target} ...`;\n break;\n case 'connected':\n message = `Playing on ${target}`;\n break;\n }\n this.setState({\n message,\n });\n };\n\n private onCastEvent = (event: CastEvent) => {\n if (event.subType !== CastEventType.CHROMECAST_STATE_CHANGE && event.subType !== CastEventType.AIRPLAY_STATE_CHANGE) {\n return;\n }\n const castTarget = event.subType === CastEventType.CHROMECAST_STATE_CHANGE ? 'Chromecast' : 'Airplay';\n this._processCastState(event.state, castTarget);\n };\n\n render() {\n const { message } = this.state;\n\n if (!message) {\n return <></>;\n }\n\n return (\n <PlayerContext.Consumer>\n {(context: UiContext) => <Text style={[context.style.text, { color: context.style.colors.text }]}>{message}</Text>}\n </PlayerContext.Consumer>\n );\n }\n}\n\nCastMessage.contextType = PlayerContext;\n"],"mappings":";;;;;;AA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AQ,MAAMA,CAAA,EAAG;IACP,MAAM;MAAEzB;IAAQ,CAAC,GAAG,IAAI,CAACF,KAAK;IAE9B,IAAI,CAACE,OAAO,EAAE;MACZ,oBAAOpD,MAAA,CAAAa,OAAA,CAAAiE,aAAA,CAAA9E,MAAA,CAAAa,OAAA,CAAAkE,QAAA,OAAK;IACd;IAEA,oBACE/E,MAAA,CAAAa,OAAA,CAAAiE,aAAA,CAACzE,cAAA,CAAA2E,aAAa,CAACC,QAAQ,QACnBhB,OAAkB,iBAAKjE,MAAA,CAAAa,OAAA,CAAAiE,aAAA,CAAC1E,YAAA,CAAA8E,IAAI;MAACC,KAAK,EAAE,CAAClB,OAAO,CAACkB,KAAK,CAACC,IAAI,EAAE;QAAEC,KAAK,EAAEpB,OAAO,CAACkB,KAAK,CAACG,MAAM,CAACF;MAAK,CAAC;IAAE,GAAEhC,OAAO,CAAQ,CAC3F;EAE7B;AACF;AAACmC,OAAA,CAAAzC,WAAA,GAAAA,WAAA;AAEDA,WAAW,CAAC0C,WAAW,GAAGR,4BAAa"}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.ErrorDisplay = ErrorDisplay;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _reactNative = require("react-native");
|
|
9
|
-
var _PlayerContext = require("../util/PlayerContext");
|
|
10
|
-
var _SvgUtils = require("../button/svg/SvgUtils");
|
|
11
|
-
var _ErrorSvg = require("../button/svg/ErrorSvg");
|
|
12
|
-
var _UiContainer = require("../uicontroller/UiContainer");
|
|
13
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
|
-
/**
|
|
15
|
-
* A fullscreen error component for the `react-native-theoplayer` UI.
|
|
16
|
-
*/
|
|
17
|
-
function ErrorDisplay(props) {
|
|
18
|
-
const {
|
|
19
|
-
error
|
|
20
|
-
} = props;
|
|
21
|
-
return /*#__PURE__*/_react.default.createElement(_PlayerContext.PlayerContext.Consumer, null, context => /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
22
|
-
style: [_UiContainer.FULLSCREEN_CENTER_STYLE, {
|
|
23
|
-
backgroundColor: context.style.colors.errorBackground
|
|
24
|
-
}]
|
|
25
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
26
|
-
style: {
|
|
27
|
-
flexDirection: 'row'
|
|
28
|
-
}
|
|
29
|
-
}, /*#__PURE__*/_react.default.createElement(_SvgUtils.SvgContext.Provider, {
|
|
30
|
-
value: {
|
|
31
|
-
fill: context.style.colors.icon,
|
|
32
|
-
height: '100%',
|
|
33
|
-
width: '100%'
|
|
34
|
-
}
|
|
35
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
36
|
-
style: {
|
|
37
|
-
height: context.style.dimensions.controlBarHeight,
|
|
38
|
-
aspectRatio: 1,
|
|
39
|
-
padding: 5
|
|
40
|
-
}
|
|
41
|
-
}, /*#__PURE__*/_react.default.createElement(_ErrorSvg.ErrorSvg, null))), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
42
|
-
style: [context.style.text, {
|
|
43
|
-
color: context.style.colors.text,
|
|
44
|
-
alignSelf: 'center',
|
|
45
|
-
paddingLeft: 5
|
|
46
|
-
}]
|
|
47
|
-
}, "Error:")), /*#__PURE__*/_react.default.createElement(_reactNative.Text, {
|
|
48
|
-
style: [context.style.text, {
|
|
49
|
-
color: context.style.colors.text
|
|
50
|
-
}]
|
|
51
|
-
}, error.errorMessage)));
|
|
52
|
-
}
|
|
53
|
-
//# sourceMappingURL=ErrorDisplay.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_PlayerContext","_SvgUtils","_ErrorSvg","_UiContainer","obj","__esModule","default","ErrorDisplay","props","error","createElement","PlayerContext","Consumer","context","View","style","FULLSCREEN_CENTER_STYLE","backgroundColor","colors","errorBackground","flexDirection","SvgContext","Provider","value","fill","icon","height","width","dimensions","controlBarHeight","aspectRatio","padding","ErrorSvg","Text","text","color","alignSelf","paddingLeft","errorMessage"],"sources":["ErrorDisplay.tsx"],"sourcesContent":["import React from 'react';\nimport { Text, View } from 'react-native';\nimport type { PlayerError } from 'react-native-theoplayer';\nimport { PlayerContext, UiContext } from '../util/PlayerContext';\nimport { SvgContext } from '../button/svg/SvgUtils';\nimport { ErrorSvg } from '../button/svg/ErrorSvg';\nimport { FULLSCREEN_CENTER_STYLE } from '../uicontroller/UiContainer';\n\nexport interface ErrorDisplayProps {\n /**\n * The error that will be displayed.\n */\n error: PlayerError;\n}\n\n/**\n * A fullscreen error component for the `react-native-theoplayer` UI.\n */\nexport function ErrorDisplay(props: ErrorDisplayProps) {\n const { error } = props;\n return (\n <PlayerContext.Consumer>\n {(context: UiContext) => (\n <View style={[FULLSCREEN_CENTER_STYLE, { backgroundColor: context.style.colors.errorBackground }]}>\n <View style={{ flexDirection: 'row' }}>\n <SvgContext.Provider\n value={{\n fill: context.style.colors.icon,\n height: '100%',\n width: '100%',\n }}>\n <View style={{ height: context.style.dimensions.controlBarHeight, aspectRatio: 1, padding: 5 }}>\n <ErrorSvg />\n </View>\n </SvgContext.Provider>\n <Text style={[context.style.text, { color: context.style.colors.text, alignSelf: 'center', paddingLeft: 5 }]}>Error:</Text>\n </View>\n <Text style={[context.style.text, { color: context.style.colors.text }]}>{error.errorMessage}</Text>\n </View>\n )}\n </PlayerContext.Consumer>\n );\n}\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,YAAA,GAAAD,OAAA;AAEA,IAAAE,cAAA,GAAAF,OAAA;AACA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,SAAA,GAAAJ,OAAA;AACA,IAAAK,YAAA,GAAAL,OAAA;AAAsE,SAAAD,uBA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