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
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,25 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
|
6
6
|
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [2.9.0] - 23-06-16
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- Moved React Native UI to separate `@theoplayer/react-native-ui` package.
|
|
13
|
+
|
|
14
|
+
### Removed
|
|
15
|
+
|
|
16
|
+
- Removed `react-native-theoplayer` dependencies on packages `@react-native-community/slider`, `react-native-google-cast`, `react-native-svg`, `react-native-svg-web`, `react-native-url-polyfill` and `url-polyfill`.
|
|
17
|
+
|
|
18
|
+
### Added
|
|
19
|
+
|
|
20
|
+
- Added an overview of the available React Native connectors.
|
|
21
|
+
|
|
22
|
+
### Fixed
|
|
23
|
+
|
|
24
|
+
- Fixed an issue on Android where the background media service would crash the app in case it was started from the background.
|
|
25
|
+
- Fixed an issue on iOS where the delayed contentId extraction resulted in an incorrect value being passed to the license request setup.
|
|
26
|
+
|
|
8
27
|
## [2.8.0] - 23-06-01
|
|
9
28
|
|
|
10
29
|
### Added
|
|
@@ -230,13 +249,30 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
|
230
249
|
- Fixed missing `volumechange` events on mobile platforms.
|
|
231
250
|
- Fixed an issue on iOS where after toggling the mute state during an ad playout, succeeding mute toggles had no effect.
|
|
232
251
|
|
|
233
|
-
## [1.8.
|
|
252
|
+
## [1.8.4] - 23-04-27
|
|
253
|
+
|
|
254
|
+
### Fixed
|
|
255
|
+
|
|
256
|
+
- Fixed an issue on Android where the `pause` event was not dispatched during play-out of an ad.
|
|
257
|
+
|
|
258
|
+
### Added
|
|
259
|
+
|
|
260
|
+
- Added a `videoAspectRatio` property on the `THEOplayerView` for iOS and Android.
|
|
261
|
+
- Added a `PlayerEventTypes.WAITING` event that is dispatched when play-back stops due to lack of media data.
|
|
262
|
+
|
|
263
|
+
## [1.8.3] - 23-04-06
|
|
264
|
+
|
|
265
|
+
### Fixed
|
|
266
|
+
|
|
267
|
+
- Fixed an issue on Android where building the SDK would fail when depending on player SDK v5.x.
|
|
268
|
+
|
|
269
|
+
## [1.8.2] - 23-04-05
|
|
234
270
|
|
|
235
271
|
### Fixed
|
|
236
272
|
|
|
237
273
|
- Fixed an issue on Android where building the SDK would fail when depending on player SDK v4.12.0.
|
|
238
274
|
|
|
239
|
-
## [1.8.1]
|
|
275
|
+
## [1.8.1] - 23-02-09
|
|
240
276
|
|
|
241
277
|
### Changed
|
|
242
278
|
|
|
@@ -249,7 +285,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
|
249
285
|
- Fixed an issue on iOS where the player was not destroyed correctly on the iOS bridge.
|
|
250
286
|
- Added support for `DRMConfig` through `SourceDescription` for SSAI sources on iOS.
|
|
251
287
|
|
|
252
|
-
## [1.8.0]
|
|
288
|
+
## [1.8.0] - 23-01-16
|
|
253
289
|
|
|
254
290
|
### Added
|
|
255
291
|
|
|
@@ -264,20 +300,20 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
|
264
300
|
- Upgraded Web SDK to v4.6.0.
|
|
265
301
|
- Updated the custom build setup to support both iOS and tvOS.
|
|
266
302
|
|
|
267
|
-
## [1.7.2]
|
|
303
|
+
## [1.7.2] - 22-12-05
|
|
268
304
|
|
|
269
305
|
### Fixed
|
|
270
306
|
|
|
271
307
|
- Fixed an issue on tvOS where a feature flag was incorrectly used for ads-related code.
|
|
272
308
|
|
|
273
|
-
## [1.7.1]
|
|
309
|
+
## [1.7.1] - 22-11-28
|
|
274
310
|
|
|
275
311
|
### Fixed
|
|
276
312
|
|
|
277
313
|
- Fixed an issue on Android where the player would consider unusable custom drm integrations.
|
|
278
314
|
- Fixed missing kotlin classpath property on Android.
|
|
279
315
|
|
|
280
|
-
## [1.7.0]
|
|
316
|
+
## [1.7.0] - 22-11-23
|
|
281
317
|
|
|
282
318
|
### Added
|
|
283
319
|
|
|
@@ -295,13 +331,13 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
|
295
331
|
- Fixed an issue in the example app where it would not be possible to select a specific text track.
|
|
296
332
|
- Fixed conflicting npm dependencies in the example app.
|
|
297
333
|
|
|
298
|
-
## [1.6.1]
|
|
334
|
+
## [1.6.1] - 22-10-07
|
|
299
335
|
|
|
300
336
|
### Added
|
|
301
337
|
|
|
302
338
|
- Improved source handling for iOS.
|
|
303
339
|
|
|
304
|
-
## [1.6.0]
|
|
340
|
+
## [1.6.0] - 22-09-28
|
|
305
341
|
|
|
306
342
|
### Fixed
|
|
307
343
|
|
|
@@ -313,7 +349,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
|
313
349
|
- Excluded folders from bob build config.
|
|
314
350
|
- Upgraded gradle versions for Android.
|
|
315
351
|
|
|
316
|
-
## [1.5.0]
|
|
352
|
+
## [1.5.0] - 22-09-26
|
|
317
353
|
|
|
318
354
|
### Fixed
|
|
319
355
|
|
|
@@ -325,7 +361,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
|
325
361
|
- Support for DRM pre-integrations on Android.
|
|
326
362
|
- Support for additional source properties on Android: `liveOffset`, `hlsDateRange`, `timeServer` and `hls`.
|
|
327
363
|
|
|
328
|
-
## [1.4.0]
|
|
364
|
+
## [1.4.0] - 22-08-11
|
|
329
365
|
|
|
330
366
|
### Fixed
|
|
331
367
|
|
|
@@ -336,7 +372,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
|
336
372
|
|
|
337
373
|
- Improved determination of the stream source type on Android.
|
|
338
374
|
|
|
339
|
-
## [1.3.0]
|
|
375
|
+
## [1.3.0] - 22-07-26
|
|
340
376
|
|
|
341
377
|
### Fixed
|
|
342
378
|
|
|
@@ -345,7 +381,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
|
345
381
|
- Fixed documentation feature matrix.
|
|
346
382
|
- Fixed duration scale in loadedmetadata event properties for Web.
|
|
347
383
|
|
|
348
|
-
## [1.2.0]
|
|
384
|
+
## [1.2.0] - 22-06-30
|
|
349
385
|
|
|
350
386
|
### Fixed
|
|
351
387
|
|
|
@@ -353,7 +389,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
|
|
|
353
389
|
- Fixed a number of broken links in the documentation.
|
|
354
390
|
- Removed unused files.
|
|
355
391
|
|
|
356
|
-
## [1.1.0]
|
|
392
|
+
## [1.1.0] - 22-06-06
|
|
357
393
|
|
|
358
394
|
### Added
|
|
359
395
|
|
package/README.md
CHANGED
|
@@ -23,7 +23,8 @@ following platforms:
|
|
|
23
23
|
- Web (currently only HTML5 browsers are tested)
|
|
24
24
|
|
|
25
25
|
This document covers the creation of a minimal app including a `THEOplayerView` component,
|
|
26
|
-
and an overview of the
|
|
26
|
+
and an overview of the accompanying example app with a user interface provided
|
|
27
|
+
by the `@theoplayer/react-native-ui` package.
|
|
27
28
|
|
|
28
29
|
It also gives a description of the properties of the `THEOplayerView` component, and
|
|
29
30
|
a list of features and known limitations.
|
|
@@ -49,6 +50,20 @@ These are guides on how to use the THEOplayer React Native SDK in your React Nat
|
|
|
49
50
|
linearly or by searching the specific section. It is recommended that you have a basic understanding of how
|
|
50
51
|
React Native works to speed up the way of working with THEOplayer React Native SDK.
|
|
51
52
|
|
|
53
|
+
## Available connectors
|
|
54
|
+
|
|
55
|
+
The `react-native-theoplayer` package can be combined with any number of connectors to provide extra
|
|
56
|
+
functionality. Currently, the following connectors are available:
|
|
57
|
+
|
|
58
|
+
| Package name | Purpose | Registry |
|
|
59
|
+
|------------------------------------------------------------------------------------------------------------------|-------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------|
|
|
60
|
+
| [`@theoplayer/react-native-analytics-adobe`](https://github.com/THEOplayer/react-native-theoplayer-analytics) | Adobe analytics connector | [](https://www.npmjs.com/package/@theoplayer/react-native-analytics-adobe) |
|
|
61
|
+
| [`@theoplayer/react-native-analytics-comscore`](https://github.com/THEOplayer/react-native-theoplayer-analytics) | Comscore analytics connector | [](https://www.npmjs.com/package/@theoplayer/react-native-analytics-comscore) |
|
|
62
|
+
| [`@theoplayer/react-native-analytics-conviva`](https://github.com/THEOplayer/react-native-theoplayer-analytics) | Conviva analytics connector | [](https://www.npmjs.com/package/@theoplayer/react-native-analytics-conviva) |
|
|
63
|
+
| [`@theoplayer/react-native-analytics-nielsen`](https://github.com/THEOplayer/react-native-theoplayer-analytics) | Nielsen analytics connector | [](https://www.npmjs.com/package/@theoplayer/react-native-analytics-nielsen) |
|
|
64
|
+
| [`@theoplayer/react-native-drm`](https://github.com/THEOplayer/react-native-theoplayer-drm) | Content protection (DRM) connectors | [](https://www.npmjs.com/package/@theoplayer/react-native-drm) |
|
|
65
|
+
| [`@theoplayer/react-native-ui`](https://github.com/THEOplayer/react-native-theoplayer-ui) | React Native user interface | [](https://www.npmjs.com/package/@theoplayer/react-native-ui) |
|
|
66
|
+
|
|
52
67
|
## Getting Started
|
|
53
68
|
|
|
54
69
|
This section starts with creating a minimal demo app that integrates the `react-native-theoplayer` package,
|
|
@@ -61,7 +76,6 @@ and discussed in the next section. Finally, an overview of features, limitations
|
|
|
61
76
|
- [Getting started on Android](./doc/creating-minimal-app.md#getting-started-on-android)
|
|
62
77
|
- [Getting started on iOS](./doc/creating-minimal-app.md#getting-started-on-ios-and-tvos)
|
|
63
78
|
- [Getting started on Web](./doc/creating-minimal-app.md#getting-started-on-web)
|
|
64
|
-
- [Getting started with the UI](./doc/ui.md)
|
|
65
79
|
- [The THEOplayerView component](./doc/theoplayerview-component.md)
|
|
66
80
|
- [The example application](./doc/example-app.md)
|
|
67
81
|
- [Features](./doc/features.md)
|
|
@@ -11,6 +11,7 @@ import android.support.v4.media.session.MediaSessionCompat
|
|
|
11
11
|
import android.support.v4.media.session.PlaybackStateCompat
|
|
12
12
|
import android.util.Log
|
|
13
13
|
import androidx.core.app.NotificationCompat
|
|
14
|
+
import androidx.core.app.NotificationCompat.FOREGROUND_SERVICE_IMMEDIATE
|
|
14
15
|
import androidx.core.content.ContextCompat
|
|
15
16
|
import androidx.media.session.MediaButtonReceiver
|
|
16
17
|
import com.facebook.common.executors.UiThreadImmediateExecutorService
|
|
@@ -81,6 +82,10 @@ class MediaNotificationBuilder(
|
|
|
81
82
|
}
|
|
82
83
|
builder.apply {
|
|
83
84
|
|
|
85
|
+
// Fix for a bug where ServiceInfo.FOREGROUND_SERVICE_TYPE_MEDIA_PLAYBACK that was passed
|
|
86
|
+
// with the startForeground call got ignored.
|
|
87
|
+
foregroundServiceBehavior = FOREGROUND_SERVICE_IMMEDIATE
|
|
88
|
+
|
|
84
89
|
// Add the metadata for the currently playing track
|
|
85
90
|
mediaSession.controller.metadata?.description?.let {
|
|
86
91
|
setContentTitle(it.title)
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
package com.theoplayer.media
|
|
2
2
|
|
|
3
|
-
import android.app
|
|
4
|
-
import android.app.PendingIntent
|
|
5
|
-
import android.app.Service
|
|
3
|
+
import android.app.*
|
|
6
4
|
import android.content.Intent
|
|
5
|
+
import android.content.pm.ServiceInfo
|
|
7
6
|
import android.os.Binder
|
|
8
7
|
import android.os.Build
|
|
9
8
|
import android.os.Bundle
|
|
@@ -12,6 +11,7 @@ import android.support.v4.media.MediaBrowserCompat
|
|
|
12
11
|
import android.support.v4.media.session.MediaSessionCompat
|
|
13
12
|
import android.support.v4.media.session.PlaybackStateCompat
|
|
14
13
|
import android.text.TextUtils
|
|
14
|
+
import android.util.Log
|
|
15
15
|
import androidx.core.content.ContextCompat
|
|
16
16
|
import androidx.media.MediaBrowserServiceCompat
|
|
17
17
|
import androidx.media.session.MediaButtonReceiver
|
|
@@ -85,10 +85,16 @@ class MediaPlaybackService : MediaBrowserServiceCompat() {
|
|
|
85
85
|
|
|
86
86
|
// This ensures that the service starts and continues to run, even when all
|
|
87
87
|
// UI MediaBrowser activities that are bound to it unbind.
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
88
|
+
try {
|
|
89
|
+
ContextCompat.startForegroundService(
|
|
90
|
+
applicationContext,
|
|
91
|
+
Intent(applicationContext, MediaPlaybackService::class.java)
|
|
92
|
+
)
|
|
93
|
+
} catch (e: IllegalStateException) {
|
|
94
|
+
// Make sure that app does not crash in case anything goes wrong with starting the service.
|
|
95
|
+
// https://issuetracker.google.com/issues/229000935
|
|
96
|
+
Log.w(TAG, "Failed to start foreground service: ${e.message}")
|
|
97
|
+
}
|
|
92
98
|
|
|
93
99
|
updateNotification(PlaybackStateCompat.STATE_PLAYING)
|
|
94
100
|
}
|
|
@@ -260,7 +266,24 @@ class MediaPlaybackService : MediaBrowserServiceCompat() {
|
|
|
260
266
|
// information from the session's metadata.
|
|
261
267
|
// Fetch large icon asynchronously
|
|
262
268
|
fetchImageFromUri(mediaSession.controller.metadata?.description?.iconUri) { largeIcon ->
|
|
263
|
-
|
|
269
|
+
try {
|
|
270
|
+
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
|
|
271
|
+
startForeground(
|
|
272
|
+
NOTIFICATION_ID,
|
|
273
|
+
notificationBuilder.build(playbackState, largeIcon, enableMediaControls),
|
|
274
|
+
ServiceInfo.FOREGROUND_SERVICE_TYPE_MEDIA_PLAYBACK
|
|
275
|
+
)
|
|
276
|
+
} else {
|
|
277
|
+
startForeground(
|
|
278
|
+
NOTIFICATION_ID,
|
|
279
|
+
notificationBuilder.build(playbackState, largeIcon, enableMediaControls)
|
|
280
|
+
)
|
|
281
|
+
}
|
|
282
|
+
} catch (e: IllegalStateException) {
|
|
283
|
+
// Make sure that app does not crash in case anything goes wrong with starting the service.
|
|
284
|
+
// https://issuetracker.google.com/issues/229000935
|
|
285
|
+
Log.w(TAG, "Failed to start foreground service: ${e.message}")
|
|
286
|
+
}
|
|
264
287
|
}
|
|
265
288
|
}
|
|
266
289
|
PlaybackStateCompat.STATE_STOPPED -> {
|
|
@@ -23,7 +23,6 @@ class THEOplayerRCTProxyContentProtectionIntegration: THEOplayerSDK.ContentProte
|
|
|
23
23
|
private weak var contentProtectionAPI: THEOplayerRCTContentProtectionAPI?
|
|
24
24
|
private var integrationId: String!
|
|
25
25
|
private var keySystemId: String!
|
|
26
|
-
private var skdUrl: String?
|
|
27
26
|
private var drmConfig: THEOplayerSDK.DRMConfiguration
|
|
28
27
|
private var certificateResponseFinal = false
|
|
29
28
|
private var licenseResponseFinal = false
|
|
@@ -87,32 +86,17 @@ class THEOplayerRCTProxyContentProtectionIntegration: THEOplayerSDK.ContentProte
|
|
|
87
86
|
|
|
88
87
|
func onLicenseRequest(request: LicenseRequest, callback: LicenseRequestCallback) {
|
|
89
88
|
if DEBUG_CONTENT_PROTECTION_API { print(PROXY_INTEGRATION_TAG, "THEOplayer triggered an onLicenseRequest") }
|
|
90
|
-
guard let skdUrl = self.skdUrl else {
|
|
91
|
-
callback.error(error: ProxyIntegrationError.licenseRequestHandlingFailed)
|
|
92
|
-
return
|
|
93
|
-
}
|
|
94
89
|
self.licenseResponseFinal = false
|
|
95
|
-
|
|
96
|
-
// First, extract contentId
|
|
97
|
-
self.contentProtectionAPI?.handleExtractFairplayContentId(integrationId: self.integrationId, keySystemId: self.keySystemId, skdUrl: skdUrl) { contentId, error in
|
|
90
|
+
self.contentProtectionAPI?.handleLicenseRequest(integrationId: self.integrationId, keySystemId: self.keySystemId, licenseRequest: request) { licenseData, error in
|
|
98
91
|
if let error = error {
|
|
99
|
-
|
|
100
|
-
|
|
92
|
+
callback.error(error: error)
|
|
93
|
+
return
|
|
94
|
+
}
|
|
95
|
+
if let data = licenseData {
|
|
96
|
+
self.licenseResponseFinal = true
|
|
97
|
+
callback.respond(license: data)
|
|
101
98
|
} else {
|
|
102
|
-
|
|
103
|
-
if DEBUG_CONTENT_PROTECTION_API { print(PROXY_INTEGRATION_TAG, "Received extracted fairplay contentId \(contentId) on RN bridge") }
|
|
104
|
-
self.contentProtectionAPI?.handleLicenseRequest(integrationId: self.integrationId, keySystemId: self.keySystemId, licenseRequest: request) { licenseData, error in
|
|
105
|
-
if let error = error {
|
|
106
|
-
callback.error(error: error)
|
|
107
|
-
return
|
|
108
|
-
}
|
|
109
|
-
if let data = licenseData {
|
|
110
|
-
self.licenseResponseFinal = true
|
|
111
|
-
callback.respond(license: data)
|
|
112
|
-
} else {
|
|
113
|
-
callback.error(error: ProxyIntegrationError.licenseRequestHandlingFailed)
|
|
114
|
-
}
|
|
115
|
-
}
|
|
99
|
+
callback.error(error: ProxyIntegrationError.licenseRequestHandlingFailed)
|
|
116
100
|
}
|
|
117
101
|
}
|
|
118
102
|
}
|
|
@@ -139,12 +123,18 @@ class THEOplayerRCTProxyContentProtectionIntegration: THEOplayerSDK.ContentProte
|
|
|
139
123
|
}
|
|
140
124
|
}
|
|
141
125
|
|
|
142
|
-
func
|
|
126
|
+
func onExtractFairplayContentId(skdUrl: String, callback: ExtractContentIdCallback) {
|
|
143
127
|
if DEBUG_CONTENT_PROTECTION_API { print(PROXY_INTEGRATION_TAG, "THEOplayer triggered an extractFairplayContentId") }
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
128
|
+
self.contentProtectionAPI?.handleExtractFairplayContentId(integrationId: self.integrationId, keySystemId: self.keySystemId, skdUrl: skdUrl) { contentId, error in
|
|
129
|
+
if let error = error {
|
|
130
|
+
print(PROXY_INTEGRATION_TAG, "We encountered an issue while extracting the fairplay contentId: \(error.localizedDescription)")
|
|
131
|
+
callback.error(error: error)
|
|
132
|
+
} else {
|
|
133
|
+
// Next, handle onLicenseRequest
|
|
134
|
+
if DEBUG_CONTENT_PROTECTION_API { print(PROXY_INTEGRATION_TAG, "Received extracted fairplay contentId \(contentId) on RN bridge") }
|
|
135
|
+
callback.respond(contentID: contentId.data(using: .utf8))
|
|
136
|
+
}
|
|
137
|
+
}
|
|
148
138
|
}
|
|
149
139
|
|
|
150
140
|
// MARK: local certificate handling
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["Chromecast.ts"],"sourcesContent":["/**\n * The
|
|
1
|
+
{"version":3,"names":[],"sources":["Chromecast.ts"],"sourcesContent":["/**\n * The Chromecast API.\n *\n * @public\n */\nimport type { CastState } from './CastState';\n\nexport interface Chromecast {\n /**\n * Whether the player is connected with a chromecast device.\n */\n readonly casting: boolean;\n\n /**\n * The state of the casting process.\n */\n readonly state: CastState;\n\n /**\n * Start a casting session with the player's source.\n *\n * @remarks\n * <br/> - A native browser pop-up will prompt to choose a chromecast device.\n */\n start(): void;\n\n /**\n * Stop the active casting session.\n */\n stop(): void;\n\n /**\n * Join an active casting session.\n */\n join(): void;\n\n /**\n * Leave the active casting session.\n *\n * @remarks\n * <br/> - Does not stop the session when other devices are connected.\n * <br/> - Use {@link stop} to fully stop the session.\n */\n leave(): void;\n}\n"],"mappings":""}
|
package/lib/commonjs/index.js
CHANGED
|
@@ -31,18 +31,6 @@ Object.keys(_barrel).forEach(function (key) {
|
|
|
31
31
|
}
|
|
32
32
|
});
|
|
33
33
|
});
|
|
34
|
-
var _barrel2 = require("./ui/barrel");
|
|
35
|
-
Object.keys(_barrel2).forEach(function (key) {
|
|
36
|
-
if (key === "default" || key === "__esModule") return;
|
|
37
|
-
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
38
|
-
if (key in exports && exports[key] === _barrel2[key]) return;
|
|
39
|
-
Object.defineProperty(exports, key, {
|
|
40
|
-
enumerable: true,
|
|
41
|
-
get: function () {
|
|
42
|
-
return _barrel2[key];
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
});
|
|
46
34
|
var _THEOplayerView = require("./internal/THEOplayerView");
|
|
47
35
|
var _ContentProtectionRegistry = require("./internal/drm/ContentProtectionRegistry");
|
|
48
36
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_barrel","require","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","
|
|
1
|
+
{"version":3,"names":["_barrel","require","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_THEOplayerView","_ContentProtectionRegistry"],"sources":["index.tsx"],"sourcesContent":["export * from './api/barrel';\nexport { THEOplayerView } from './internal/THEOplayerView';\nexport { ContentProtectionRegistry } from './internal/drm/ContentProtectionRegistry';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,OAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAL,OAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAb,OAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAS,eAAA,GAAAb,OAAA;AACA,IAAAc,0BAAA,GAAAd,OAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":[],"sources":["Chromecast.ts"],"sourcesContent":["/**\n * The
|
|
1
|
+
{"version":3,"names":[],"sources":["Chromecast.ts"],"sourcesContent":["/**\n * The Chromecast API.\n *\n * @public\n */\nimport type { CastState } from './CastState';\n\nexport interface Chromecast {\n /**\n * Whether the player is connected with a chromecast device.\n */\n readonly casting: boolean;\n\n /**\n * The state of the casting process.\n */\n readonly state: CastState;\n\n /**\n * Start a casting session with the player's source.\n *\n * @remarks\n * <br/> - A native browser pop-up will prompt to choose a chromecast device.\n */\n start(): void;\n\n /**\n * Stop the active casting session.\n */\n stop(): void;\n\n /**\n * Join an active casting session.\n */\n join(): void;\n\n /**\n * Leave the active casting session.\n *\n * @remarks\n * <br/> - Does not stop the session when other devices are connected.\n * <br/> - Use {@link stop} to fully stop the session.\n */\n leave(): void;\n}\n"],"mappings":""}
|
package/lib/module/index.js
CHANGED
package/lib/module/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["THEOplayerView","ContentProtectionRegistry"],"sources":["index.tsx"],"sourcesContent":["export * from './api/barrel';\nexport
|
|
1
|
+
{"version":3,"names":["THEOplayerView","ContentProtectionRegistry"],"sources":["index.tsx"],"sourcesContent":["export * from './api/barrel';\nexport { THEOplayerView } from './internal/THEOplayerView';\nexport { ContentProtectionRegistry } from './internal/drm/ContentProtectionRegistry';\n"],"mappings":"AAAA,cAAc,cAAc;AAC5B,SAASA,cAAc,QAAQ,2BAA2B;AAC1D,SAASC,yBAAyB,QAAQ,0CAA0C"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-theoplayer",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.9.0",
|
|
4
4
|
"description": "A THEOplayer video component for react-native.",
|
|
5
5
|
"main": "lib/commonjs/index",
|
|
6
6
|
"module": "lib/module/index",
|
|
@@ -116,12 +116,6 @@
|
|
|
116
116
|
]
|
|
117
117
|
},
|
|
118
118
|
"dependencies": {
|
|
119
|
-
"
|
|
120
|
-
"buffer": "^6.0.3",
|
|
121
|
-
"react-native-google-cast": "^4.6.2",
|
|
122
|
-
"react-native-svg": "^13.8.0",
|
|
123
|
-
"react-native-svg-web": "^1.0.0",
|
|
124
|
-
"react-native-url-polyfill": "^1.3.0",
|
|
125
|
-
"url-polyfill": "^1.1.12"
|
|
119
|
+
"buffer": "^6.0.3"
|
|
126
120
|
}
|
|
127
121
|
}
|
|
@@ -36,7 +36,7 @@ Pod::Spec.new do |s|
|
|
|
36
36
|
}
|
|
37
37
|
else
|
|
38
38
|
puts "Using THEOplayer-core SDK"
|
|
39
|
-
s.dependency "THEOplayerSDK-core", "~> 5.1"
|
|
39
|
+
s.dependency "THEOplayerSDK-core", "~> 5.4", ">= 5.4.1"
|
|
40
40
|
if theofeatures.include?("GOOGLE_IMA")
|
|
41
41
|
puts "Adding THEOplayer-Integration-GoogleIMA"
|
|
42
42
|
s.dependency "THEOplayer-Integration-GoogleIMA"
|
package/src/index.tsx
CHANGED
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.THEOplayerDefaultUi = THEOplayerDefaultUi;
|
|
7
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _reactNativeTheoplayer = require("react-native-theoplayer");
|
|
9
|
-
var _SeekBar = require("./components/seekbar/SeekBar");
|
|
10
|
-
var _AirplayButton = require("./components/button/AirplayButton");
|
|
11
|
-
var _ControlBar = require("./components/controlbar/ControlBar");
|
|
12
|
-
var _TimeLabel = require("./components/timelabel/TimeLabel");
|
|
13
|
-
var _FullscreenButton = require("./components/button/FullscreenButton");
|
|
14
|
-
var _LanguageMenuButton = require("./components/menu/LanguageMenuButton");
|
|
15
|
-
var _MuteButton = require("./components/button/MuteButton");
|
|
16
|
-
var _CastMessage = require("./components/message/CastMessage");
|
|
17
|
-
var _THEOplayerTheme = require("./THEOplayerTheme");
|
|
18
|
-
var _reactNative = require("react-native");
|
|
19
|
-
var _UiContainer = require("./components/uicontroller/UiContainer");
|
|
20
|
-
var _PlayButton = require("./components/button/PlayButton");
|
|
21
|
-
var _SkipButton = require("./components/button/SkipButton");
|
|
22
|
-
var _Spacer = require("./components/controlbar/Spacer");
|
|
23
|
-
var _ChromecastButton = require("./components/button/ChromecastButton");
|
|
24
|
-
var _CenteredDelayedActivityIndicator = require("./components/activityindicator/CenteredDelayedActivityIndicator");
|
|
25
|
-
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
26
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
27
|
-
/**
|
|
28
|
-
* A default UI layout which uses UI components from `react-native-theoplayer` to create a basic playback UI around a THEOplayerView.
|
|
29
|
-
*/
|
|
30
|
-
function THEOplayerDefaultUi(props) {
|
|
31
|
-
const {
|
|
32
|
-
theme,
|
|
33
|
-
config,
|
|
34
|
-
topSlot,
|
|
35
|
-
bottomSlot,
|
|
36
|
-
style
|
|
37
|
-
} = props;
|
|
38
|
-
const [player, setPlayer] = (0, _react.useState)(undefined);
|
|
39
|
-
const chromeless = (config === null || config === void 0 ? void 0 : config.chromeless) ?? false;
|
|
40
|
-
const onPlayerReady = player => {
|
|
41
|
-
var _props$onPlayerReady;
|
|
42
|
-
setPlayer(player);
|
|
43
|
-
(_props$onPlayerReady = props.onPlayerReady) === null || _props$onPlayerReady === void 0 ? void 0 : _props$onPlayerReady.call(props, player);
|
|
44
|
-
};
|
|
45
|
-
return /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
46
|
-
style: style
|
|
47
|
-
}, /*#__PURE__*/_react.default.createElement(_reactNative.View, {
|
|
48
|
-
style: [_reactNativeTheoplayer.FULLSCREEN_CENTER_STYLE, {
|
|
49
|
-
backgroundColor: '#000000'
|
|
50
|
-
}]
|
|
51
|
-
}), /*#__PURE__*/_react.default.createElement(_reactNativeTheoplayer.THEOplayerView, {
|
|
52
|
-
config: config,
|
|
53
|
-
onPlayerReady: onPlayerReady
|
|
54
|
-
}, player !== undefined && chromeless && /*#__PURE__*/_react.default.createElement(_UiContainer.UiContainer, {
|
|
55
|
-
theme: {
|
|
56
|
-
..._THEOplayerTheme.DEFAULT_THEOPLAYER_THEME,
|
|
57
|
-
...theme
|
|
58
|
-
},
|
|
59
|
-
player: player,
|
|
60
|
-
behind: /*#__PURE__*/_react.default.createElement(_CenteredDelayedActivityIndicator.CenteredDelayedActivityIndicator, {
|
|
61
|
-
size: 50
|
|
62
|
-
}),
|
|
63
|
-
top: /*#__PURE__*/_react.default.createElement(_ControlBar.ControlBar, null, topSlot, !_reactNative.Platform.isTV && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_AirplayButton.AirplayButton, null), /*#__PURE__*/_react.default.createElement(_ChromecastButton.ChromecastButton, null)), /*#__PURE__*/_react.default.createElement(_LanguageMenuButton.LanguageMenuButton, null)),
|
|
64
|
-
center: /*#__PURE__*/_react.default.createElement(_ControlBar.CenteredControlBar, {
|
|
65
|
-
left: /*#__PURE__*/_react.default.createElement(_SkipButton.SkipButton, {
|
|
66
|
-
skip: -10
|
|
67
|
-
}),
|
|
68
|
-
middle: /*#__PURE__*/_react.default.createElement(_PlayButton.PlayButton, null),
|
|
69
|
-
right: /*#__PURE__*/_react.default.createElement(_SkipButton.SkipButton, {
|
|
70
|
-
skip: 30
|
|
71
|
-
})
|
|
72
|
-
}),
|
|
73
|
-
bottom: /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_ControlBar.ControlBar, {
|
|
74
|
-
style: {
|
|
75
|
-
justifyContent: 'flex-start'
|
|
76
|
-
}
|
|
77
|
-
}, /*#__PURE__*/_react.default.createElement(_CastMessage.CastMessage, null)), /*#__PURE__*/_react.default.createElement(_ControlBar.ControlBar, null, /*#__PURE__*/_react.default.createElement(_SeekBar.SeekBar, null)), /*#__PURE__*/_react.default.createElement(_ControlBar.ControlBar, null, /*#__PURE__*/_react.default.createElement(_MuteButton.MuteButton, null), /*#__PURE__*/_react.default.createElement(_TimeLabel.TimeLabel, {
|
|
78
|
-
showDuration: true
|
|
79
|
-
}), /*#__PURE__*/_react.default.createElement(_Spacer.Spacer, null), bottomSlot, /*#__PURE__*/_react.default.createElement(_FullscreenButton.FullscreenButton, null)))
|
|
80
|
-
})));
|
|
81
|
-
}
|
|
82
|
-
//# sourceMappingURL=THEOplayerDefaultUi.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireWildcard","require","_reactNativeTheoplayer","_SeekBar","_AirplayButton","_ControlBar","_TimeLabel","_FullscreenButton","_LanguageMenuButton","_MuteButton","_CastMessage","_THEOplayerTheme","_reactNative","_UiContainer","_PlayButton","_SkipButton","_Spacer","_ChromecastButton","_CenteredDelayedActivityIndicator","_getRequireWildcardCache","nodeInterop","WeakMap","cacheBabelInterop","cacheNodeInterop","obj","__esModule","default","cache","has","get","newObj","hasPropertyDescriptor","Object","defineProperty","getOwnPropertyDescriptor","key","prototype","hasOwnProperty","call","desc","set","THEOplayerDefaultUi","props","theme","config","topSlot","bottomSlot","style","player","setPlayer","useState","undefined","chromeless","onPlayerReady","_props$onPlayerReady","createElement","View","FULLSCREEN_CENTER_STYLE","backgroundColor","THEOplayerView","UiContainer","DEFAULT_THEOPLAYER_THEME","behind","CenteredDelayedActivityIndicator","size","top","ControlBar","Platform","isTV","Fragment","AirplayButton","ChromecastButton","LanguageMenuButton","center","CenteredControlBar","left","SkipButton","skip","middle","PlayButton","right","bottom","justifyContent","CastMessage","SeekBar","MuteButton","TimeLabel","showDuration","Spacer","FullscreenButton"],"sources":["THEOplayerDefaultUi.tsx"],"sourcesContent":["import React, { ReactNode, useState } from 'react';\nimport { FULLSCREEN_CENTER_STYLE, PlayerConfiguration, THEOplayer, THEOplayerView } from 'react-native-theoplayer';\nimport { SeekBar } from './components/seekbar/SeekBar';\nimport { AirplayButton } from './components/button/AirplayButton';\nimport { CenteredControlBar, ControlBar } from './components/controlbar/ControlBar';\nimport { TimeLabel } from './components/timelabel/TimeLabel';\nimport { FullscreenButton } from './components/button/FullscreenButton';\nimport { LanguageMenuButton } from './components/menu/LanguageMenuButton';\nimport { MuteButton } from './components/button/MuteButton';\nimport { CastMessage } from './components/message/CastMessage';\nimport { DEFAULT_THEOPLAYER_THEME, THEOplayerTheme } from './THEOplayerTheme';\nimport { Platform, StyleProp, View, ViewStyle } from 'react-native';\nimport { UiContainer } from './components/uicontroller/UiContainer';\nimport { PlayButton } from './components/button/PlayButton';\nimport { SkipButton } from './components/button/SkipButton';\nimport { Spacer } from './components/controlbar/Spacer';\nimport { ChromecastButton } from './components/button/ChromecastButton';\nimport { CenteredDelayedActivityIndicator } from './components/activityindicator/CenteredDelayedActivityIndicator';\n\nexport interface THEOplayerDefaultUiProps {\n /**\n * The style for the container.\n */\n style?: StyleProp<ViewStyle>;\n /**\n * The theme for all components.\n */\n theme?: Partial<THEOplayerTheme>;\n /**\n * The player configuration with THEOplayer license.\n */\n config?: PlayerConfiguration;\n /**\n * The callback that is called when the internal THEOplayer is created.\n * @param player the internal THEOplayer\n */\n onPlayerReady?: (player: THEOplayer) => void;\n /**\n * A slot in the top right to add additional UI components.\n */\n topSlot?: ReactNode;\n /**\n * A slot in the bottom right to add additional UI components.\n */\n bottomSlot?: ReactNode;\n}\n\n/**\n * A default UI layout which uses UI components from `react-native-theoplayer` to create a basic playback UI around a THEOplayerView.\n */\nexport function THEOplayerDefaultUi(props: THEOplayerDefaultUiProps) {\n const { theme, config, topSlot, bottomSlot, style } = props;\n const [player, setPlayer] = useState<THEOplayer | undefined>(undefined);\n const chromeless = config?.chromeless ?? false;\n\n const onPlayerReady = (player: THEOplayer) => {\n setPlayer(player);\n props.onPlayerReady?.(player);\n };\n\n return (\n <View style={style}>\n <View style={[FULLSCREEN_CENTER_STYLE, { backgroundColor: '#000000' }]} />\n <THEOplayerView config={config} onPlayerReady={onPlayerReady}>\n {player !== undefined && chromeless && (\n <UiContainer\n theme={{ ...DEFAULT_THEOPLAYER_THEME, ...theme }}\n player={player}\n behind={<CenteredDelayedActivityIndicator size={50} />}\n top={\n <ControlBar>\n {topSlot}\n {!Platform.isTV && (\n <>\n <AirplayButton />\n <ChromecastButton />\n </>\n )}\n <LanguageMenuButton />\n </ControlBar>\n }\n center={<CenteredControlBar left={<SkipButton skip={-10} />} middle={<PlayButton />} right={<SkipButton skip={30} />} />}\n bottom={\n <>\n <ControlBar style={{ justifyContent: 'flex-start' }}>\n <CastMessage />\n </ControlBar>\n <ControlBar>\n <SeekBar />\n </ControlBar>\n\n <ControlBar>\n <MuteButton />\n <TimeLabel showDuration={true} />\n\n <Spacer />\n\n {bottomSlot}\n <FullscreenButton />\n </ControlBar>\n </>\n }\n />\n )}\n </THEOplayerView>\n </View>\n );\n}\n"],"mappings":"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"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.DEFAULT_THEOPLAYER_THEME = void 0;
|
|
7
|
-
/**
|
|
8
|
-
* The theme colors.
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
/**
|
|
12
|
-
* The dimensions of various UI components.
|
|
13
|
-
*/
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* The theme used by `react-native-theoplayer` UI components.
|
|
17
|
-
*/
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* The default theme for the UI.
|
|
21
|
-
*/
|
|
22
|
-
const DEFAULT_THEOPLAYER_THEME = {
|
|
23
|
-
colors: {
|
|
24
|
-
uiBackground: '#00000080',
|
|
25
|
-
errorBackground: '#2C2C2C',
|
|
26
|
-
icon: '#FFFFFF',
|
|
27
|
-
iconSelected: '#FFC50F',
|
|
28
|
-
text: '#FFFFFF',
|
|
29
|
-
textSelected: '#2C2C2C',
|
|
30
|
-
textSelectedBackground: '#FFFFFF',
|
|
31
|
-
seekBarMinimum: '#FFFFFF',
|
|
32
|
-
seekBarMaximum: '#FFFFFF50',
|
|
33
|
-
seekBarDot: '#FFFFFF'
|
|
34
|
-
},
|
|
35
|
-
text: {
|
|
36
|
-
textAlignVertical: 'center',
|
|
37
|
-
textAlign: 'center',
|
|
38
|
-
alignSelf: 'center',
|
|
39
|
-
fontSize: 16
|
|
40
|
-
},
|
|
41
|
-
fadeAnimationTimoutMs: 2500,
|
|
42
|
-
dimensions: {
|
|
43
|
-
controlBarHeight: 40,
|
|
44
|
-
centerControlBarHeight: 52
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
exports.DEFAULT_THEOPLAYER_THEME = DEFAULT_THEOPLAYER_THEME;
|
|
48
|
-
//# sourceMappingURL=THEOplayerTheme.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["DEFAULT_THEOPLAYER_THEME","colors","uiBackground","errorBackground","icon","iconSelected","text","textSelected","textSelectedBackground","seekBarMinimum","seekBarMaximum","seekBarDot","textAlignVertical","textAlign","alignSelf","fontSize","fadeAnimationTimoutMs","dimensions","controlBarHeight","centerControlBarHeight","exports"],"sources":["THEOplayerTheme.ts"],"sourcesContent":["import type { TextStyle } from 'react-native';\n\n/**\n * The theme colors.\n */\nexport interface ColorTheme {\n /**\n * The color of the UI background.\n */\n uiBackground: string;\n /**\n * The color of the error display background.\n */\n errorBackground: string;\n /**\n * The color of the SVG icons.\n */\n icon: string;\n /**\n * The color of the SVG icons when they are selected.\n */\n iconSelected: string;\n /**\n * The color of the text components.\n */\n text: string;\n /**\n * The color of the text components when they are selected.\n */\n textSelected: string;\n /**\n * The color of the text component background when it is selected.\n */\n textSelectedBackground: string;\n /**\n * The color of the left side of the seek bar.\n */\n seekBarMinimum: string;\n /**\n * The color of the right side of the seek bar.\n */\n seekBarMaximum: string;\n /**\n * The color of the dot on the seek bar.\n */\n seekBarDot: string;\n}\n\n/**\n * The dimensions of various UI components.\n */\nexport interface Dimensions {\n /**\n * The height of the center control bar.\n */\n centerControlBarHeight: number;\n /**\n * The height of all other control bars.\n */\n controlBarHeight: number;\n}\n\n/**\n * The theme used by `react-native-theoplayer` UI components.\n */\nexport interface THEOplayerTheme {\n /**\n * The theme colors.\n */\n colors: ColorTheme;\n /**\n * The styling for all text components.\n */\n text: TextStyle;\n /**\n * The amount of time after a user action where UI animations will resume.\n */\n fadeAnimationTimoutMs: number;\n /**\n * The dimensions of various UI components.\n */\n dimensions: Dimensions;\n}\n\n/**\n * The default theme for the UI.\n */\nexport const DEFAULT_THEOPLAYER_THEME: THEOplayerTheme = {\n colors: {\n uiBackground: '#00000080',\n errorBackground: '#2C2C2C',\n icon: '#FFFFFF',\n iconSelected: '#FFC50F',\n text: '#FFFFFF',\n textSelected: '#2C2C2C',\n textSelectedBackground: '#FFFFFF',\n seekBarMinimum: '#FFFFFF',\n seekBarMaximum: '#FFFFFF50',\n seekBarDot: '#FFFFFF',\n },\n text: {\n textAlignVertical: 'center',\n textAlign: 'center',\n alignSelf: 'center',\n fontSize: 16,\n },\n fadeAnimationTimoutMs: 2500,\n dimensions: {\n controlBarHeight: 40,\n centerControlBarHeight: 52,\n },\n};\n"],"mappings":";;;;;;AAEA;AACA;AACA;;AA4CA;AACA;AACA;;AAYA;AACA;AACA;;AAoBA;AACA;AACA;AACO,MAAMA,wBAAyC,GAAG;EACvDC,MAAM,EAAE;IACNC,YAAY,EAAE,WAAW;IACzBC,eAAe,EAAE,SAAS;IAC1BC,IAAI,EAAE,SAAS;IACfC,YAAY,EAAE,SAAS;IACvBC,IAAI,EAAE,SAAS;IACfC,YAAY,EAAE,SAAS;IACvBC,sBAAsB,EAAE,SAAS;IACjCC,cAAc,EAAE,SAAS;IACzBC,cAAc,EAAE,WAAW;IAC3BC,UAAU,EAAE;EACd,CAAC;EACDL,IAAI,EAAE;IACJM,iBAAiB,EAAE,QAAQ;IAC3BC,SAAS,EAAE,QAAQ;IACnBC,SAAS,EAAE,QAAQ;IACnBC,QAAQ,EAAE;EACZ,CAAC;EACDC,qBAAqB,EAAE,IAAI;EAC3BC,UAAU,EAAE;IACVC,gBAAgB,EAAE,EAAE;IACpBC,sBAAsB,EAAE;EAC1B;AACF,CAAC;AAACC,OAAA,CAAApB,wBAAA,GAAAA,wBAAA"}
|