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 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","PureComponent","PlayerEventType","PresentationMode","Platform","ActionButton","PlayerContext","FullscreenExitSvg","FullscreenEnterSvg","FullscreenButton","constructor","props","_defineProperty","event","setState","presentationMode","player","context","fullscreen","inline","state","componentDidMount","addEventListener","PRESENTATIONMODE_CHANGE","onPresentationModeChange","componentWillUnmount","removeEventListener","render","isTV","createElement","Fragment","svg","onPress","toggleFullScreen","contextType"],"sources":["FullscreenButton.tsx"],"sourcesContent":["import React, { PureComponent } from 'react';\nimport type { PresentationModeChangeEvent } from 'react-native-theoplayer';\nimport { PlayerEventType, PresentationMode } from 'react-native-theoplayer';\nimport { Platform } from 'react-native';\nimport { ActionButton } from './actionbutton/ActionButton';\nimport { PlayerContext, UiContext } from '../util/PlayerContext';\nimport { FullscreenExitSvg } from './svg/FullscreenExitSvg';\nimport { FullscreenEnterSvg } from './svg/FullscreenEnterSvg';\n\ninterface FullscreenButtonState {\n presentationMode: PresentationMode;\n}\n\n/**\n * The button to enable/disable fullscreen for the `react-native-theoplayer` UI.\n */\nexport class FullscreenButton extends PureComponent<unknown, FullscreenButtonState> {\n constructor(props: unknown) {\n super(props);\n this.state = { presentationMode: PresentationMode.inline };\n }\n\n componentDidMount() {\n const player = (this.context as UiContext).player;\n player.addEventListener(PlayerEventType.PRESENTATIONMODE_CHANGE, this.onPresentationModeChange);\n this.setState({ presentationMode: player.presentationMode });\n }\n\n componentWillUnmount() {\n const player = (this.context as UiContext).player;\n player.removeEventListener(PlayerEventType.PRESENTATIONMODE_CHANGE, this.onPresentationModeChange);\n }\n\n private readonly onPresentationModeChange = (event: PresentationModeChangeEvent) => {\n this.setState({ presentationMode: event.presentationMode });\n };\n\n private toggleFullScreen = () => {\n const player = (this.context as UiContext).player;\n switch (player.presentationMode) {\n case 'picture-in-picture':\n case 'inline':\n player.presentationMode = PresentationMode.fullscreen;\n break;\n case 'fullscreen':\n player.presentationMode = PresentationMode.inline;\n break;\n }\n };\n\n render() {\n const { presentationMode } = this.state;\n if (Platform.isTV) {\n return <></>;\n }\n return <ActionButton svg={presentationMode === 'fullscreen' ? <FullscreenExitSvg /> : <FullscreenEnterSvg />} onPress={this.toggleFullScreen} />;\n }\n}\n\nFullscreenButton.contextType = PlayerContext;\n"],"mappings":";;;AAAA,OAAOA,KAAK,IAAIC,aAAa,QAAQ,OAAO;AAE5C,SAASC,eAAe,EAAEC,gBAAgB,QAAQ,yBAAyB;AAC3E,SAASC,QAAQ,QAAQ,cAAc;AACvC,SAASC,YAAY,QAAQ,6BAA6B;AAC1D,SAASC,aAAa,QAAmB,uBAAuB;AAChE,SAASC,iBAAiB,QAAQ,yBAAyB;AAC3D,SAASC,kBAAkB,QAAQ,0BAA0B;AAM7D;AACA;AACA;AACA,OAAO,MAAMC,gBAAgB,SAASR,aAAa,CAAiC;EAClFS,WAAWA,CAACC,KAAc,EAAE;IAC1B,KAAK,CAACA,KAAK,CAAC;IAACC,eAAA,mCAe8BC,KAAkC,IAAK;MAClF,IAAI,CAACC,QAAQ,CAAC;QAAEC,gBAAgB,EAAEF,KAAK,CAACE;MAAiB,CAAC,CAAC;IAC7D,CAAC;IAAAH,eAAA,2BAE0B,MAAM;MAC/B,MAAMI,MAAM,GAAI,IAAI,CAACC,OAAO,CAAeD,MAAM;MACjD,QAAQA,MAAM,CAACD,gBAAgB;QAC7B,KAAK,oBAAoB;QACzB,KAAK,QAAQ;UACXC,MAAM,CAACD,gBAAgB,GAAGZ,gBAAgB,CAACe,UAAU;UACrD;QACF,KAAK,YAAY;UACfF,MAAM,CAACD,gBAAgB,GAAGZ,gBAAgB,CAACgB,MAAM;UACjD;MAAM;IAEZ,CAAC;IA7BC,IAAI,CAACC,KAAK,GAAG;MAAEL,gBAAgB,EAAEZ,gBAAgB,CAACgB;IAAO,CAAC;EAC5D;EAEAE,iBAAiBA,CAAA,EAAG;IAClB,MAAML,MAAM,GAAI,IAAI,CAACC,OAAO,CAAeD,MAAM;IACjDA,MAAM,CAACM,gBAAgB,CAACpB,eAAe,CAACqB,uBAAuB,EAAE,IAAI,CAACC,wBAAwB,CAAC;IAC/F,IAAI,CAACV,QAAQ,CAAC;MAAEC,gBAAgB,EAAEC,MAAM,CAACD;IAAiB,CAAC,CAAC;EAC9D;EAEAU,oBAAoBA,CAAA,EAAG;IACrB,MAAMT,MAAM,GAAI,IAAI,CAACC,OAAO,CAAeD,MAAM;IACjDA,MAAM,CAACU,mBAAmB,CAACxB,eAAe,CAACqB,uBAAuB,EAAE,IAAI,CAACC,wBAAwB,CAAC;EACpG;EAmBAG,MAAMA,CAAA,EAAG;IACP,MAAM;MAAEZ;IAAiB,CAAC,GAAG,IAAI,CAACK,KAAK;IACvC,IAAIhB,QAAQ,CAACwB,IAAI,EAAE;MACjB,oBAAO5B,KAAA,CAAA6B,aAAA,CAAA7B,KAAA,CAAA8B,QAAA,OAAK;IACd;IACA,oBAAO9B,KAAA,CAAA6B,aAAA,CAACxB,YAAY;MAAC0B,GAAG,EAAEhB,gBAAgB,KAAK,YAAY,gBAAGf,KAAA,CAAA6B,aAAA,CAACtB,iBAAiB,OAAG,gBAAGP,KAAA,CAAA6B,aAAA,CAACrB,kBAAkB,OAAI;MAACwB,OAAO,EAAE,IAAI,CAACC;IAAiB,EAAG;EAClJ;AACF;AAEAxB,gBAAgB,CAACyB,WAAW,GAAG5B,aAAa"}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
3
|
-
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
4
|
-
import { ActionButton } from './actionbutton/ActionButton';
|
|
5
|
-
import React, { PureComponent } from 'react';
|
|
6
|
-
import { PlayerContext } from '../util/PlayerContext';
|
|
7
|
-
import { PlayerEventType } from 'react-native-theoplayer';
|
|
8
|
-
import { Platform } from 'react-native';
|
|
9
|
-
import { VolumeOffSvg } from './svg/VolumeOffSvg';
|
|
10
|
-
import { VolumeUpSvg } from './svg/VolumeUpSvg';
|
|
11
|
-
/**
|
|
12
|
-
* The default mute button for the `react-native-theoplayer` UI.
|
|
13
|
-
*/
|
|
14
|
-
export class MuteButton extends PureComponent {
|
|
15
|
-
constructor(props) {
|
|
16
|
-
super(props);
|
|
17
|
-
_defineProperty(this, "onVolumeChange", _ => {
|
|
18
|
-
const player = this.context.player;
|
|
19
|
-
this.setState({
|
|
20
|
-
muted: player.muted
|
|
21
|
-
});
|
|
22
|
-
});
|
|
23
|
-
_defineProperty(this, "toggleMuted", () => {
|
|
24
|
-
const player = this.context.player;
|
|
25
|
-
player.muted = !player.muted;
|
|
26
|
-
});
|
|
27
|
-
this.state = {
|
|
28
|
-
muted: false
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
componentDidMount() {
|
|
32
|
-
const player = this.context.player;
|
|
33
|
-
player.addEventListener(PlayerEventType.VOLUME_CHANGE, this.onVolumeChange);
|
|
34
|
-
this.setState({
|
|
35
|
-
muted: player.muted
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
componentWillUnmount() {
|
|
39
|
-
const player = this.context.player;
|
|
40
|
-
player.removeEventListener(PlayerEventType.VOLUME_CHANGE, this.onVolumeChange);
|
|
41
|
-
}
|
|
42
|
-
render() {
|
|
43
|
-
const {
|
|
44
|
-
muted
|
|
45
|
-
} = this.state;
|
|
46
|
-
if (Platform.isTV) {
|
|
47
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
48
|
-
}
|
|
49
|
-
return /*#__PURE__*/React.createElement(ActionButton, {
|
|
50
|
-
svg: muted ? /*#__PURE__*/React.createElement(VolumeOffSvg, null) : /*#__PURE__*/React.createElement(VolumeUpSvg, null),
|
|
51
|
-
onPress: this.toggleMuted,
|
|
52
|
-
touchable: true
|
|
53
|
-
});
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
MuteButton.contextType = PlayerContext;
|
|
57
|
-
//# sourceMappingURL=MuteButton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["ActionButton","React","PureComponent","PlayerContext","PlayerEventType","Platform","VolumeOffSvg","VolumeUpSvg","MuteButton","constructor","props","_defineProperty","_","player","context","setState","muted","state","componentDidMount","addEventListener","VOLUME_CHANGE","onVolumeChange","componentWillUnmount","removeEventListener","render","isTV","createElement","Fragment","svg","onPress","toggleMuted","touchable","contextType"],"sources":["MuteButton.tsx"],"sourcesContent":["import { ActionButton } from './actionbutton/ActionButton';\nimport React, { PureComponent } from 'react';\nimport { PlayerContext, UiContext } from '../util/PlayerContext';\nimport { PlayerEventType, VolumeChangeEvent } from 'react-native-theoplayer';\nimport { Platform } from 'react-native';\nimport { VolumeOffSvg } from './svg/VolumeOffSvg';\nimport { VolumeUpSvg } from './svg/VolumeUpSvg';\n\ninterface MuteButtonState {\n muted: boolean;\n}\n\n/**\n * The default mute button for the `react-native-theoplayer` UI.\n */\nexport class MuteButton extends PureComponent<unknown, MuteButtonState> {\n constructor(props: unknown) {\n super(props);\n this.state = { muted: false };\n }\n\n componentDidMount() {\n const player = (this.context as UiContext).player;\n player.addEventListener(PlayerEventType.VOLUME_CHANGE, this.onVolumeChange);\n this.setState({ muted: player.muted });\n }\n\n componentWillUnmount() {\n const player = (this.context as UiContext).player;\n player.removeEventListener(PlayerEventType.VOLUME_CHANGE, this.onVolumeChange);\n }\n\n private onVolumeChange = (_: VolumeChangeEvent) => {\n const player = (this.context as UiContext).player;\n this.setState({ muted: player.muted });\n };\n\n private toggleMuted = () => {\n const player = (this.context as UiContext).player;\n player.muted = !player.muted;\n };\n\n render() {\n const { muted } = this.state;\n if (Platform.isTV) {\n return <></>;\n }\n return <ActionButton svg={muted ? <VolumeOffSvg /> : <VolumeUpSvg />} onPress={this.toggleMuted} touchable={true} />;\n }\n}\n\nMuteButton.contextType = PlayerContext;\n"],"mappings":";;;AAAA,SAASA,YAAY,QAAQ,6BAA6B;AAC1D,OAAOC,KAAK,IAAIC,aAAa,QAAQ,OAAO;AAC5C,SAASC,aAAa,QAAmB,uBAAuB;AAChE,SAASC,eAAe,QAA2B,yBAAyB;AAC5E,SAASC,QAAQ,QAAQ,cAAc;AACvC,SAASC,YAAY,QAAQ,oBAAoB;AACjD,SAASC,WAAW,QAAQ,mBAAmB;AAM/C;AACA;AACA;AACA,OAAO,MAAMC,UAAU,SAASN,aAAa,CAA2B;EACtEO,WAAWA,CAACC,KAAc,EAAE;IAC1B,KAAK,CAACA,KAAK,CAAC;IAACC,eAAA,yBAeWC,CAAoB,IAAK;MACjD,MAAMC,MAAM,GAAI,IAAI,CAACC,OAAO,CAAeD,MAAM;MACjD,IAAI,CAACE,QAAQ,CAAC;QAAEC,KAAK,EAAEH,MAAM,CAACG;MAAM,CAAC,CAAC;IACxC,CAAC;IAAAL,eAAA,sBAEqB,MAAM;MAC1B,MAAME,MAAM,GAAI,IAAI,CAACC,OAAO,CAAeD,MAAM;MACjDA,MAAM,CAACG,KAAK,GAAG,CAACH,MAAM,CAACG,KAAK;IAC9B,CAAC;IAtBC,IAAI,CAACC,KAAK,GAAG;MAAED,KAAK,EAAE;IAAM,CAAC;EAC/B;EAEAE,iBAAiBA,CAAA,EAAG;IAClB,MAAML,MAAM,GAAI,IAAI,CAACC,OAAO,CAAeD,MAAM;IACjDA,MAAM,CAACM,gBAAgB,CAACf,eAAe,CAACgB,aAAa,EAAE,IAAI,CAACC,cAAc,CAAC;IAC3E,IAAI,CAACN,QAAQ,CAAC;MAAEC,KAAK,EAAEH,MAAM,CAACG;IAAM,CAAC,CAAC;EACxC;EAEAM,oBAAoBA,CAAA,EAAG;IACrB,MAAMT,MAAM,GAAI,IAAI,CAACC,OAAO,CAAeD,MAAM;IACjDA,MAAM,CAACU,mBAAmB,CAACnB,eAAe,CAACgB,aAAa,EAAE,IAAI,CAACC,cAAc,CAAC;EAChF;EAYAG,MAAMA,CAAA,EAAG;IACP,MAAM;MAAER;IAAM,CAAC,GAAG,IAAI,CAACC,KAAK;IAC5B,IAAIZ,QAAQ,CAACoB,IAAI,EAAE;MACjB,oBAAOxB,KAAA,CAAAyB,aAAA,CAAAzB,KAAA,CAAA0B,QAAA,OAAK;IACd;IACA,oBAAO1B,KAAA,CAAAyB,aAAA,CAAC1B,YAAY;MAAC4B,GAAG,EAAEZ,KAAK,gBAAGf,KAAA,CAAAyB,aAAA,CAACpB,YAAY,OAAG,gBAAGL,KAAA,CAAAyB,aAAA,CAACnB,WAAW,OAAI;MAACsB,OAAO,EAAE,IAAI,CAACC,WAAY;MAACC,SAAS,EAAE;IAAK,EAAG;EACtH;AACF;AAEAvB,UAAU,CAACwB,WAAW,GAAG7B,aAAa"}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
3
|
-
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
4
|
-
import React, { PureComponent } from 'react';
|
|
5
|
-
import { PlayerEventType, PresentationMode } from 'react-native-theoplayer';
|
|
6
|
-
import { Platform } from 'react-native';
|
|
7
|
-
import { ActionButton } from './actionbutton/ActionButton';
|
|
8
|
-
import { PlayerContext } from '../util/PlayerContext';
|
|
9
|
-
import { PipExitSvg } from './svg/PipExitSvg';
|
|
10
|
-
import { PipEnterSvg } from './svg/PipEnterSvg';
|
|
11
|
-
/**
|
|
12
|
-
* The default button to enable picture-in-picture for the `react-native-theoplayer` UI.
|
|
13
|
-
*/
|
|
14
|
-
export class PipButton extends PureComponent {
|
|
15
|
-
constructor(props) {
|
|
16
|
-
super(props);
|
|
17
|
-
_defineProperty(this, "onPresentationModeChange", event => {
|
|
18
|
-
this.setState({
|
|
19
|
-
presentationMode: event.presentationMode
|
|
20
|
-
});
|
|
21
|
-
});
|
|
22
|
-
_defineProperty(this, "togglePip", () => {
|
|
23
|
-
const player = this.context.player;
|
|
24
|
-
switch (player.presentationMode) {
|
|
25
|
-
case 'inline':
|
|
26
|
-
case 'fullscreen':
|
|
27
|
-
player.presentationMode = PresentationMode.pip;
|
|
28
|
-
break;
|
|
29
|
-
case 'picture-in-picture':
|
|
30
|
-
player.presentationMode = PresentationMode.inline;
|
|
31
|
-
break;
|
|
32
|
-
}
|
|
33
|
-
});
|
|
34
|
-
this.state = {
|
|
35
|
-
presentationMode: PresentationMode.inline
|
|
36
|
-
};
|
|
37
|
-
}
|
|
38
|
-
componentDidMount() {
|
|
39
|
-
const player = this.context.player;
|
|
40
|
-
player.addEventListener(PlayerEventType.PRESENTATIONMODE_CHANGE, this.onPresentationModeChange);
|
|
41
|
-
this.setState({
|
|
42
|
-
presentationMode: player.presentationMode
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
componentWillUnmount() {
|
|
46
|
-
const player = this.context.player;
|
|
47
|
-
player.removeEventListener(PlayerEventType.PRESENTATIONMODE_CHANGE, this.onPresentationModeChange);
|
|
48
|
-
}
|
|
49
|
-
render() {
|
|
50
|
-
if (Platform.isTV) {
|
|
51
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
52
|
-
}
|
|
53
|
-
const {
|
|
54
|
-
presentationMode
|
|
55
|
-
} = this.state;
|
|
56
|
-
return /*#__PURE__*/React.createElement(ActionButton, {
|
|
57
|
-
svg: presentationMode === 'picture-in-picture' ? /*#__PURE__*/React.createElement(PipExitSvg, null) : /*#__PURE__*/React.createElement(PipEnterSvg, null),
|
|
58
|
-
onPress: this.togglePip
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
PipButton.contextType = PlayerContext;
|
|
63
|
-
//# sourceMappingURL=PipButton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["React","PureComponent","PlayerEventType","PresentationMode","Platform","ActionButton","PlayerContext","PipExitSvg","PipEnterSvg","PipButton","constructor","props","_defineProperty","event","setState","presentationMode","player","context","pip","inline","state","componentDidMount","addEventListener","PRESENTATIONMODE_CHANGE","onPresentationModeChange","componentWillUnmount","removeEventListener","render","isTV","createElement","Fragment","svg","onPress","togglePip","contextType"],"sources":["PipButton.tsx"],"sourcesContent":["import React, { PureComponent } from 'react';\nimport type { PresentationModeChangeEvent } from 'react-native-theoplayer';\nimport { PlayerEventType, PresentationMode } from 'react-native-theoplayer';\nimport { Platform } from 'react-native';\nimport { ActionButton } from './actionbutton/ActionButton';\nimport { PlayerContext, UiContext } from '../util/PlayerContext';\nimport { PipExitSvg } from './svg/PipExitSvg';\nimport { PipEnterSvg } from './svg/PipEnterSvg';\n\ninterface PipButtonState {\n presentationMode: PresentationMode;\n}\n\n/**\n * The default button to enable picture-in-picture for the `react-native-theoplayer` UI.\n */\nexport class PipButton extends PureComponent<unknown, PipButtonState> {\n constructor(props: unknown) {\n super(props);\n this.state = { presentationMode: PresentationMode.inline };\n }\n\n componentDidMount() {\n const player = (this.context as UiContext).player;\n player.addEventListener(PlayerEventType.PRESENTATIONMODE_CHANGE, this.onPresentationModeChange);\n this.setState({ presentationMode: player.presentationMode });\n }\n\n componentWillUnmount() {\n const player = (this.context as UiContext).player;\n player.removeEventListener(PlayerEventType.PRESENTATIONMODE_CHANGE, this.onPresentationModeChange);\n }\n\n private readonly onPresentationModeChange = (event: PresentationModeChangeEvent) => {\n this.setState({ presentationMode: event.presentationMode });\n };\n\n private togglePip = () => {\n const player = (this.context as UiContext).player;\n switch (player.presentationMode) {\n case 'inline':\n case 'fullscreen':\n player.presentationMode = PresentationMode.pip;\n break;\n case 'picture-in-picture':\n player.presentationMode = PresentationMode.inline;\n break;\n }\n };\n\n render() {\n if (Platform.isTV) {\n return <></>;\n }\n const { presentationMode } = this.state;\n\n return <ActionButton svg={presentationMode === 'picture-in-picture' ? <PipExitSvg /> : <PipEnterSvg />} onPress={this.togglePip} />;\n }\n}\n\nPipButton.contextType = PlayerContext;\n"],"mappings":";;;AAAA,OAAOA,KAAK,IAAIC,aAAa,QAAQ,OAAO;AAE5C,SAASC,eAAe,EAAEC,gBAAgB,QAAQ,yBAAyB;AAC3E,SAASC,QAAQ,QAAQ,cAAc;AACvC,SAASC,YAAY,QAAQ,6BAA6B;AAC1D,SAASC,aAAa,QAAmB,uBAAuB;AAChE,SAASC,UAAU,QAAQ,kBAAkB;AAC7C,SAASC,WAAW,QAAQ,mBAAmB;AAM/C;AACA;AACA;AACA,OAAO,MAAMC,SAAS,SAASR,aAAa,CAA0B;EACpES,WAAWA,CAACC,KAAc,EAAE;IAC1B,KAAK,CAACA,KAAK,CAAC;IAACC,eAAA,mCAe8BC,KAAkC,IAAK;MAClF,IAAI,CAACC,QAAQ,CAAC;QAAEC,gBAAgB,EAAEF,KAAK,CAACE;MAAiB,CAAC,CAAC;IAC7D,CAAC;IAAAH,eAAA,oBAEmB,MAAM;MACxB,MAAMI,MAAM,GAAI,IAAI,CAACC,OAAO,CAAeD,MAAM;MACjD,QAAQA,MAAM,CAACD,gBAAgB;QAC7B,KAAK,QAAQ;QACb,KAAK,YAAY;UACfC,MAAM,CAACD,gBAAgB,GAAGZ,gBAAgB,CAACe,GAAG;UAC9C;QACF,KAAK,oBAAoB;UACvBF,MAAM,CAACD,gBAAgB,GAAGZ,gBAAgB,CAACgB,MAAM;UACjD;MAAM;IAEZ,CAAC;IA7BC,IAAI,CAACC,KAAK,GAAG;MAAEL,gBAAgB,EAAEZ,gBAAgB,CAACgB;IAAO,CAAC;EAC5D;EAEAE,iBAAiBA,CAAA,EAAG;IAClB,MAAML,MAAM,GAAI,IAAI,CAACC,OAAO,CAAeD,MAAM;IACjDA,MAAM,CAACM,gBAAgB,CAACpB,eAAe,CAACqB,uBAAuB,EAAE,IAAI,CAACC,wBAAwB,CAAC;IAC/F,IAAI,CAACV,QAAQ,CAAC;MAAEC,gBAAgB,EAAEC,MAAM,CAACD;IAAiB,CAAC,CAAC;EAC9D;EAEAU,oBAAoBA,CAAA,EAAG;IACrB,MAAMT,MAAM,GAAI,IAAI,CAACC,OAAO,CAAeD,MAAM;IACjDA,MAAM,CAACU,mBAAmB,CAACxB,eAAe,CAACqB,uBAAuB,EAAE,IAAI,CAACC,wBAAwB,CAAC;EACpG;EAmBAG,MAAMA,CAAA,EAAG;IACP,IAAIvB,QAAQ,CAACwB,IAAI,EAAE;MACjB,oBAAO5B,KAAA,CAAA6B,aAAA,CAAA7B,KAAA,CAAA8B,QAAA,OAAK;IACd;IACA,MAAM;MAAEf;IAAiB,CAAC,GAAG,IAAI,CAACK,KAAK;IAEvC,oBAAOpB,KAAA,CAAA6B,aAAA,CAACxB,YAAY;MAAC0B,GAAG,EAAEhB,gBAAgB,KAAK,oBAAoB,gBAAGf,KAAA,CAAA6B,aAAA,CAACtB,UAAU,OAAG,gBAAGP,KAAA,CAAA6B,aAAA,CAACrB,WAAW,OAAI;MAACwB,OAAO,EAAE,IAAI,CAACC;IAAU,EAAG;EACrI;AACF;AAEAxB,SAAS,CAACyB,WAAW,GAAG5B,aAAa"}
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
3
|
-
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
4
|
-
import { ActionButton } from './actionbutton/ActionButton';
|
|
5
|
-
import React, { PureComponent } from 'react';
|
|
6
|
-
import { PlayerEventType } from 'react-native-theoplayer';
|
|
7
|
-
import { PlayerContext } from '../util/PlayerContext';
|
|
8
|
-
import { PlaySvg } from './svg/PlaySvg';
|
|
9
|
-
import { PauseSvg } from './svg/PauseSvg';
|
|
10
|
-
import { ReplaySvg } from './svg/ReplaySvg';
|
|
11
|
-
/**
|
|
12
|
-
* The default play/pause button for the `react-native-theoplayer` UI.
|
|
13
|
-
*/
|
|
14
|
-
export class PlayButton extends PureComponent {
|
|
15
|
-
constructor(props) {
|
|
16
|
-
super(props);
|
|
17
|
-
_defineProperty(this, "onPlay", () => {
|
|
18
|
-
const player = this.context.player;
|
|
19
|
-
if (player.seeking) {
|
|
20
|
-
return;
|
|
21
|
-
}
|
|
22
|
-
this.setState({
|
|
23
|
-
paused: false,
|
|
24
|
-
ended: false
|
|
25
|
-
});
|
|
26
|
-
});
|
|
27
|
-
_defineProperty(this, "onPause", () => {
|
|
28
|
-
const player = this.context.player;
|
|
29
|
-
if (player.seeking) {
|
|
30
|
-
return;
|
|
31
|
-
}
|
|
32
|
-
this.setState({
|
|
33
|
-
paused: true
|
|
34
|
-
});
|
|
35
|
-
});
|
|
36
|
-
_defineProperty(this, "onSourceChange", () => {
|
|
37
|
-
const player = this.context.player;
|
|
38
|
-
this.setState({
|
|
39
|
-
paused: player.paused
|
|
40
|
-
});
|
|
41
|
-
});
|
|
42
|
-
_defineProperty(this, "onEnded", () => {
|
|
43
|
-
this.setState({
|
|
44
|
-
ended: true
|
|
45
|
-
});
|
|
46
|
-
});
|
|
47
|
-
_defineProperty(this, "onSeeking", () => {
|
|
48
|
-
this.setState({
|
|
49
|
-
ended: false
|
|
50
|
-
});
|
|
51
|
-
});
|
|
52
|
-
_defineProperty(this, "togglePlayPause", () => {
|
|
53
|
-
const player = this.context.player;
|
|
54
|
-
if (player.paused) {
|
|
55
|
-
player.play();
|
|
56
|
-
} else {
|
|
57
|
-
player.pause();
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
this.state = {
|
|
61
|
-
paused: true,
|
|
62
|
-
ended: false
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
componentDidMount() {
|
|
66
|
-
const context = this.context;
|
|
67
|
-
context.player.addEventListener(PlayerEventType.PLAY, this.onPlay);
|
|
68
|
-
context.player.addEventListener(PlayerEventType.PLAYING, this.onPlay);
|
|
69
|
-
context.player.addEventListener(PlayerEventType.PAUSE, this.onPause);
|
|
70
|
-
context.player.addEventListener(PlayerEventType.SOURCE_CHANGE, this.onSourceChange);
|
|
71
|
-
context.player.addEventListener(PlayerEventType.ENDED, this.onEnded);
|
|
72
|
-
context.player.addEventListener(PlayerEventType.SEEKING, this.onSeeking);
|
|
73
|
-
this.setState({
|
|
74
|
-
paused: context.player.paused,
|
|
75
|
-
ended: context.player.currentTime === context.player.duration
|
|
76
|
-
});
|
|
77
|
-
}
|
|
78
|
-
componentWillUnmount() {
|
|
79
|
-
const context = this.context;
|
|
80
|
-
context.player.removeEventListener(PlayerEventType.PLAY, this.onPlay);
|
|
81
|
-
context.player.removeEventListener(PlayerEventType.PLAYING, this.onPlay);
|
|
82
|
-
context.player.removeEventListener(PlayerEventType.PAUSE, this.onPause);
|
|
83
|
-
context.player.removeEventListener(PlayerEventType.SOURCE_CHANGE, this.onSourceChange);
|
|
84
|
-
context.player.removeEventListener(PlayerEventType.ENDED, this.onEnded);
|
|
85
|
-
context.player.removeEventListener(PlayerEventType.SEEKING, this.onSeeking);
|
|
86
|
-
}
|
|
87
|
-
render() {
|
|
88
|
-
const {
|
|
89
|
-
paused,
|
|
90
|
-
ended
|
|
91
|
-
} = this.state;
|
|
92
|
-
const {
|
|
93
|
-
style
|
|
94
|
-
} = this.props;
|
|
95
|
-
return /*#__PURE__*/React.createElement(ActionButton, {
|
|
96
|
-
style: style,
|
|
97
|
-
touchable: true,
|
|
98
|
-
svg: ended ? /*#__PURE__*/React.createElement(ReplaySvg, null) : paused ? /*#__PURE__*/React.createElement(PlaySvg, null) : /*#__PURE__*/React.createElement(PauseSvg, null),
|
|
99
|
-
onPress: this.togglePlayPause
|
|
100
|
-
});
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
PlayButton.contextType = PlayerContext;
|
|
104
|
-
//# sourceMappingURL=PlayButton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["ActionButton","React","PureComponent","PlayerEventType","PlayerContext","PlaySvg","PauseSvg","ReplaySvg","PlayButton","constructor","props","_defineProperty","player","context","seeking","setState","paused","ended","play","pause","state","componentDidMount","addEventListener","PLAY","onPlay","PLAYING","PAUSE","onPause","SOURCE_CHANGE","onSourceChange","ENDED","onEnded","SEEKING","onSeeking","currentTime","duration","componentWillUnmount","removeEventListener","render","style","createElement","touchable","svg","onPress","togglePlayPause","contextType"],"sources":["PlayButton.tsx"],"sourcesContent":["import { ActionButton } from './actionbutton/ActionButton';\nimport type { StyleProp, ViewStyle } from 'react-native';\nimport React, { PureComponent } from 'react';\nimport { PlayerEventType } from 'react-native-theoplayer';\nimport { PlayerContext, UiContext } from '../util/PlayerContext';\nimport { PlaySvg } from './svg/PlaySvg';\n\nimport { PauseSvg } from './svg/PauseSvg';\nimport { ReplaySvg } from './svg/ReplaySvg';\n\ninterface PlayButtonProps {\n /**\n * The style overrides for the play/pause button.\n */\n style?: StyleProp<ViewStyle>;\n}\n\ninterface PlayButtonState {\n paused: boolean;\n ended: boolean;\n}\n\n/**\n * The default play/pause button for the `react-native-theoplayer` UI.\n */\nexport class PlayButton extends PureComponent<PlayButtonProps, PlayButtonState> {\n constructor(props: PlayButtonProps) {\n super(props);\n this.state = {\n paused: true,\n ended: false,\n };\n }\n\n componentDidMount() {\n const context = this.context as UiContext;\n context.player.addEventListener(PlayerEventType.PLAY, this.onPlay);\n context.player.addEventListener(PlayerEventType.PLAYING, this.onPlay);\n context.player.addEventListener(PlayerEventType.PAUSE, this.onPause);\n context.player.addEventListener(PlayerEventType.SOURCE_CHANGE, this.onSourceChange);\n context.player.addEventListener(PlayerEventType.ENDED, this.onEnded);\n context.player.addEventListener(PlayerEventType.SEEKING, this.onSeeking);\n this.setState({\n paused: context.player.paused,\n ended: context.player.currentTime === context.player.duration,\n });\n }\n\n componentWillUnmount() {\n const context = this.context as UiContext;\n context.player.removeEventListener(PlayerEventType.PLAY, this.onPlay);\n context.player.removeEventListener(PlayerEventType.PLAYING, this.onPlay);\n context.player.removeEventListener(PlayerEventType.PAUSE, this.onPause);\n context.player.removeEventListener(PlayerEventType.SOURCE_CHANGE, this.onSourceChange);\n context.player.removeEventListener(PlayerEventType.ENDED, this.onEnded);\n context.player.removeEventListener(PlayerEventType.SEEKING, this.onSeeking);\n }\n\n private onPlay = () => {\n const player = (this.context as UiContext).player;\n if (player.seeking) {\n return;\n }\n this.setState({ paused: false, ended: false });\n };\n\n private onPause = () => {\n const player = (this.context as UiContext).player;\n if (player.seeking) {\n return;\n }\n this.setState({ paused: true });\n };\n\n private onSourceChange = () => {\n const player = (this.context as UiContext).player;\n this.setState({ paused: player.paused });\n };\n\n private onEnded = () => {\n this.setState({ ended: true });\n };\n\n private onSeeking = () => {\n this.setState({ ended: false });\n };\n\n private togglePlayPause = () => {\n const player = (this.context as UiContext).player;\n if (player.paused) {\n player.play();\n } else {\n player.pause();\n }\n };\n\n render() {\n const { paused, ended } = this.state;\n const { style } = this.props;\n\n return (\n <ActionButton style={style} touchable={true} svg={ended ? <ReplaySvg /> : paused ? <PlaySvg /> : <PauseSvg />} onPress={this.togglePlayPause} />\n );\n }\n}\n\nPlayButton.contextType = PlayerContext;\n"],"mappings":"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"}
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
2
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
3
|
-
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
4
|
-
import { ActionButton } from './actionbutton/ActionButton';
|
|
5
|
-
import React, { PureComponent } from 'react';
|
|
6
|
-
import { PlayerContext } from '../util/PlayerContext';
|
|
7
|
-
import { ForwardSvg } from './svg/ForwardSvg';
|
|
8
|
-
import { Animated, Easing, StyleSheet, Text, TouchableOpacity, View } from 'react-native';
|
|
9
|
-
import { BackwardSvg } from './svg/BackwardSvg';
|
|
10
|
-
import { PlayerEventType } from 'react-native-theoplayer';
|
|
11
|
-
/**
|
|
12
|
-
* The default skip button for the `react-native-theoplayer` UI.
|
|
13
|
-
*/
|
|
14
|
-
export class SkipButton extends PureComponent {
|
|
15
|
-
constructor(props) {
|
|
16
|
-
super(props);
|
|
17
|
-
_defineProperty(this, "onTimeupdate", event => {
|
|
18
|
-
this.setState({
|
|
19
|
-
enabled: event.seekable.length > 0
|
|
20
|
-
});
|
|
21
|
-
});
|
|
22
|
-
_defineProperty(this, "onPress", () => {
|
|
23
|
-
const {
|
|
24
|
-
skip,
|
|
25
|
-
rotate
|
|
26
|
-
} = this.props;
|
|
27
|
-
const {
|
|
28
|
-
spinValue
|
|
29
|
-
} = this.state;
|
|
30
|
-
const player = this.context.player;
|
|
31
|
-
player.currentTime = player.currentTime + skip * 1e3;
|
|
32
|
-
if (rotate === true) {
|
|
33
|
-
Animated.timing(spinValue, {
|
|
34
|
-
toValue: 0.1,
|
|
35
|
-
duration: 100,
|
|
36
|
-
easing: Easing.linear,
|
|
37
|
-
useNativeDriver: true
|
|
38
|
-
}).start(() => {
|
|
39
|
-
Animated.timing(spinValue, {
|
|
40
|
-
toValue: 0,
|
|
41
|
-
duration: 100,
|
|
42
|
-
easing: Easing.linear,
|
|
43
|
-
useNativeDriver: true
|
|
44
|
-
}).start();
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
this.state = {
|
|
49
|
-
enabled: false,
|
|
50
|
-
spinValue: new Animated.Value(0)
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
componentDidMount() {
|
|
54
|
-
const player = this.context.player;
|
|
55
|
-
player.addEventListener(PlayerEventType.PROGRESS, this.onTimeupdate);
|
|
56
|
-
this.setState({
|
|
57
|
-
enabled: player.seekable.length > 0
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
componentWillUnmount() {
|
|
61
|
-
const player = this.context.player;
|
|
62
|
-
player.removeEventListener(PlayerEventType.PROGRESS, this.onTimeupdate);
|
|
63
|
-
}
|
|
64
|
-
render() {
|
|
65
|
-
const {
|
|
66
|
-
style,
|
|
67
|
-
skip,
|
|
68
|
-
rotate
|
|
69
|
-
} = this.props;
|
|
70
|
-
const {
|
|
71
|
-
enabled,
|
|
72
|
-
spinValue
|
|
73
|
-
} = this.state;
|
|
74
|
-
if (!enabled) {
|
|
75
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null);
|
|
76
|
-
}
|
|
77
|
-
const spin = spinValue.interpolate({
|
|
78
|
-
inputRange: [0, 1],
|
|
79
|
-
outputRange: skip >= 0 ? ['0deg', '360deg'] : ['360deg', '0deg']
|
|
80
|
-
});
|
|
81
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(PlayerContext.Consumer, null, context => /*#__PURE__*/React.createElement(Animated.View, {
|
|
82
|
-
style: [{
|
|
83
|
-
height: '100%',
|
|
84
|
-
aspectRatio: 1
|
|
85
|
-
}, style, {
|
|
86
|
-
transform: [{
|
|
87
|
-
rotate: spin
|
|
88
|
-
}]
|
|
89
|
-
}]
|
|
90
|
-
}, /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
91
|
-
activeOpacity: rotate === true ? 1 : 0.2,
|
|
92
|
-
style: [{
|
|
93
|
-
height: '100%',
|
|
94
|
-
aspectRatio: 1,
|
|
95
|
-
justifyContent: 'center'
|
|
96
|
-
}, style],
|
|
97
|
-
onPress: this.onPress
|
|
98
|
-
}, /*#__PURE__*/React.createElement(ActionButton, {
|
|
99
|
-
touchable: false,
|
|
100
|
-
svg: skip < 0 ? /*#__PURE__*/React.createElement(BackwardSvg, null) : /*#__PURE__*/React.createElement(ForwardSvg, null)
|
|
101
|
-
}), /*#__PURE__*/React.createElement(View, {
|
|
102
|
-
style: [StyleSheet.absoluteFill, {
|
|
103
|
-
justifyContent: 'center'
|
|
104
|
-
}]
|
|
105
|
-
}, /*#__PURE__*/React.createElement(Text, {
|
|
106
|
-
style: [context.style.text, {
|
|
107
|
-
color: context.style.colors.text
|
|
108
|
-
}]
|
|
109
|
-
}, Math.abs(skip)))))));
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
SkipButton.contextType = PlayerContext;
|
|
113
|
-
//# sourceMappingURL=SkipButton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["ActionButton","React","PureComponent","PlayerContext","ForwardSvg","Animated","Easing","StyleSheet","Text","TouchableOpacity","View","BackwardSvg","PlayerEventType","SkipButton","constructor","props","_defineProperty","event","setState","enabled","seekable","length","skip","rotate","spinValue","state","player","context","currentTime","timing","toValue","duration","easing","linear","useNativeDriver","start","Value","componentDidMount","addEventListener","PROGRESS","onTimeupdate","componentWillUnmount","removeEventListener","render","style","createElement","Fragment","spin","interpolate","inputRange","outputRange","Consumer","height","aspectRatio","transform","activeOpacity","justifyContent","onPress","touchable","svg","absoluteFill","text","color","colors","Math","abs","contextType"],"sources":["SkipButton.tsx"],"sourcesContent":["import { ActionButton } from './actionbutton/ActionButton';\nimport React, { PureComponent } from 'react';\nimport { PlayerContext, UiContext } from '../util/PlayerContext';\nimport { ForwardSvg } from './svg/ForwardSvg';\nimport type { StyleProp, ViewStyle } from 'react-native';\nimport { Animated, Easing, StyleSheet, Text, TouchableOpacity, View } from 'react-native';\nimport { BackwardSvg } from './svg/BackwardSvg';\nimport { PlayerEventType, ProgressEvent } from 'react-native-theoplayer';\n\ninterface SkipButtonProps {\n /**\n * The style overrides for the skip button.\n */\n style?: StyleProp<ViewStyle>;\n /**\n * The skip value for the skip button. This can be set to negative to skip backwards.\n */\n skip: number;\n /**\n * Whether the skip button should do a rotation animation when pressed instead of fading.\n */\n rotate?: boolean;\n}\n\ninterface SkipButtonState {\n enabled: boolean;\n spinValue: Animated.Value;\n}\n\n/**\n * The default skip button for the `react-native-theoplayer` UI.\n */\nexport class SkipButton extends PureComponent<SkipButtonProps, SkipButtonState> {\n constructor(props: SkipButtonProps) {\n super(props);\n this.state = { enabled: false, spinValue: new Animated.Value(0) };\n }\n\n componentDidMount() {\n const player = (this.context as UiContext).player;\n player.addEventListener(PlayerEventType.PROGRESS, this.onTimeupdate);\n this.setState({ enabled: player.seekable.length > 0 });\n }\n\n componentWillUnmount() {\n const player = (this.context as UiContext).player;\n player.removeEventListener(PlayerEventType.PROGRESS, this.onTimeupdate);\n }\n\n private readonly onTimeupdate = (event: ProgressEvent) => {\n this.setState({ enabled: event.seekable.length > 0 });\n };\n\n private readonly onPress = () => {\n const { skip, rotate } = this.props;\n const { spinValue } = this.state;\n const player = (this.context as UiContext).player;\n player.currentTime = player.currentTime + skip * 1e3;\n\n if (rotate === true) {\n Animated.timing(spinValue, {\n toValue: 0.1,\n duration: 100,\n easing: Easing.linear,\n useNativeDriver: true,\n }).start(() => {\n Animated.timing(spinValue, {\n toValue: 0,\n duration: 100,\n easing: Easing.linear,\n useNativeDriver: true,\n }).start();\n });\n }\n };\n\n render() {\n const { style, skip, rotate } = this.props;\n const { enabled, spinValue } = this.state;\n\n if (!enabled) {\n return <></>;\n }\n\n const spin = spinValue.interpolate({\n inputRange: [0, 1],\n outputRange: skip >= 0 ? ['0deg', '360deg'] : ['360deg', '0deg'],\n });\n\n return (\n <>\n <PlayerContext.Consumer>\n {(context: UiContext) => (\n <Animated.View style={[{ height: '100%', aspectRatio: 1 }, style, { transform: [{ rotate: spin }] }]}>\n <TouchableOpacity\n activeOpacity={rotate === true ? 1 : 0.2}\n style={[{ height: '100%', aspectRatio: 1, justifyContent: 'center' }, style]}\n onPress={this.onPress}>\n <ActionButton touchable={false} svg={skip < 0 ? <BackwardSvg /> : <ForwardSvg />} />\n <View style={[StyleSheet.absoluteFill, { justifyContent: 'center' }]}>\n <Text style={[context.style.text, { color: context.style.colors.text }]}>{Math.abs(skip)}</Text>\n </View>\n </TouchableOpacity>\n </Animated.View>\n )}\n </PlayerContext.Consumer>\n </>\n );\n }\n}\n\nSkipButton.contextType = PlayerContext;\n"],"mappings":"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"}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { Image, Platform, TouchableOpacity, View } from 'react-native';
|
|
2
|
-
import React, { useContext, useState } from 'react';
|
|
3
|
-
import { SvgContext } from '../svg/SvgUtils';
|
|
4
|
-
import { PlayerContext } from '../../util/PlayerContext';
|
|
5
|
-
/**
|
|
6
|
-
* The default style applied to the ActionButton
|
|
7
|
-
*/
|
|
8
|
-
export const DEFAULT_ACTION_BUTTON_STYLE = {
|
|
9
|
-
height: '100%',
|
|
10
|
-
aspectRatio: 1,
|
|
11
|
-
padding: 5
|
|
12
|
-
};
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* The default button component that renders an image/svg source for the `react-native-theoplayer` UI.
|
|
16
|
-
*/
|
|
17
|
-
export const ActionButton = props => {
|
|
18
|
-
const {
|
|
19
|
-
icon,
|
|
20
|
-
style,
|
|
21
|
-
touchable,
|
|
22
|
-
svg,
|
|
23
|
-
onPress,
|
|
24
|
-
highlighted
|
|
25
|
-
} = props;
|
|
26
|
-
const [focused, setFocused] = useState(false);
|
|
27
|
-
const context = useContext(PlayerContext);
|
|
28
|
-
const shouldChangeTintColor = highlighted || focused && Platform.isTV;
|
|
29
|
-
if (!touchable) {
|
|
30
|
-
return /*#__PURE__*/React.createElement(View, {
|
|
31
|
-
style: [DEFAULT_ACTION_BUTTON_STYLE, style]
|
|
32
|
-
}, svg);
|
|
33
|
-
}
|
|
34
|
-
const onTouch = () => {
|
|
35
|
-
if (context.ui.buttonsEnabled_) {
|
|
36
|
-
onPress === null || onPress === void 0 ? void 0 : onPress();
|
|
37
|
-
}
|
|
38
|
-
context.ui.onUserAction_();
|
|
39
|
-
};
|
|
40
|
-
return /*#__PURE__*/React.createElement(PlayerContext.Consumer, null, context => /*#__PURE__*/React.createElement(TouchableOpacity, {
|
|
41
|
-
style: [DEFAULT_ACTION_BUTTON_STYLE, style],
|
|
42
|
-
tvParallaxProperties: {
|
|
43
|
-
enabled: false
|
|
44
|
-
},
|
|
45
|
-
onPress: onTouch,
|
|
46
|
-
onFocus: () => {
|
|
47
|
-
context.ui.onUserAction_();
|
|
48
|
-
setFocused(true);
|
|
49
|
-
},
|
|
50
|
-
onBlur: () => {
|
|
51
|
-
setFocused(false);
|
|
52
|
-
}
|
|
53
|
-
}, svg && /*#__PURE__*/React.createElement(SvgContext.Provider, {
|
|
54
|
-
value: {
|
|
55
|
-
fill: shouldChangeTintColor ? context.style.colors.iconSelected : context.style.colors.icon,
|
|
56
|
-
height: '100%',
|
|
57
|
-
width: '100%'
|
|
58
|
-
}
|
|
59
|
-
}, /*#__PURE__*/React.createElement(View, null, svg)), svg === undefined && icon && /*#__PURE__*/React.createElement(Image, {
|
|
60
|
-
style: [{
|
|
61
|
-
height: '100%',
|
|
62
|
-
width: '100%'
|
|
63
|
-
}, {
|
|
64
|
-
tintColor: shouldChangeTintColor ? context.style.colors.iconSelected : context.style.colors.icon
|
|
65
|
-
}],
|
|
66
|
-
source: icon
|
|
67
|
-
})));
|
|
68
|
-
};
|
|
69
|
-
ActionButton.defaultProps = {
|
|
70
|
-
touchable: true
|
|
71
|
-
};
|
|
72
|
-
//# sourceMappingURL=ActionButton.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["Image","Platform","TouchableOpacity","View","React","useContext","useState","SvgContext","PlayerContext","DEFAULT_ACTION_BUTTON_STYLE","height","aspectRatio","padding","ActionButton","props","icon","style","touchable","svg","onPress","highlighted","focused","setFocused","context","shouldChangeTintColor","isTV","createElement","onTouch","ui","buttonsEnabled_","onUserAction_","Consumer","tvParallaxProperties","enabled","onFocus","onBlur","Provider","value","fill","colors","iconSelected","width","undefined","tintColor","source","defaultProps"],"sources":["ActionButton.tsx"],"sourcesContent":["import { Image, ImageSourcePropType, Platform, StyleProp, TouchableOpacity, View, ViewStyle } from 'react-native';\nimport React, { ReactNode, useContext, useState } from 'react';\nimport { SvgContext } from '../svg/SvgUtils';\nimport { PlayerContext, UiContext } from '../../util/PlayerContext';\n\nexport interface ActionButtonProps {\n /**\n * The image to put in the button.\n */\n icon?: ImageSourcePropType;\n /**\n * The SVG component to put in the button. Takes priority over images.\n */\n svg?: ReactNode;\n /**\n * Whether the button should be touchable. This is `true` by default.\n */\n touchable: boolean;\n /**\n * The callback when the button is pressed.\n */\n onPress?: () => void;\n /**\n * The styling overrides.\n */\n style?: StyleProp<ViewStyle>;\n /**\n * Whether the button should be highlighted with `ColorTheme.iconSelected` color.\n */\n highlighted?: boolean;\n}\n\n/**\n * The default style applied to the ActionButton\n */\nexport const DEFAULT_ACTION_BUTTON_STYLE: ViewStyle = {\n height: '100%',\n aspectRatio: 1,\n padding: 5,\n};\n\n/**\n * The default button component that renders an image/svg source for the `react-native-theoplayer` UI.\n */\nexport const ActionButton = (props: ActionButtonProps) => {\n const { icon, style, touchable, svg, onPress, highlighted } = props;\n const [focused, setFocused] = useState<boolean>(false);\n const context = useContext(PlayerContext);\n\n const shouldChangeTintColor = highlighted || (focused && Platform.isTV);\n\n if (!touchable) {\n return <View style={[DEFAULT_ACTION_BUTTON_STYLE, style]}>{svg}</View>;\n }\n\n const onTouch = () => {\n if (context.ui.buttonsEnabled_) {\n onPress?.();\n }\n context.ui.onUserAction_();\n };\n\n return (\n <PlayerContext.Consumer>\n {(context: UiContext) => (\n <TouchableOpacity\n style={[DEFAULT_ACTION_BUTTON_STYLE, style]}\n tvParallaxProperties={{ enabled: false }}\n onPress={onTouch}\n onFocus={() => {\n context.ui.onUserAction_();\n setFocused(true);\n }}\n onBlur={() => {\n setFocused(false);\n }}>\n {/* Give priority to SVG over image sources.*/}\n {svg && (\n <SvgContext.Provider\n value={{\n fill: shouldChangeTintColor ? context.style.colors.iconSelected : context.style.colors.icon,\n height: '100%',\n width: '100%',\n }}>\n <View>{svg}</View>\n </SvgContext.Provider>\n )}\n {svg === undefined && icon && (\n <Image\n style={[\n { height: '100%', width: '100%' },\n { tintColor: shouldChangeTintColor ? context.style.colors.iconSelected : context.style.colors.icon },\n ]}\n source={icon}\n />\n )}\n </TouchableOpacity>\n )}\n </PlayerContext.Consumer>\n );\n};\n\nActionButton.defaultProps = {\n touchable: true,\n};\n"],"mappings":"AAAA,SAASA,KAAK,EAAuBC,QAAQ,EAAaC,gBAAgB,EAAEC,IAAI,QAAmB,cAAc;AACjH,OAAOC,KAAK,IAAeC,UAAU,EAAEC,QAAQ,QAAQ,OAAO;AAC9D,SAASC,UAAU,QAAQ,iBAAiB;AAC5C,SAASC,aAAa,QAAmB,0BAA0B;AA6BnE;AACA;AACA;AACA,OAAO,MAAMC,2BAAsC,GAAG;EACpDC,MAAM,EAAE,MAAM;EACdC,WAAW,EAAE,CAAC;EACdC,OAAO,EAAE;AACX,CAAC;;AAED;AACA;AACA;AACA,OAAO,MAAMC,YAAY,GAAIC,KAAwB,IAAK;EACxD,MAAM;IAAEC,IAAI;IAAEC,KAAK;IAAEC,SAAS;IAAEC,GAAG;IAAEC,OAAO;IAAEC;EAAY,CAAC,GAAGN,KAAK;EACnE,MAAM,CAACO,OAAO,EAAEC,UAAU,CAAC,GAAGhB,QAAQ,CAAU,KAAK,CAAC;EACtD,MAAMiB,OAAO,GAAGlB,UAAU,CAACG,aAAa,CAAC;EAEzC,MAAMgB,qBAAqB,GAAGJ,WAAW,IAAKC,OAAO,IAAIpB,QAAQ,CAACwB,IAAK;EAEvE,IAAI,CAACR,SAAS,EAAE;IACd,oBAAOb,KAAA,CAAAsB,aAAA,CAACvB,IAAI;MAACa,KAAK,EAAE,CAACP,2BAA2B,EAAEO,KAAK;IAAE,GAAEE,GAAG,CAAQ;EACxE;EAEA,MAAMS,OAAO,GAAGA,CAAA,KAAM;IACpB,IAAIJ,OAAO,CAACK,EAAE,CAACC,eAAe,EAAE;MAC9BV,OAAO,aAAPA,OAAO,uBAAPA,OAAO,EAAI;IACb;IACAI,OAAO,CAACK,EAAE,CAACE,aAAa,EAAE;EAC5B,CAAC;EAED,oBACE1B,KAAA,CAAAsB,aAAA,CAAClB,aAAa,CAACuB,QAAQ,QACnBR,OAAkB,iBAClBnB,KAAA,CAAAsB,aAAA,CAACxB,gBAAgB;IACfc,KAAK,EAAE,CAACP,2BAA2B,EAAEO,KAAK,CAAE;IAC5CgB,oBAAoB,EAAE;MAAEC,OAAO,EAAE;IAAM,CAAE;IACzCd,OAAO,EAAEQ,OAAQ;IACjBO,OAAO,EAAEA,CAAA,KAAM;MACbX,OAAO,CAACK,EAAE,CAACE,aAAa,EAAE;MAC1BR,UAAU,CAAC,IAAI,CAAC;IAClB,CAAE;IACFa,MAAM,EAAEA,CAAA,KAAM;MACZb,UAAU,CAAC,KAAK,CAAC;IACnB;EAAE,GAEDJ,GAAG,iBACFd,KAAA,CAAAsB,aAAA,CAACnB,UAAU,CAAC6B,QAAQ;IAClBC,KAAK,EAAE;MACLC,IAAI,EAAEd,qBAAqB,GAAGD,OAAO,CAACP,KAAK,CAACuB,MAAM,CAACC,YAAY,GAAGjB,OAAO,CAACP,KAAK,CAACuB,MAAM,CAACxB,IAAI;MAC3FL,MAAM,EAAE,MAAM;MACd+B,KAAK,EAAE;IACT;EAAE,gBACFrC,KAAA,CAAAsB,aAAA,CAACvB,IAAI,QAAEe,GAAG,CAAQ,CAErB,EACAA,GAAG,KAAKwB,SAAS,IAAI3B,IAAI,iBACxBX,KAAA,CAAAsB,aAAA,CAAC1B,KAAK;IACJgB,KAAK,EAAE,CACL;MAAEN,MAAM,EAAE,MAAM;MAAE+B,KAAK,EAAE;IAAO,CAAC,EACjC;MAAEE,SAAS,EAAEnB,qBAAqB,GAAGD,OAAO,CAACP,KAAK,CAACuB,MAAM,CAACC,YAAY,GAAGjB,OAAO,CAACP,KAAK,CAACuB,MAAM,CAACxB;IAAK,CAAC,CACpG;IACF6B,MAAM,EAAE7B;EAAK,EAEhB,CAEJ,CACsB;AAE7B,CAAC;AAEDF,YAAY,CAACgC,YAAY,GAAG;EAC1B5B,SAAS,EAAE;AACb,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export * from './actionbutton/ActionButton';
|
|
2
|
-
export * from './svg/barrel';
|
|
3
|
-
export * from './AirplayButton';
|
|
4
|
-
export * from './ChromecastButton';
|
|
5
|
-
export * from './FullscreenButton';
|
|
6
|
-
export * from './MuteButton';
|
|
7
|
-
export * from './PipButton';
|
|
8
|
-
export * from './PlayButton';
|
|
9
|
-
export * from './SkipButton';
|
|
10
|
-
//# sourceMappingURL=barrel.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["barrel.ts"],"sourcesContent":["export * from './actionbutton/ActionButton';\nexport * from './svg/barrel';\nexport * from './AirplayButton';\nexport * from './ChromecastButton';\nexport * from './FullscreenButton';\nexport * from './MuteButton';\nexport * from './PipButton';\nexport * from './PlayButton';\nexport * from './SkipButton';\n"],"mappings":"AAAA,cAAc,6BAA6B;AAC3C,cAAc,cAAc;AAC5B,cAAc,iBAAiB;AAC/B,cAAc,oBAAoB;AAClC,cAAc,oBAAoB;AAClC,cAAc,cAAc;AAC5B,cAAc,aAAa;AAC3B,cAAc,cAAc;AAC5B,cAAc,cAAc"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
import Svg, { Path } from 'react-native-svg';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { SvgContext } from './SvgUtils';
|
|
5
|
-
export const AirplaySvg = props => {
|
|
6
|
-
return /*#__PURE__*/React.createElement(SvgContext.Consumer, null, context => /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Svg, _extends({
|
|
7
|
-
viewBox: '0 96 960 960'
|
|
8
|
-
}, context, props), /*#__PURE__*/React.createElement(Path, {
|
|
9
|
-
d: "m273 936 207-206 206 206H273Zm-133-80q-24 0-42-18t-18-42V276q0-24 18-42t42-18h680q24 0 42 18t18 42v520q0 24-18 42t-42 18H631v-60h189V276H140v520h189v60H140Zm340-290Z"
|
|
10
|
-
}))));
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=AirplaySvg.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["Svg","Path","React","SvgContext","AirplaySvg","props","createElement","Consumer","context","Fragment","_extends","viewBox","d"],"sources":["AirplaySvg.tsx"],"sourcesContent":["import type { SvgProps } from 'react-native-svg';\nimport Svg, { Path } from 'react-native-svg';\nimport React from 'react';\nimport { SvgContext } from './SvgUtils';\n\nexport const AirplaySvg = (props: SvgProps) => {\n return (\n <SvgContext.Consumer>\n {(context) => (\n <>\n <Svg viewBox={'0 96 960 960'} {...context} {...props}>\n <Path d=\"m273 936 207-206 206 206H273Zm-133-80q-24 0-42-18t-18-42V276q0-24 18-42t42-18h680q24 0 42 18t18 42v520q0 24-18 42t-42 18H631v-60h189V276H140v520h189v60H140Zm340-290Z\" />\n </Svg>\n </>\n )}\n </SvgContext.Consumer>\n );\n};\n"],"mappings":";AACA,OAAOA,GAAG,IAAIC,IAAI,QAAQ,kBAAkB;AAC5C,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,QAAQ,YAAY;AAEvC,OAAO,MAAMC,UAAU,GAAIC,KAAe,IAAK;EAC7C,oBACEH,KAAA,CAAAI,aAAA,CAACH,UAAU,CAACI,QAAQ,QAChBC,OAAO,iBACPN,KAAA,CAAAI,aAAA,CAAAJ,KAAA,CAAAO,QAAA,qBACEP,KAAA,CAAAI,aAAA,CAACN,GAAG,EAAAU,QAAA;IAACC,OAAO,EAAE;EAAe,GAAKH,OAAO,EAAMH,KAAK,gBAClDH,KAAA,CAAAI,aAAA,CAACL,IAAI;IAACW,CAAC,EAAC;EAAuK,EAAG,CAC9K,CAET,CACmB;AAE1B,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
import Svg, { Path } from 'react-native-svg';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { SvgContext } from './SvgUtils';
|
|
5
|
-
export const ArrowForwardSvg = props => {
|
|
6
|
-
return /*#__PURE__*/React.createElement(SvgContext.Consumer, null, context => /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Svg, _extends({
|
|
7
|
-
viewBox: '0 0 24 24'
|
|
8
|
-
}, context, props), /*#__PURE__*/React.createElement(Path, {
|
|
9
|
-
d: "M6.925 21.325q-.45-.45-.45-1.113 0-.662.45-1.112l7.1-7.1L6.9 4.875q-.45-.45-.462-1.1-.013-.65.462-1.125.475-.45 1.125-.45t1.1.45l8.425 8.425q.2.2.287.437.088.238.088.488t-.088.488q-.087.237-.287.437L9.125 21.35q-.45.45-1.087.45-.638 0-1.113-.475Z"
|
|
10
|
-
}))));
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=ArrowForwardSvg.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["Svg","Path","React","SvgContext","ArrowForwardSvg","props","createElement","Consumer","context","Fragment","_extends","viewBox","d"],"sources":["ArrowForwardSvg.tsx"],"sourcesContent":["import type { SvgProps } from 'react-native-svg';\nimport Svg, { Path } from 'react-native-svg';\nimport React from 'react';\nimport { SvgContext } from './SvgUtils';\n\nexport const ArrowForwardSvg = (props: SvgProps) => {\n return (\n <SvgContext.Consumer>\n {(context) => (\n <>\n <Svg viewBox={'0 0 24 24'} {...context} {...props}>\n <Path d=\"M6.925 21.325q-.45-.45-.45-1.113 0-.662.45-1.112l7.1-7.1L6.9 4.875q-.45-.45-.462-1.1-.013-.65.462-1.125.475-.45 1.125-.45t1.1.45l8.425 8.425q.2.2.287.437.088.238.088.488t-.088.488q-.087.237-.287.437L9.125 21.35q-.45.45-1.087.45-.638 0-1.113-.475Z\" />\n </Svg>\n </>\n )}\n </SvgContext.Consumer>\n );\n};\n"],"mappings":";AACA,OAAOA,GAAG,IAAIC,IAAI,QAAQ,kBAAkB;AAC5C,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,QAAQ,YAAY;AAEvC,OAAO,MAAMC,eAAe,GAAIC,KAAe,IAAK;EAClD,oBACEH,KAAA,CAAAI,aAAA,CAACH,UAAU,CAACI,QAAQ,QAChBC,OAAO,iBACPN,KAAA,CAAAI,aAAA,CAAAJ,KAAA,CAAAO,QAAA,qBACEP,KAAA,CAAAI,aAAA,CAACN,GAAG,EAAAU,QAAA;IAACC,OAAO,EAAE;EAAY,GAAKH,OAAO,EAAMH,KAAK,gBAC/CH,KAAA,CAAAI,aAAA,CAACL,IAAI;IAACW,CAAC,EAAC;EAAwP,EAAG,CAC/P,CAET,CACmB;AAE1B,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
import Svg, { Path } from 'react-native-svg';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { SvgContext } from './SvgUtils';
|
|
5
|
-
export const BackSvg = props => {
|
|
6
|
-
return /*#__PURE__*/React.createElement(SvgContext.Consumer, null, context => /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Svg, _extends({
|
|
7
|
-
viewBox: '0 0 24 24'
|
|
8
|
-
}, context, props), /*#__PURE__*/React.createElement(Path, {
|
|
9
|
-
d: "m10.525 19.275-6.375-6.35q-.175-.2-.262-.437Q3.8 12.25 3.8 12t.088-.488q.087-.237.262-.437l6.375-6.35q.375-.375.925-.388.55-.012.95.388.375.4.388.937.012.538-.363.938l-4.1 4.075H18.35q.55 0 .938.387.387.388.387.938 0 .55-.387.938-.388.387-.938.387H8.325l4.1 4.075q.35.375.363.925.012.55-.363.95-.4.4-.95.4-.55 0-.95-.4Z"
|
|
10
|
-
}))));
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=BackSvg.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["Svg","Path","React","SvgContext","BackSvg","props","createElement","Consumer","context","Fragment","_extends","viewBox","d"],"sources":["BackSvg.tsx"],"sourcesContent":["import type { SvgProps } from 'react-native-svg';\nimport Svg, { Path } from 'react-native-svg';\nimport React from 'react';\nimport { SvgContext } from './SvgUtils';\n\nexport const BackSvg = (props: SvgProps) => {\n return (\n <SvgContext.Consumer>\n {(context) => (\n <>\n <Svg viewBox={'0 0 24 24'} {...context} {...props}>\n <Path d=\"m10.525 19.275-6.375-6.35q-.175-.2-.262-.437Q3.8 12.25 3.8 12t.088-.488q.087-.237.262-.437l6.375-6.35q.375-.375.925-.388.55-.012.95.388.375.4.388.937.012.538-.363.938l-4.1 4.075H18.35q.55 0 .938.387.387.388.387.938 0 .55-.387.938-.388.387-.938.387H8.325l4.1 4.075q.35.375.363.925.012.55-.363.95-.4.4-.95.4-.55 0-.95-.4Z\" />\n </Svg>\n </>\n )}\n </SvgContext.Consumer>\n );\n};\n"],"mappings":";AACA,OAAOA,GAAG,IAAIC,IAAI,QAAQ,kBAAkB;AAC5C,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,QAAQ,YAAY;AAEvC,OAAO,MAAMC,OAAO,GAAIC,KAAe,IAAK;EAC1C,oBACEH,KAAA,CAAAI,aAAA,CAACH,UAAU,CAACI,QAAQ,QAChBC,OAAO,iBACPN,KAAA,CAAAI,aAAA,CAAAJ,KAAA,CAAAO,QAAA,qBACEP,KAAA,CAAAI,aAAA,CAACN,GAAG,EAAAU,QAAA;IAACC,OAAO,EAAE;EAAY,GAAKH,OAAO,EAAMH,KAAK,gBAC/CH,KAAA,CAAAI,aAAA,CAACL,IAAI;IAACW,CAAC,EAAC;EAAiU,EAAG,CACxU,CAET,CACmB;AAE1B,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
import Svg, { Path } from 'react-native-svg';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { SvgContext } from './SvgUtils';
|
|
5
|
-
export const BackwardSvg = props => {
|
|
6
|
-
return /*#__PURE__*/React.createElement(SvgContext.Consumer, null, context => /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Svg, _extends({
|
|
7
|
-
viewBox: '0 96 960 960'
|
|
8
|
-
}, context, props), /*#__PURE__*/React.createElement(Path, {
|
|
9
|
-
d: "M480 983.174q-144.567 0-248.316-95.478T115.5 651.022q-1.478-13.674 8.098-23.87 9.576-10.195 24.59-10.195 13.334 0 23.149 9.576 9.815 9.576 12.533 24.489 12.195 112.608 96.235 188.195Q364.144 914.804 480 914.804q124.104 0 210.976-86.921 86.872-86.922 86.872-210.926 0-124.283-84.402-211.066-84.403-86.782-208.685-86.782h-22l49.369 49.369q9.718 9.718 9.598 22.196-.119 12.478-9.682 21.717-9.309 9.479-21.788 9.598-12.478.12-22.041-9.359L362.5 306.674q-5.478-5.239-7.837-11.076-2.359-5.837-2.359-12.674t2.37-12.662q2.369-5.825 7.826-11.327l106.478-106.479q8.718-8.478 21.315-8.597 12.598-.12 22.077 8.597 8.478 9.416 8.358 22.045-.119 12.629-8.598 20.869l-55.369 55.369h23q76.326 0 143.076 28.478 66.75 28.479 116.587 78.316t78.315 116.437q28.479 66.6 28.479 142.891T817.79 759.822q-28.427 66.67-78.333 116.58-49.906 49.911-116.569 78.342-66.662 28.43-142.888 28.43Z"
|
|
10
|
-
}))));
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=BackwardSvg.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["Svg","Path","React","SvgContext","BackwardSvg","props","createElement","Consumer","context","Fragment","_extends","viewBox","d"],"sources":["BackwardSvg.tsx"],"sourcesContent":["import type { SvgProps } from 'react-native-svg';\nimport Svg, { Path } from 'react-native-svg';\nimport React from 'react';\nimport { SvgContext } from './SvgUtils';\n\nexport const BackwardSvg = (props: SvgProps) => {\n return (\n <SvgContext.Consumer>\n {(context) => (\n <>\n <Svg viewBox={'0 96 960 960'} {...context} {...props}>\n <Path d=\"M480 983.174q-144.567 0-248.316-95.478T115.5 651.022q-1.478-13.674 8.098-23.87 9.576-10.195 24.59-10.195 13.334 0 23.149 9.576 9.815 9.576 12.533 24.489 12.195 112.608 96.235 188.195Q364.144 914.804 480 914.804q124.104 0 210.976-86.921 86.872-86.922 86.872-210.926 0-124.283-84.402-211.066-84.403-86.782-208.685-86.782h-22l49.369 49.369q9.718 9.718 9.598 22.196-.119 12.478-9.682 21.717-9.309 9.479-21.788 9.598-12.478.12-22.041-9.359L362.5 306.674q-5.478-5.239-7.837-11.076-2.359-5.837-2.359-12.674t2.37-12.662q2.369-5.825 7.826-11.327l106.478-106.479q8.718-8.478 21.315-8.597 12.598-.12 22.077 8.597 8.478 9.416 8.358 22.045-.119 12.629-8.598 20.869l-55.369 55.369h23q76.326 0 143.076 28.478 66.75 28.479 116.587 78.316t78.315 116.437q28.479 66.6 28.479 142.891T817.79 759.822q-28.427 66.67-78.333 116.58-49.906 49.911-116.569 78.342-66.662 28.43-142.888 28.43Z\" />\n </Svg>\n </>\n )}\n </SvgContext.Consumer>\n );\n};\n"],"mappings":";AACA,OAAOA,GAAG,IAAIC,IAAI,QAAQ,kBAAkB;AAC5C,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,QAAQ,YAAY;AAEvC,OAAO,MAAMC,WAAW,GAAIC,KAAe,IAAK;EAC9C,oBACEH,KAAA,CAAAI,aAAA,CAACH,UAAU,CAACI,QAAQ,QAChBC,OAAO,iBACPN,KAAA,CAAAI,aAAA,CAAAJ,KAAA,CAAAO,QAAA,qBACEP,KAAA,CAAAI,aAAA,CAACN,GAAG,EAAAU,QAAA;IAACC,OAAO,EAAE;EAAe,GAAKH,OAAO,EAAMH,KAAK,gBAClDH,KAAA,CAAAI,aAAA,CAACL,IAAI;IAACW,CAAC,EAAC;EAAi2B,EAAG,CACx2B,CAET,CACmB;AAE1B,CAAC"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
2
|
-
import Svg, { Path } from 'react-native-svg';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
import { SvgContext } from './SvgUtils';
|
|
5
|
-
export const ChromecastSvg = props => {
|
|
6
|
-
return /*#__PURE__*/React.createElement(SvgContext.Consumer, null, context => /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Svg, _extends({
|
|
7
|
-
viewBox: '0 96 960 960'
|
|
8
|
-
}, context, props), /*#__PURE__*/React.createElement(Path, {
|
|
9
|
-
d: "M86.956 910.131h65.699q9.171 0 14.801-6.413 5.631-6.413 4.076-14.067-6.099-32.801-29.132-57.242-23.033-24.442-55.051-30.941-7.654-1.555-14.067 4.076-6.413 5.63-6.413 15.164v69.336q0 8.487 5.8 14.287 5.8 5.8 14.287 5.8Zm179.365 0q14.288 0 23.635-9.565 9.348-9.565 7.348-23.261-10.944-78.191-65.681-134.428-54.737-56.237-131.928-67.181-13.696-2-23.26 7.415-9.566 9.416-9.566 23.411 0 12.13 9.311 23.059 9.312 10.929 24.08 13.332 49.566 9.566 84.913 46.696 35.348 37.131 44.914 87.131 2.403 14.768 12.595 24.08 10.192 9.311 23.639 9.311Zm127.147 0q13.904 0 23.261-9.563 9.358-9.563 8.358-23.444-5.819-64.393-33.105-122.128-27.286-57.735-70.589-101.784-43.303-44.049-100.088-71.892-56.784-27.842-121.43-33.407-13.88-1-23.443 8.53-9.563 9.531-9.563 23.377 0 13.615 9.072 23.615 9.072 10 23.62 12.19 103.526 11.636 174.956 85.018 71.43 73.382 82.858 176.796 1.801 14.298 11.995 23.495 10.195 9.197 24.098 9.197ZM123.477 241.304h692.436q31.74 0 55.762 24.021 24.021 24.022 24.021 55.762v509.826q0 31.507-24.021 55.362-24.022 23.856-55.762 23.856H525.696q-16.706 0-28.158-11.501-11.451-11.502-11.451-28.283 0-16.782 11.451-28.108 11.452-11.326 28.158-11.326h290.217V321.087H146.087v146q-6.783 6.348-16.595 11.674-9.813 5.326-23.514 5.326-16.457 0-27.783-11.452-11.326-11.451-11.326-28.158v-146q0-21.834 16.838-39.504 16.837-17.669 39.77-17.669Zm317.914 363Z"
|
|
10
|
-
}))));
|
|
11
|
-
};
|
|
12
|
-
//# sourceMappingURL=ChromecastSvg.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["Svg","Path","React","SvgContext","ChromecastSvg","props","createElement","Consumer","context","Fragment","_extends","viewBox","d"],"sources":["ChromecastSvg.tsx"],"sourcesContent":["import type { SvgProps } from 'react-native-svg';\nimport Svg, { Path } from 'react-native-svg';\nimport React from 'react';\nimport { SvgContext } from './SvgUtils';\n\nexport const ChromecastSvg = (props: SvgProps) => {\n return (\n <SvgContext.Consumer>\n {(context) => (\n <>\n <Svg viewBox={'0 96 960 960'} {...context} {...props}>\n <Path d=\"M86.956 910.131h65.699q9.171 0 14.801-6.413 5.631-6.413 4.076-14.067-6.099-32.801-29.132-57.242-23.033-24.442-55.051-30.941-7.654-1.555-14.067 4.076-6.413 5.63-6.413 15.164v69.336q0 8.487 5.8 14.287 5.8 5.8 14.287 5.8Zm179.365 0q14.288 0 23.635-9.565 9.348-9.565 7.348-23.261-10.944-78.191-65.681-134.428-54.737-56.237-131.928-67.181-13.696-2-23.26 7.415-9.566 9.416-9.566 23.411 0 12.13 9.311 23.059 9.312 10.929 24.08 13.332 49.566 9.566 84.913 46.696 35.348 37.131 44.914 87.131 2.403 14.768 12.595 24.08 10.192 9.311 23.639 9.311Zm127.147 0q13.904 0 23.261-9.563 9.358-9.563 8.358-23.444-5.819-64.393-33.105-122.128-27.286-57.735-70.589-101.784-43.303-44.049-100.088-71.892-56.784-27.842-121.43-33.407-13.88-1-23.443 8.53-9.563 9.531-9.563 23.377 0 13.615 9.072 23.615 9.072 10 23.62 12.19 103.526 11.636 174.956 85.018 71.43 73.382 82.858 176.796 1.801 14.298 11.995 23.495 10.195 9.197 24.098 9.197ZM123.477 241.304h692.436q31.74 0 55.762 24.021 24.021 24.022 24.021 55.762v509.826q0 31.507-24.021 55.362-24.022 23.856-55.762 23.856H525.696q-16.706 0-28.158-11.501-11.451-11.502-11.451-28.283 0-16.782 11.451-28.108 11.452-11.326 28.158-11.326h290.217V321.087H146.087v146q-6.783 6.348-16.595 11.674-9.813 5.326-23.514 5.326-16.457 0-27.783-11.452-11.326-11.451-11.326-28.158v-146q0-21.834 16.838-39.504 16.837-17.669 39.77-17.669Zm317.914 363Z\" />\n </Svg>\n </>\n )}\n </SvgContext.Consumer>\n );\n};\n"],"mappings":";AACA,OAAOA,GAAG,IAAIC,IAAI,QAAQ,kBAAkB;AAC5C,OAAOC,KAAK,MAAM,OAAO;AACzB,SAASC,UAAU,QAAQ,YAAY;AAEvC,OAAO,MAAMC,aAAa,GAAIC,KAAe,IAAK;EAChD,oBACEH,KAAA,CAAAI,aAAA,CAACH,UAAU,CAACI,QAAQ,QAChBC,OAAO,iBACPN,KAAA,CAAAI,aAAA,CAAAJ,KAAA,CAAAO,QAAA,qBACEP,KAAA,CAAAI,aAAA,CAACN,GAAG,EAAAU,QAAA;IAACC,OAAO,EAAE;EAAe,GAAKH,OAAO,EAAMH,KAAK,gBAClDH,KAAA,CAAAI,aAAA,CAACL,IAAI;IAACW,CAAC,EAAC;EAAu0C,EAAG,CAC90C,CAET,CACmB;AAE1B,CAAC"}
|