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.
Files changed (545) hide show
  1. package/CHANGELOG.md +49 -13
  2. package/README.md +16 -2
  3. package/android/src/main/java/com/theoplayer/media/MediaNotificationBuilder.kt +5 -0
  4. package/android/src/main/java/com/theoplayer/media/MediaPlaybackService.kt +31 -8
  5. package/ios/contentprotection/THEOplayerRCTProxyContentProtectionIntegration.swift +19 -29
  6. package/lib/commonjs/api/cast/Chromecast.js.map +1 -1
  7. package/lib/commonjs/index.js +0 -12
  8. package/lib/commonjs/index.js.map +1 -1
  9. package/lib/module/api/cast/Chromecast.js.map +1 -1
  10. package/lib/module/index.js +0 -1
  11. package/lib/module/index.js.map +1 -1
  12. package/lib/typescript/api/cast/Chromecast.d.ts +1 -1
  13. package/lib/typescript/index.d.ts +0 -1
  14. package/package.json +2 -8
  15. package/react-native-theoplayer.podspec +1 -1
  16. package/src/api/cast/Chromecast.ts +1 -1
  17. package/src/index.tsx +0 -1
  18. package/lib/commonjs/ui/THEOplayerDefaultUi.js +0 -82
  19. package/lib/commonjs/ui/THEOplayerDefaultUi.js.map +0 -1
  20. package/lib/commonjs/ui/THEOplayerTheme.js +0 -48
  21. package/lib/commonjs/ui/THEOplayerTheme.js.map +0 -1
  22. package/lib/commonjs/ui/barrel.js +0 -39
  23. package/lib/commonjs/ui/barrel.js.map +0 -1
  24. package/lib/commonjs/ui/components/activityindicator/CenteredDelayedActivityIndicator.js +0 -99
  25. package/lib/commonjs/ui/components/activityindicator/CenteredDelayedActivityIndicator.js.map +0 -1
  26. package/lib/commonjs/ui/components/activityindicator/DelayedActivityIndicator.js +0 -35
  27. package/lib/commonjs/ui/components/activityindicator/DelayedActivityIndicator.js.map +0 -1
  28. package/lib/commonjs/ui/components/activityindicator/barrel.js +0 -28
  29. package/lib/commonjs/ui/components/activityindicator/barrel.js.map +0 -1
  30. package/lib/commonjs/ui/components/barrel.js +0 -105
  31. package/lib/commonjs/ui/components/barrel.js.map +0 -1
  32. package/lib/commonjs/ui/components/button/AirplayButton.js +0 -81
  33. package/lib/commonjs/ui/components/button/AirplayButton.js.map +0 -1
  34. package/lib/commonjs/ui/components/button/ChromecastButton.js +0 -66
  35. package/lib/commonjs/ui/components/button/ChromecastButton.js.map +0 -1
  36. package/lib/commonjs/ui/components/button/ChromecastButton.web.js +0 -82
  37. package/lib/commonjs/ui/components/button/ChromecastButton.web.js.map +0 -1
  38. package/lib/commonjs/ui/components/button/FullscreenButton.js +0 -72
  39. package/lib/commonjs/ui/components/button/FullscreenButton.js.map +0 -1
  40. package/lib/commonjs/ui/components/button/MuteButton.js +0 -66
  41. package/lib/commonjs/ui/components/button/MuteButton.js.map +0 -1
  42. package/lib/commonjs/ui/components/button/PipButton.js +0 -72
  43. package/lib/commonjs/ui/components/button/PipButton.js.map +0 -1
  44. package/lib/commonjs/ui/components/button/PlayButton.js +0 -113
  45. package/lib/commonjs/ui/components/button/PlayButton.js.map +0 -1
  46. package/lib/commonjs/ui/components/button/SkipButton.js +0 -122
  47. package/lib/commonjs/ui/components/button/SkipButton.js.map +0 -1
  48. package/lib/commonjs/ui/components/button/actionbutton/ActionButton.js +0 -82
  49. package/lib/commonjs/ui/components/button/actionbutton/ActionButton.js.map +0 -1
  50. package/lib/commonjs/ui/components/button/barrel.js +0 -105
  51. package/lib/commonjs/ui/components/button/barrel.js.map +0 -1
  52. package/lib/commonjs/ui/components/button/svg/AirplaySvg.js +0 -22
  53. package/lib/commonjs/ui/components/button/svg/AirplaySvg.js.map +0 -1
  54. package/lib/commonjs/ui/components/button/svg/ArrowForwardSvg.js +0 -22
  55. package/lib/commonjs/ui/components/button/svg/ArrowForwardSvg.js.map +0 -1
  56. package/lib/commonjs/ui/components/button/svg/BackSvg.js +0 -22
  57. package/lib/commonjs/ui/components/button/svg/BackSvg.js.map +0 -1
  58. package/lib/commonjs/ui/components/button/svg/BackwardSvg.js +0 -22
  59. package/lib/commonjs/ui/components/button/svg/BackwardSvg.js.map +0 -1
  60. package/lib/commonjs/ui/components/button/svg/ChromecastSvg.js +0 -22
  61. package/lib/commonjs/ui/components/button/svg/ChromecastSvg.js.map +0 -1
  62. package/lib/commonjs/ui/components/button/svg/ErrorSvg.js +0 -22
  63. package/lib/commonjs/ui/components/button/svg/ErrorSvg.js.map +0 -1
  64. package/lib/commonjs/ui/components/button/svg/ForwardSvg.js +0 -22
  65. package/lib/commonjs/ui/components/button/svg/ForwardSvg.js.map +0 -1
  66. package/lib/commonjs/ui/components/button/svg/FullscreenEnterSvg.js +0 -22
  67. package/lib/commonjs/ui/components/button/svg/FullscreenEnterSvg.js.map +0 -1
  68. package/lib/commonjs/ui/components/button/svg/FullscreenExitSvg.js +0 -22
  69. package/lib/commonjs/ui/components/button/svg/FullscreenExitSvg.js.map +0 -1
  70. package/lib/commonjs/ui/components/button/svg/LanguageSvg.js +0 -22
  71. package/lib/commonjs/ui/components/button/svg/LanguageSvg.js.map +0 -1
  72. package/lib/commonjs/ui/components/button/svg/ListSvg.js +0 -22
  73. package/lib/commonjs/ui/components/button/svg/ListSvg.js.map +0 -1
  74. package/lib/commonjs/ui/components/button/svg/PauseSvg.js +0 -22
  75. package/lib/commonjs/ui/components/button/svg/PauseSvg.js.map +0 -1
  76. package/lib/commonjs/ui/components/button/svg/PipEnterSvg.js +0 -22
  77. package/lib/commonjs/ui/components/button/svg/PipEnterSvg.js.map +0 -1
  78. package/lib/commonjs/ui/components/button/svg/PipExitSvg.js +0 -22
  79. package/lib/commonjs/ui/components/button/svg/PipExitSvg.js.map +0 -1
  80. package/lib/commonjs/ui/components/button/svg/PlaySvg.js +0 -22
  81. package/lib/commonjs/ui/components/button/svg/PlaySvg.js.map +0 -1
  82. package/lib/commonjs/ui/components/button/svg/ReplaySvg.js +0 -22
  83. package/lib/commonjs/ui/components/button/svg/ReplaySvg.js.map +0 -1
  84. package/lib/commonjs/ui/components/button/svg/SettingsSvg.js +0 -22
  85. package/lib/commonjs/ui/components/button/svg/SettingsSvg.js.map +0 -1
  86. package/lib/commonjs/ui/components/button/svg/SvgUtils.js +0 -13
  87. package/lib/commonjs/ui/components/button/svg/SvgUtils.js.map +0 -1
  88. package/lib/commonjs/ui/components/button/svg/VolumeOffSvg.js +0 -22
  89. package/lib/commonjs/ui/components/button/svg/VolumeOffSvg.js.map +0 -1
  90. package/lib/commonjs/ui/components/button/svg/VolumeUpSvg.js +0 -22
  91. package/lib/commonjs/ui/components/button/svg/VolumeUpSvg.js.map +0 -1
  92. package/lib/commonjs/ui/components/button/svg/barrel.js +0 -226
  93. package/lib/commonjs/ui/components/button/svg/barrel.js.map +0 -1
  94. package/lib/commonjs/ui/components/button/svg/res/AirPlayButton.html +0 -6
  95. package/lib/commonjs/ui/components/button/svg/res/Airplay.svg +0 -1
  96. package/lib/commonjs/ui/components/button/svg/res/ChromecastButton.html +0 -25
  97. package/lib/commonjs/ui/components/button/svg/res/arrow_forward.svg +0 -1
  98. package/lib/commonjs/ui/components/button/svg/res/back.svg +0 -1
  99. package/lib/commonjs/ui/components/button/svg/res/backward.svg +0 -1
  100. package/lib/commonjs/ui/components/button/svg/res/chromecast-48px.svg +0 -1
  101. package/lib/commonjs/ui/components/button/svg/res/close.svg +0 -1
  102. package/lib/commonjs/ui/components/button/svg/res/error.svg +0 -1
  103. package/lib/commonjs/ui/components/button/svg/res/forward.svg +0 -1
  104. package/lib/commonjs/ui/components/button/svg/res/fullscreen-enter.svg +0 -1
  105. package/lib/commonjs/ui/components/button/svg/res/fullscreen-exit.svg +0 -1
  106. package/lib/commonjs/ui/components/button/svg/res/language.svg +0 -1
  107. package/lib/commonjs/ui/components/button/svg/res/list.svg +0 -1
  108. package/lib/commonjs/ui/components/button/svg/res/live.svg +0 -1
  109. package/lib/commonjs/ui/components/button/svg/res/pause.svg +0 -1
  110. package/lib/commonjs/ui/components/button/svg/res/pip_enter.svg +0 -1
  111. package/lib/commonjs/ui/components/button/svg/res/pip_exit.svg +0 -1
  112. package/lib/commonjs/ui/components/button/svg/res/play.svg +0 -1
  113. package/lib/commonjs/ui/components/button/svg/res/replay.svg +0 -1
  114. package/lib/commonjs/ui/components/button/svg/res/settings.svg +0 -1
  115. package/lib/commonjs/ui/components/button/svg/res/skip-next.svg +0 -1
  116. package/lib/commonjs/ui/components/button/svg/res/volume-high.svg +0 -1
  117. package/lib/commonjs/ui/components/button/svg/res/volume-low.svg +0 -1
  118. package/lib/commonjs/ui/components/button/svg/res/volume-off.svg +0 -1
  119. package/lib/commonjs/ui/components/controlbar/ControlBar.js +0 -61
  120. package/lib/commonjs/ui/components/controlbar/ControlBar.js.map +0 -1
  121. package/lib/commonjs/ui/components/controlbar/Spacer.js +0 -21
  122. package/lib/commonjs/ui/components/controlbar/Spacer.js.map +0 -1
  123. package/lib/commonjs/ui/components/controlbar/barrel.js +0 -28
  124. package/lib/commonjs/ui/components/controlbar/barrel.js.map +0 -1
  125. package/lib/commonjs/ui/components/menu/LanguageMenuButton.js +0 -175
  126. package/lib/commonjs/ui/components/menu/LanguageMenuButton.js.map +0 -1
  127. package/lib/commonjs/ui/components/menu/PlaybackRateSubMenu.js +0 -91
  128. package/lib/commonjs/ui/components/menu/PlaybackRateSubMenu.js.map +0 -1
  129. package/lib/commonjs/ui/components/menu/QualitySubMenu.js +0 -145
  130. package/lib/commonjs/ui/components/menu/QualitySubMenu.js.map +0 -1
  131. package/lib/commonjs/ui/components/menu/SettingsMenuButton.js +0 -36
  132. package/lib/commonjs/ui/components/menu/SettingsMenuButton.js.map +0 -1
  133. package/lib/commonjs/ui/components/menu/barrel.js +0 -61
  134. package/lib/commonjs/ui/components/menu/barrel.js.map +0 -1
  135. package/lib/commonjs/ui/components/menu/common/MenuButton.js +0 -34
  136. package/lib/commonjs/ui/components/menu/common/MenuButton.js.map +0 -1
  137. package/lib/commonjs/ui/components/menu/common/MenuRadioButton.js +0 -47
  138. package/lib/commonjs/ui/components/menu/common/MenuRadioButton.js.map +0 -1
  139. package/lib/commonjs/ui/components/menu/common/MenuTitle.js +0 -38
  140. package/lib/commonjs/ui/components/menu/common/MenuTitle.js.map +0 -1
  141. package/lib/commonjs/ui/components/menu/common/MenuView.js +0 -75
  142. package/lib/commonjs/ui/components/menu/common/MenuView.js.map +0 -1
  143. package/lib/commonjs/ui/components/menu/common/ScrollableMenu.js +0 -45
  144. package/lib/commonjs/ui/components/menu/common/ScrollableMenu.js.map +0 -1
  145. package/lib/commonjs/ui/components/menu/common/SubMenuWithButton.js +0 -65
  146. package/lib/commonjs/ui/components/menu/common/SubMenuWithButton.js.map +0 -1
  147. package/lib/commonjs/ui/components/menu/common/barrel.js +0 -72
  148. package/lib/commonjs/ui/components/menu/common/barrel.js.map +0 -1
  149. package/lib/commonjs/ui/components/message/CastMessage.js +0 -79
  150. package/lib/commonjs/ui/components/message/CastMessage.js.map +0 -1
  151. package/lib/commonjs/ui/components/message/ErrorDisplay.js +0 -53
  152. package/lib/commonjs/ui/components/message/ErrorDisplay.js.map +0 -1
  153. package/lib/commonjs/ui/components/message/barrel.js +0 -28
  154. package/lib/commonjs/ui/components/message/barrel.js.map +0 -1
  155. package/lib/commonjs/ui/components/seekbar/SeekBar.js +0 -194
  156. package/lib/commonjs/ui/components/seekbar/SeekBar.js.map +0 -1
  157. package/lib/commonjs/ui/components/seekbar/barrel.js +0 -28
  158. package/lib/commonjs/ui/components/seekbar/barrel.js.map +0 -1
  159. package/lib/commonjs/ui/components/seekbar/thumbnail/SingleThumbnailView.js +0 -45
  160. package/lib/commonjs/ui/components/seekbar/thumbnail/SingleThumbnailView.js.map +0 -1
  161. package/lib/commonjs/ui/components/seekbar/thumbnail/Thumbnail.js +0 -18
  162. package/lib/commonjs/ui/components/seekbar/thumbnail/Thumbnail.js.map +0 -1
  163. package/lib/commonjs/ui/components/seekbar/thumbnail/ThumbnailView.js +0 -256
  164. package/lib/commonjs/ui/components/seekbar/thumbnail/ThumbnailView.js.map +0 -1
  165. package/lib/commonjs/ui/components/seekbar/thumbnail/Urlpolyfill.js +0 -17
  166. package/lib/commonjs/ui/components/seekbar/thumbnail/Urlpolyfill.js.map +0 -1
  167. package/lib/commonjs/ui/components/seekbar/thumbnail/Urlpolyfill.web.js +0 -10
  168. package/lib/commonjs/ui/components/seekbar/thumbnail/Urlpolyfill.web.js.map +0 -1
  169. package/lib/commonjs/ui/components/seekbar/thumbnail/barrel.js +0 -28
  170. package/lib/commonjs/ui/components/seekbar/thumbnail/barrel.js.map +0 -1
  171. package/lib/commonjs/ui/components/timelabel/StaticTimeLabel.js +0 -55
  172. package/lib/commonjs/ui/components/timelabel/StaticTimeLabel.js.map +0 -1
  173. package/lib/commonjs/ui/components/timelabel/TimeLabel.js +0 -88
  174. package/lib/commonjs/ui/components/timelabel/TimeLabel.js.map +0 -1
  175. package/lib/commonjs/ui/components/timelabel/barrel.js +0 -28
  176. package/lib/commonjs/ui/components/timelabel/barrel.js.map +0 -1
  177. package/lib/commonjs/ui/components/uicontroller/UiContainer.js +0 -350
  178. package/lib/commonjs/ui/components/uicontroller/UiContainer.js.map +0 -1
  179. package/lib/commonjs/ui/components/uicontroller/UiControls.js +0 -6
  180. package/lib/commonjs/ui/components/uicontroller/UiControls.js.map +0 -1
  181. package/lib/commonjs/ui/components/uicontroller/barrel.js +0 -28
  182. package/lib/commonjs/ui/components/uicontroller/barrel.js.map +0 -1
  183. package/lib/commonjs/ui/components/util/PlayerContext.js +0 -19
  184. package/lib/commonjs/ui/components/util/PlayerContext.js.map +0 -1
  185. package/lib/commonjs/ui/components/util/TrackUtils.js +0 -69
  186. package/lib/commonjs/ui/components/util/TrackUtils.js.map +0 -1
  187. package/lib/commonjs/ui/components/util/barrel.js +0 -17
  188. package/lib/commonjs/ui/components/util/barrel.js.map +0 -1
  189. package/lib/commonjs/ui/utils/ArrayUtils.js +0 -19
  190. package/lib/commonjs/ui/utils/ArrayUtils.js.map +0 -1
  191. package/lib/commonjs/ui/utils/language/Language.js +0 -38
  192. package/lib/commonjs/ui/utils/language/Language.js.map +0 -1
  193. package/lib/commonjs/ui/utils/language/languages.json +0 -1658
  194. package/lib/module/ui/THEOplayerDefaultUi.js +0 -74
  195. package/lib/module/ui/THEOplayerDefaultUi.js.map +0 -1
  196. package/lib/module/ui/THEOplayerTheme.js +0 -41
  197. package/lib/module/ui/THEOplayerTheme.js.map +0 -1
  198. package/lib/module/ui/barrel.js +0 -4
  199. package/lib/module/ui/barrel.js.map +0 -1
  200. package/lib/module/ui/components/activityindicator/CenteredDelayedActivityIndicator.js +0 -90
  201. package/lib/module/ui/components/activityindicator/CenteredDelayedActivityIndicator.js.map +0 -1
  202. package/lib/module/ui/components/activityindicator/DelayedActivityIndicator.js +0 -26
  203. package/lib/module/ui/components/activityindicator/DelayedActivityIndicator.js.map +0 -1
  204. package/lib/module/ui/components/activityindicator/barrel.js +0 -3
  205. package/lib/module/ui/components/activityindicator/barrel.js.map +0 -1
  206. package/lib/module/ui/components/barrel.js +0 -10
  207. package/lib/module/ui/components/barrel.js.map +0 -1
  208. package/lib/module/ui/components/button/AirplayButton.js +0 -72
  209. package/lib/module/ui/components/button/AirplayButton.js.map +0 -1
  210. package/lib/module/ui/components/button/ChromecastButton.js +0 -56
  211. package/lib/module/ui/components/button/ChromecastButton.js.map +0 -1
  212. package/lib/module/ui/components/button/ChromecastButton.web.js +0 -72
  213. package/lib/module/ui/components/button/ChromecastButton.web.js.map +0 -1
  214. package/lib/module/ui/components/button/FullscreenButton.js +0 -63
  215. package/lib/module/ui/components/button/FullscreenButton.js.map +0 -1
  216. package/lib/module/ui/components/button/MuteButton.js +0 -57
  217. package/lib/module/ui/components/button/MuteButton.js.map +0 -1
  218. package/lib/module/ui/components/button/PipButton.js +0 -63
  219. package/lib/module/ui/components/button/PipButton.js.map +0 -1
  220. package/lib/module/ui/components/button/PlayButton.js +0 -104
  221. package/lib/module/ui/components/button/PlayButton.js.map +0 -1
  222. package/lib/module/ui/components/button/SkipButton.js +0 -113
  223. package/lib/module/ui/components/button/SkipButton.js.map +0 -1
  224. package/lib/module/ui/components/button/actionbutton/ActionButton.js +0 -72
  225. package/lib/module/ui/components/button/actionbutton/ActionButton.js.map +0 -1
  226. package/lib/module/ui/components/button/barrel.js +0 -10
  227. package/lib/module/ui/components/button/barrel.js.map +0 -1
  228. package/lib/module/ui/components/button/svg/AirplaySvg.js +0 -12
  229. package/lib/module/ui/components/button/svg/AirplaySvg.js.map +0 -1
  230. package/lib/module/ui/components/button/svg/ArrowForwardSvg.js +0 -12
  231. package/lib/module/ui/components/button/svg/ArrowForwardSvg.js.map +0 -1
  232. package/lib/module/ui/components/button/svg/BackSvg.js +0 -12
  233. package/lib/module/ui/components/button/svg/BackSvg.js.map +0 -1
  234. package/lib/module/ui/components/button/svg/BackwardSvg.js +0 -12
  235. package/lib/module/ui/components/button/svg/BackwardSvg.js.map +0 -1
  236. package/lib/module/ui/components/button/svg/ChromecastSvg.js +0 -12
  237. package/lib/module/ui/components/button/svg/ChromecastSvg.js.map +0 -1
  238. package/lib/module/ui/components/button/svg/ErrorSvg.js +0 -12
  239. package/lib/module/ui/components/button/svg/ErrorSvg.js.map +0 -1
  240. package/lib/module/ui/components/button/svg/ForwardSvg.js +0 -12
  241. package/lib/module/ui/components/button/svg/ForwardSvg.js.map +0 -1
  242. package/lib/module/ui/components/button/svg/FullscreenEnterSvg.js +0 -12
  243. package/lib/module/ui/components/button/svg/FullscreenEnterSvg.js.map +0 -1
  244. package/lib/module/ui/components/button/svg/FullscreenExitSvg.js +0 -12
  245. package/lib/module/ui/components/button/svg/FullscreenExitSvg.js.map +0 -1
  246. package/lib/module/ui/components/button/svg/LanguageSvg.js +0 -12
  247. package/lib/module/ui/components/button/svg/LanguageSvg.js.map +0 -1
  248. package/lib/module/ui/components/button/svg/ListSvg.js +0 -12
  249. package/lib/module/ui/components/button/svg/ListSvg.js.map +0 -1
  250. package/lib/module/ui/components/button/svg/PauseSvg.js +0 -12
  251. package/lib/module/ui/components/button/svg/PauseSvg.js.map +0 -1
  252. package/lib/module/ui/components/button/svg/PipEnterSvg.js +0 -12
  253. package/lib/module/ui/components/button/svg/PipEnterSvg.js.map +0 -1
  254. package/lib/module/ui/components/button/svg/PipExitSvg.js +0 -12
  255. package/lib/module/ui/components/button/svg/PipExitSvg.js.map +0 -1
  256. package/lib/module/ui/components/button/svg/PlaySvg.js +0 -12
  257. package/lib/module/ui/components/button/svg/PlaySvg.js.map +0 -1
  258. package/lib/module/ui/components/button/svg/ReplaySvg.js +0 -12
  259. package/lib/module/ui/components/button/svg/ReplaySvg.js.map +0 -1
  260. package/lib/module/ui/components/button/svg/SettingsSvg.js +0 -12
  261. package/lib/module/ui/components/button/svg/SettingsSvg.js.map +0 -1
  262. package/lib/module/ui/components/button/svg/SvgUtils.js +0 -5
  263. package/lib/module/ui/components/button/svg/SvgUtils.js.map +0 -1
  264. package/lib/module/ui/components/button/svg/VolumeOffSvg.js +0 -12
  265. package/lib/module/ui/components/button/svg/VolumeOffSvg.js.map +0 -1
  266. package/lib/module/ui/components/button/svg/VolumeUpSvg.js +0 -12
  267. package/lib/module/ui/components/button/svg/VolumeUpSvg.js.map +0 -1
  268. package/lib/module/ui/components/button/svg/barrel.js +0 -21
  269. package/lib/module/ui/components/button/svg/barrel.js.map +0 -1
  270. package/lib/module/ui/components/button/svg/res/AirPlayButton.html +0 -6
  271. package/lib/module/ui/components/button/svg/res/Airplay.svg +0 -1
  272. package/lib/module/ui/components/button/svg/res/ChromecastButton.html +0 -25
  273. package/lib/module/ui/components/button/svg/res/arrow_forward.svg +0 -1
  274. package/lib/module/ui/components/button/svg/res/back.svg +0 -1
  275. package/lib/module/ui/components/button/svg/res/backward.svg +0 -1
  276. package/lib/module/ui/components/button/svg/res/chromecast-48px.svg +0 -1
  277. package/lib/module/ui/components/button/svg/res/close.svg +0 -1
  278. package/lib/module/ui/components/button/svg/res/error.svg +0 -1
  279. package/lib/module/ui/components/button/svg/res/forward.svg +0 -1
  280. package/lib/module/ui/components/button/svg/res/fullscreen-enter.svg +0 -1
  281. package/lib/module/ui/components/button/svg/res/fullscreen-exit.svg +0 -1
  282. package/lib/module/ui/components/button/svg/res/language.svg +0 -1
  283. package/lib/module/ui/components/button/svg/res/list.svg +0 -1
  284. package/lib/module/ui/components/button/svg/res/live.svg +0 -1
  285. package/lib/module/ui/components/button/svg/res/pause.svg +0 -1
  286. package/lib/module/ui/components/button/svg/res/pip_enter.svg +0 -1
  287. package/lib/module/ui/components/button/svg/res/pip_exit.svg +0 -1
  288. package/lib/module/ui/components/button/svg/res/play.svg +0 -1
  289. package/lib/module/ui/components/button/svg/res/replay.svg +0 -1
  290. package/lib/module/ui/components/button/svg/res/settings.svg +0 -1
  291. package/lib/module/ui/components/button/svg/res/skip-next.svg +0 -1
  292. package/lib/module/ui/components/button/svg/res/volume-high.svg +0 -1
  293. package/lib/module/ui/components/button/svg/res/volume-low.svg +0 -1
  294. package/lib/module/ui/components/button/svg/res/volume-off.svg +0 -1
  295. package/lib/module/ui/components/controlbar/ControlBar.js +0 -52
  296. package/lib/module/ui/components/controlbar/ControlBar.js.map +0 -1
  297. package/lib/module/ui/components/controlbar/Spacer.js +0 -14
  298. package/lib/module/ui/components/controlbar/Spacer.js.map +0 -1
  299. package/lib/module/ui/components/controlbar/barrel.js +0 -3
  300. package/lib/module/ui/components/controlbar/barrel.js.map +0 -1
  301. package/lib/module/ui/components/menu/LanguageMenuButton.js +0 -165
  302. package/lib/module/ui/components/menu/LanguageMenuButton.js.map +0 -1
  303. package/lib/module/ui/components/menu/PlaybackRateSubMenu.js +0 -80
  304. package/lib/module/ui/components/menu/PlaybackRateSubMenu.js.map +0 -1
  305. package/lib/module/ui/components/menu/QualitySubMenu.js +0 -135
  306. package/lib/module/ui/components/menu/QualitySubMenu.js.map +0 -1
  307. package/lib/module/ui/components/menu/SettingsMenuButton.js +0 -28
  308. package/lib/module/ui/components/menu/SettingsMenuButton.js.map +0 -1
  309. package/lib/module/ui/components/menu/barrel.js +0 -6
  310. package/lib/module/ui/components/menu/barrel.js.map +0 -1
  311. package/lib/module/ui/components/menu/common/MenuButton.js +0 -26
  312. package/lib/module/ui/components/menu/common/MenuButton.js.map +0 -1
  313. package/lib/module/ui/components/menu/common/MenuRadioButton.js +0 -38
  314. package/lib/module/ui/components/menu/common/MenuRadioButton.js.map +0 -1
  315. package/lib/module/ui/components/menu/common/MenuTitle.js +0 -29
  316. package/lib/module/ui/components/menu/common/MenuTitle.js.map +0 -1
  317. package/lib/module/ui/components/menu/common/MenuView.js +0 -65
  318. package/lib/module/ui/components/menu/common/MenuView.js.map +0 -1
  319. package/lib/module/ui/components/menu/common/ScrollableMenu.js +0 -36
  320. package/lib/module/ui/components/menu/common/ScrollableMenu.js.map +0 -1
  321. package/lib/module/ui/components/menu/common/SubMenuWithButton.js +0 -56
  322. package/lib/module/ui/components/menu/common/SubMenuWithButton.js.map +0 -1
  323. package/lib/module/ui/components/menu/common/barrel.js +0 -7
  324. package/lib/module/ui/components/menu/common/barrel.js.map +0 -1
  325. package/lib/module/ui/components/message/CastMessage.js +0 -70
  326. package/lib/module/ui/components/message/CastMessage.js.map +0 -1
  327. package/lib/module/ui/components/message/ErrorDisplay.js +0 -46
  328. package/lib/module/ui/components/message/ErrorDisplay.js.map +0 -1
  329. package/lib/module/ui/components/message/barrel.js +0 -3
  330. package/lib/module/ui/components/message/barrel.js.map +0 -1
  331. package/lib/module/ui/components/seekbar/SeekBar.js +0 -184
  332. package/lib/module/ui/components/seekbar/SeekBar.js.map +0 -1
  333. package/lib/module/ui/components/seekbar/barrel.js +0 -3
  334. package/lib/module/ui/components/seekbar/barrel.js.map +0 -1
  335. package/lib/module/ui/components/seekbar/thumbnail/SingleThumbnailView.js +0 -37
  336. package/lib/module/ui/components/seekbar/thumbnail/SingleThumbnailView.js.map +0 -1
  337. package/lib/module/ui/components/seekbar/thumbnail/Thumbnail.js +0 -11
  338. package/lib/module/ui/components/seekbar/thumbnail/Thumbnail.js.map +0 -1
  339. package/lib/module/ui/components/seekbar/thumbnail/ThumbnailView.js +0 -246
  340. package/lib/module/ui/components/seekbar/thumbnail/ThumbnailView.js.map +0 -1
  341. package/lib/module/ui/components/seekbar/thumbnail/Urlpolyfill.js +0 -2
  342. package/lib/module/ui/components/seekbar/thumbnail/Urlpolyfill.js.map +0 -1
  343. package/lib/module/ui/components/seekbar/thumbnail/Urlpolyfill.web.js +0 -4
  344. package/lib/module/ui/components/seekbar/thumbnail/Urlpolyfill.web.js.map +0 -1
  345. package/lib/module/ui/components/seekbar/thumbnail/barrel.js +0 -3
  346. package/lib/module/ui/components/seekbar/thumbnail/barrel.js.map +0 -1
  347. package/lib/module/ui/components/timelabel/StaticTimeLabel.js +0 -48
  348. package/lib/module/ui/components/timelabel/StaticTimeLabel.js.map +0 -1
  349. package/lib/module/ui/components/timelabel/TimeLabel.js +0 -78
  350. package/lib/module/ui/components/timelabel/TimeLabel.js.map +0 -1
  351. package/lib/module/ui/components/timelabel/barrel.js +0 -3
  352. package/lib/module/ui/components/timelabel/barrel.js.map +0 -1
  353. package/lib/module/ui/components/uicontroller/UiContainer.js +0 -336
  354. package/lib/module/ui/components/uicontroller/UiContainer.js.map +0 -1
  355. package/lib/module/ui/components/uicontroller/UiControls.js +0 -2
  356. package/lib/module/ui/components/uicontroller/UiControls.js.map +0 -1
  357. package/lib/module/ui/components/uicontroller/barrel.js +0 -3
  358. package/lib/module/ui/components/uicontroller/barrel.js.map +0 -1
  359. package/lib/module/ui/components/util/PlayerContext.js +0 -11
  360. package/lib/module/ui/components/util/PlayerContext.js.map +0 -1
  361. package/lib/module/ui/components/util/TrackUtils.js +0 -60
  362. package/lib/module/ui/components/util/TrackUtils.js.map +0 -1
  363. package/lib/module/ui/components/util/barrel.js +0 -2
  364. package/lib/module/ui/components/util/barrel.js.map +0 -1
  365. package/lib/module/ui/utils/ArrayUtils.js +0 -12
  366. package/lib/module/ui/utils/ArrayUtils.js.map +0 -1
  367. package/lib/module/ui/utils/language/Language.js +0 -27
  368. package/lib/module/ui/utils/language/Language.js.map +0 -1
  369. package/lib/module/ui/utils/language/languages.json +0 -1658
  370. package/lib/typescript/ui/THEOplayerDefaultUi.d.ts +0 -35
  371. package/lib/typescript/ui/THEOplayerTheme.d.ts +0 -84
  372. package/lib/typescript/ui/barrel.d.ts +0 -3
  373. package/lib/typescript/ui/components/activityindicator/CenteredDelayedActivityIndicator.d.ts +0 -25
  374. package/lib/typescript/ui/components/activityindicator/DelayedActivityIndicator.d.ts +0 -9
  375. package/lib/typescript/ui/components/activityindicator/barrel.d.ts +0 -2
  376. package/lib/typescript/ui/components/barrel.d.ts +0 -9
  377. package/lib/typescript/ui/components/button/AirplayButton.d.ts +0 -18
  378. package/lib/typescript/ui/components/button/ChromecastButton.d.ts +0 -19
  379. package/lib/typescript/ui/components/button/ChromecastButton.web.d.ts +0 -19
  380. package/lib/typescript/ui/components/button/FullscreenButton.d.ts +0 -17
  381. package/lib/typescript/ui/components/button/MuteButton.d.ts +0 -16
  382. package/lib/typescript/ui/components/button/PipButton.d.ts +0 -17
  383. package/lib/typescript/ui/components/button/PlayButton.d.ts +0 -28
  384. package/lib/typescript/ui/components/button/SkipButton.d.ts +0 -33
  385. package/lib/typescript/ui/components/button/actionbutton/ActionButton.d.ts +0 -41
  386. package/lib/typescript/ui/components/button/barrel.d.ts +0 -9
  387. package/lib/typescript/ui/components/button/svg/AirplaySvg.d.ts +0 -3
  388. package/lib/typescript/ui/components/button/svg/ArrowForwardSvg.d.ts +0 -3
  389. package/lib/typescript/ui/components/button/svg/BackSvg.d.ts +0 -3
  390. package/lib/typescript/ui/components/button/svg/BackwardSvg.d.ts +0 -3
  391. package/lib/typescript/ui/components/button/svg/ChromecastSvg.d.ts +0 -3
  392. package/lib/typescript/ui/components/button/svg/ErrorSvg.d.ts +0 -3
  393. package/lib/typescript/ui/components/button/svg/ForwardSvg.d.ts +0 -3
  394. package/lib/typescript/ui/components/button/svg/FullscreenEnterSvg.d.ts +0 -3
  395. package/lib/typescript/ui/components/button/svg/FullscreenExitSvg.d.ts +0 -3
  396. package/lib/typescript/ui/components/button/svg/LanguageSvg.d.ts +0 -3
  397. package/lib/typescript/ui/components/button/svg/ListSvg.d.ts +0 -3
  398. package/lib/typescript/ui/components/button/svg/PauseSvg.d.ts +0 -3
  399. package/lib/typescript/ui/components/button/svg/PipEnterSvg.d.ts +0 -3
  400. package/lib/typescript/ui/components/button/svg/PipExitSvg.d.ts +0 -3
  401. package/lib/typescript/ui/components/button/svg/PlaySvg.d.ts +0 -3
  402. package/lib/typescript/ui/components/button/svg/ReplaySvg.d.ts +0 -3
  403. package/lib/typescript/ui/components/button/svg/SettingsSvg.d.ts +0 -3
  404. package/lib/typescript/ui/components/button/svg/SvgUtils.d.ts +0 -3
  405. package/lib/typescript/ui/components/button/svg/VolumeOffSvg.d.ts +0 -3
  406. package/lib/typescript/ui/components/button/svg/VolumeUpSvg.d.ts +0 -3
  407. package/lib/typescript/ui/components/button/svg/barrel.d.ts +0 -20
  408. package/lib/typescript/ui/components/controlbar/ControlBar.d.ts +0 -39
  409. package/lib/typescript/ui/components/controlbar/Spacer.d.ts +0 -5
  410. package/lib/typescript/ui/components/controlbar/barrel.d.ts +0 -2
  411. package/lib/typescript/ui/components/menu/LanguageMenuButton.d.ts +0 -40
  412. package/lib/typescript/ui/components/menu/PlaybackRateSubMenu.d.ts +0 -36
  413. package/lib/typescript/ui/components/menu/QualitySubMenu.d.ts +0 -29
  414. package/lib/typescript/ui/components/menu/SettingsMenuButton.d.ts +0 -12
  415. package/lib/typescript/ui/components/menu/barrel.d.ts +0 -5
  416. package/lib/typescript/ui/components/menu/common/MenuButton.d.ts +0 -25
  417. package/lib/typescript/ui/components/menu/common/MenuRadioButton.d.ts +0 -33
  418. package/lib/typescript/ui/components/menu/common/MenuTitle.d.ts +0 -20
  419. package/lib/typescript/ui/components/menu/common/MenuView.d.ts +0 -21
  420. package/lib/typescript/ui/components/menu/common/ScrollableMenu.d.ts +0 -23
  421. package/lib/typescript/ui/components/menu/common/SubMenuWithButton.d.ts +0 -29
  422. package/lib/typescript/ui/components/menu/common/barrel.d.ts +0 -6
  423. package/lib/typescript/ui/components/message/CastMessage.d.ts +0 -16
  424. package/lib/typescript/ui/components/message/ErrorDisplay.d.ts +0 -12
  425. package/lib/typescript/ui/components/message/barrel.d.ts +0 -2
  426. package/lib/typescript/ui/components/seekbar/SeekBar.d.ts +0 -41
  427. package/lib/typescript/ui/components/seekbar/barrel.d.ts +0 -2
  428. package/lib/typescript/ui/components/seekbar/thumbnail/SingleThumbnailView.d.ts +0 -8
  429. package/lib/typescript/ui/components/seekbar/thumbnail/Thumbnail.d.ts +0 -56
  430. package/lib/typescript/ui/components/seekbar/thumbnail/ThumbnailView.d.ts +0 -60
  431. package/lib/typescript/ui/components/seekbar/thumbnail/Urlpolyfill.d.ts +0 -1
  432. package/lib/typescript/ui/components/seekbar/thumbnail/Urlpolyfill.web.d.ts +0 -8
  433. package/lib/typescript/ui/components/seekbar/thumbnail/barrel.d.ts +0 -2
  434. package/lib/typescript/ui/components/timelabel/StaticTimeLabel.d.ts +0 -24
  435. package/lib/typescript/ui/components/timelabel/TimeLabel.d.ts +0 -32
  436. package/lib/typescript/ui/components/timelabel/barrel.d.ts +0 -2
  437. package/lib/typescript/ui/components/uicontroller/UiContainer.d.ts +0 -115
  438. package/lib/typescript/ui/components/uicontroller/UiControls.d.ts +0 -14
  439. package/lib/typescript/ui/components/uicontroller/barrel.d.ts +0 -2
  440. package/lib/typescript/ui/components/util/PlayerContext.d.ts +0 -22
  441. package/lib/typescript/ui/components/util/TrackUtils.d.ts +0 -10
  442. package/lib/typescript/ui/components/util/barrel.d.ts +0 -1
  443. package/lib/typescript/ui/utils/ArrayUtils.d.ts +0 -2
  444. package/lib/typescript/ui/utils/language/Language.d.ts +0 -19
  445. package/src/ui/THEOplayerDefaultUi.tsx +0 -108
  446. package/src/ui/THEOplayerTheme.ts +0 -112
  447. package/src/ui/barrel.ts +0 -3
  448. package/src/ui/components/activityindicator/CenteredDelayedActivityIndicator.tsx +0 -96
  449. package/src/ui/components/activityindicator/DelayedActivityIndicator.tsx +0 -32
  450. package/src/ui/components/activityindicator/barrel.ts +0 -2
  451. package/src/ui/components/barrel.ts +0 -9
  452. package/src/ui/components/button/AirplayButton.tsx +0 -64
  453. package/src/ui/components/button/ChromecastButton.tsx +0 -60
  454. package/src/ui/components/button/ChromecastButton.web.tsx +0 -66
  455. package/src/ui/components/button/FullscreenButton.tsx +0 -60
  456. package/src/ui/components/button/MuteButton.tsx +0 -52
  457. package/src/ui/components/button/PipButton.tsx +0 -61
  458. package/src/ui/components/button/PlayButton.tsx +0 -107
  459. package/src/ui/components/button/SkipButton.tsx +0 -112
  460. package/src/ui/components/button/actionbutton/ActionButton.tsx +0 -105
  461. package/src/ui/components/button/barrel.ts +0 -9
  462. package/src/ui/components/button/svg/AirplaySvg.tsx +0 -18
  463. package/src/ui/components/button/svg/ArrowForwardSvg.tsx +0 -18
  464. package/src/ui/components/button/svg/BackSvg.tsx +0 -18
  465. package/src/ui/components/button/svg/BackwardSvg.tsx +0 -18
  466. package/src/ui/components/button/svg/ChromecastSvg.tsx +0 -18
  467. package/src/ui/components/button/svg/ErrorSvg.tsx +0 -18
  468. package/src/ui/components/button/svg/ForwardSvg.tsx +0 -18
  469. package/src/ui/components/button/svg/FullscreenEnterSvg.tsx +0 -18
  470. package/src/ui/components/button/svg/FullscreenExitSvg.tsx +0 -18
  471. package/src/ui/components/button/svg/LanguageSvg.tsx +0 -18
  472. package/src/ui/components/button/svg/ListSvg.tsx +0 -18
  473. package/src/ui/components/button/svg/PauseSvg.tsx +0 -18
  474. package/src/ui/components/button/svg/PipEnterSvg.tsx +0 -18
  475. package/src/ui/components/button/svg/PipExitSvg.tsx +0 -18
  476. package/src/ui/components/button/svg/PlaySvg.tsx +0 -18
  477. package/src/ui/components/button/svg/ReplaySvg.tsx +0 -18
  478. package/src/ui/components/button/svg/SettingsSvg.tsx +0 -18
  479. package/src/ui/components/button/svg/SvgUtils.ts +0 -4
  480. package/src/ui/components/button/svg/VolumeOffSvg.tsx +0 -18
  481. package/src/ui/components/button/svg/VolumeUpSvg.tsx +0 -18
  482. package/src/ui/components/button/svg/barrel.ts +0 -20
  483. package/src/ui/components/button/svg/res/AirPlayButton.html +0 -6
  484. package/src/ui/components/button/svg/res/Airplay.svg +0 -1
  485. package/src/ui/components/button/svg/res/ChromecastButton.html +0 -25
  486. package/src/ui/components/button/svg/res/arrow_forward.svg +0 -1
  487. package/src/ui/components/button/svg/res/back.svg +0 -1
  488. package/src/ui/components/button/svg/res/backward.svg +0 -1
  489. package/src/ui/components/button/svg/res/chromecast-48px.svg +0 -1
  490. package/src/ui/components/button/svg/res/close.svg +0 -1
  491. package/src/ui/components/button/svg/res/error.svg +0 -1
  492. package/src/ui/components/button/svg/res/forward.svg +0 -1
  493. package/src/ui/components/button/svg/res/fullscreen-enter.svg +0 -1
  494. package/src/ui/components/button/svg/res/fullscreen-exit.svg +0 -1
  495. package/src/ui/components/button/svg/res/language.svg +0 -1
  496. package/src/ui/components/button/svg/res/list.svg +0 -1
  497. package/src/ui/components/button/svg/res/live.svg +0 -1
  498. package/src/ui/components/button/svg/res/pause.svg +0 -1
  499. package/src/ui/components/button/svg/res/pip_enter.svg +0 -1
  500. package/src/ui/components/button/svg/res/pip_exit.svg +0 -1
  501. package/src/ui/components/button/svg/res/play.svg +0 -1
  502. package/src/ui/components/button/svg/res/replay.svg +0 -1
  503. package/src/ui/components/button/svg/res/settings.svg +0 -1
  504. package/src/ui/components/button/svg/res/skip-next.svg +0 -1
  505. package/src/ui/components/button/svg/res/volume-high.svg +0 -1
  506. package/src/ui/components/button/svg/res/volume-low.svg +0 -1
  507. package/src/ui/components/button/svg/res/volume-off.svg +0 -1
  508. package/src/ui/components/controlbar/ControlBar.tsx +0 -69
  509. package/src/ui/components/controlbar/Spacer.tsx +0 -9
  510. package/src/ui/components/controlbar/barrel.ts +0 -2
  511. package/src/ui/components/menu/LanguageMenuButton.tsx +0 -192
  512. package/src/ui/components/menu/PlaybackRateSubMenu.tsx +0 -93
  513. package/src/ui/components/menu/QualitySubMenu.tsx +0 -148
  514. package/src/ui/components/menu/SettingsMenuButton.tsx +0 -25
  515. package/src/ui/components/menu/barrel.ts +0 -5
  516. package/src/ui/components/menu/common/MenuButton.tsx +0 -49
  517. package/src/ui/components/menu/common/MenuRadioButton.tsx +0 -65
  518. package/src/ui/components/menu/common/MenuTitle.tsx +0 -37
  519. package/src/ui/components/menu/common/MenuView.tsx +0 -62
  520. package/src/ui/components/menu/common/ScrollableMenu.tsx +0 -43
  521. package/src/ui/components/menu/common/SubMenuWithButton.tsx +0 -58
  522. package/src/ui/components/menu/common/barrel.ts +0 -6
  523. package/src/ui/components/message/CastMessage.tsx +0 -74
  524. package/src/ui/components/message/ErrorDisplay.tsx +0 -43
  525. package/src/ui/components/message/barrel.ts +0 -2
  526. package/src/ui/components/seekbar/SeekBar.tsx +0 -178
  527. package/src/ui/components/seekbar/barrel.ts +0 -2
  528. package/src/ui/components/seekbar/thumbnail/SingleThumbnailView.tsx +0 -38
  529. package/src/ui/components/seekbar/thumbnail/Thumbnail.ts +0 -72
  530. package/src/ui/components/seekbar/thumbnail/ThumbnailView.tsx +0 -266
  531. package/src/ui/components/seekbar/thumbnail/Urlpolyfill.ts +0 -1
  532. package/src/ui/components/seekbar/thumbnail/Urlpolyfill.web.ts +0 -3
  533. package/src/ui/components/seekbar/thumbnail/barrel.ts +0 -2
  534. package/src/ui/components/timelabel/StaticTimeLabel.tsx +0 -63
  535. package/src/ui/components/timelabel/TimeLabel.tsx +0 -79
  536. package/src/ui/components/timelabel/barrel.ts +0 -2
  537. package/src/ui/components/uicontroller/UiContainer.tsx +0 -355
  538. package/src/ui/components/uicontroller/UiControls.ts +0 -31
  539. package/src/ui/components/uicontroller/barrel.ts +0 -2
  540. package/src/ui/components/util/PlayerContext.ts +0 -29
  541. package/src/ui/components/util/TrackUtils.ts +0 -62
  542. package/src/ui/components/util/barrel.ts +0 -1
  543. package/src/ui/utils/ArrayUtils.ts +0 -12
  544. package/src/ui/utils/language/Language.ts +0 -38
  545. package/src/ui/utils/language/languages.json +0 -1658
@@ -1,52 +0,0 @@
1
- import { ActionButton } from './actionbutton/ActionButton';
2
- import React, { PureComponent } from 'react';
3
- import { PlayerContext, UiContext } from '../util/PlayerContext';
4
- import { PlayerEventType, VolumeChangeEvent } from 'react-native-theoplayer';
5
- import { Platform } from 'react-native';
6
- import { VolumeOffSvg } from './svg/VolumeOffSvg';
7
- import { VolumeUpSvg } from './svg/VolumeUpSvg';
8
-
9
- interface MuteButtonState {
10
- muted: boolean;
11
- }
12
-
13
- /**
14
- * The default mute button for the `react-native-theoplayer` UI.
15
- */
16
- export class MuteButton extends PureComponent<unknown, MuteButtonState> {
17
- constructor(props: unknown) {
18
- super(props);
19
- this.state = { muted: false };
20
- }
21
-
22
- componentDidMount() {
23
- const player = (this.context as UiContext).player;
24
- player.addEventListener(PlayerEventType.VOLUME_CHANGE, this.onVolumeChange);
25
- this.setState({ muted: player.muted });
26
- }
27
-
28
- componentWillUnmount() {
29
- const player = (this.context as UiContext).player;
30
- player.removeEventListener(PlayerEventType.VOLUME_CHANGE, this.onVolumeChange);
31
- }
32
-
33
- private onVolumeChange = (_: VolumeChangeEvent) => {
34
- const player = (this.context as UiContext).player;
35
- this.setState({ muted: player.muted });
36
- };
37
-
38
- private toggleMuted = () => {
39
- const player = (this.context as UiContext).player;
40
- player.muted = !player.muted;
41
- };
42
-
43
- render() {
44
- const { muted } = this.state;
45
- if (Platform.isTV) {
46
- return <></>;
47
- }
48
- return <ActionButton svg={muted ? <VolumeOffSvg /> : <VolumeUpSvg />} onPress={this.toggleMuted} touchable={true} />;
49
- }
50
- }
51
-
52
- MuteButton.contextType = PlayerContext;
@@ -1,61 +0,0 @@
1
- import React, { PureComponent } from 'react';
2
- import type { PresentationModeChangeEvent } from 'react-native-theoplayer';
3
- import { PlayerEventType, PresentationMode } from 'react-native-theoplayer';
4
- import { Platform } from 'react-native';
5
- import { ActionButton } from './actionbutton/ActionButton';
6
- import { PlayerContext, UiContext } from '../util/PlayerContext';
7
- import { PipExitSvg } from './svg/PipExitSvg';
8
- import { PipEnterSvg } from './svg/PipEnterSvg';
9
-
10
- interface PipButtonState {
11
- presentationMode: PresentationMode;
12
- }
13
-
14
- /**
15
- * The default button to enable picture-in-picture for the `react-native-theoplayer` UI.
16
- */
17
- export class PipButton extends PureComponent<unknown, PipButtonState> {
18
- constructor(props: unknown) {
19
- super(props);
20
- this.state = { presentationMode: PresentationMode.inline };
21
- }
22
-
23
- componentDidMount() {
24
- const player = (this.context as UiContext).player;
25
- player.addEventListener(PlayerEventType.PRESENTATIONMODE_CHANGE, this.onPresentationModeChange);
26
- this.setState({ presentationMode: player.presentationMode });
27
- }
28
-
29
- componentWillUnmount() {
30
- const player = (this.context as UiContext).player;
31
- player.removeEventListener(PlayerEventType.PRESENTATIONMODE_CHANGE, this.onPresentationModeChange);
32
- }
33
-
34
- private readonly onPresentationModeChange = (event: PresentationModeChangeEvent) => {
35
- this.setState({ presentationMode: event.presentationMode });
36
- };
37
-
38
- private togglePip = () => {
39
- const player = (this.context as UiContext).player;
40
- switch (player.presentationMode) {
41
- case 'inline':
42
- case 'fullscreen':
43
- player.presentationMode = PresentationMode.pip;
44
- break;
45
- case 'picture-in-picture':
46
- player.presentationMode = PresentationMode.inline;
47
- break;
48
- }
49
- };
50
-
51
- render() {
52
- if (Platform.isTV) {
53
- return <></>;
54
- }
55
- const { presentationMode } = this.state;
56
-
57
- return <ActionButton svg={presentationMode === 'picture-in-picture' ? <PipExitSvg /> : <PipEnterSvg />} onPress={this.togglePip} />;
58
- }
59
- }
60
-
61
- PipButton.contextType = PlayerContext;
@@ -1,107 +0,0 @@
1
- import { ActionButton } from './actionbutton/ActionButton';
2
- import type { StyleProp, ViewStyle } from 'react-native';
3
- import React, { PureComponent } from 'react';
4
- import { PlayerEventType } from 'react-native-theoplayer';
5
- import { PlayerContext, UiContext } from '../util/PlayerContext';
6
- import { PlaySvg } from './svg/PlaySvg';
7
-
8
- import { PauseSvg } from './svg/PauseSvg';
9
- import { ReplaySvg } from './svg/ReplaySvg';
10
-
11
- interface PlayButtonProps {
12
- /**
13
- * The style overrides for the play/pause button.
14
- */
15
- style?: StyleProp<ViewStyle>;
16
- }
17
-
18
- interface PlayButtonState {
19
- paused: boolean;
20
- ended: boolean;
21
- }
22
-
23
- /**
24
- * The default play/pause button for the `react-native-theoplayer` UI.
25
- */
26
- export class PlayButton extends PureComponent<PlayButtonProps, PlayButtonState> {
27
- constructor(props: PlayButtonProps) {
28
- super(props);
29
- this.state = {
30
- paused: true,
31
- ended: false,
32
- };
33
- }
34
-
35
- componentDidMount() {
36
- const context = this.context as UiContext;
37
- context.player.addEventListener(PlayerEventType.PLAY, this.onPlay);
38
- context.player.addEventListener(PlayerEventType.PLAYING, this.onPlay);
39
- context.player.addEventListener(PlayerEventType.PAUSE, this.onPause);
40
- context.player.addEventListener(PlayerEventType.SOURCE_CHANGE, this.onSourceChange);
41
- context.player.addEventListener(PlayerEventType.ENDED, this.onEnded);
42
- context.player.addEventListener(PlayerEventType.SEEKING, this.onSeeking);
43
- this.setState({
44
- paused: context.player.paused,
45
- ended: context.player.currentTime === context.player.duration,
46
- });
47
- }
48
-
49
- componentWillUnmount() {
50
- const context = this.context as UiContext;
51
- context.player.removeEventListener(PlayerEventType.PLAY, this.onPlay);
52
- context.player.removeEventListener(PlayerEventType.PLAYING, this.onPlay);
53
- context.player.removeEventListener(PlayerEventType.PAUSE, this.onPause);
54
- context.player.removeEventListener(PlayerEventType.SOURCE_CHANGE, this.onSourceChange);
55
- context.player.removeEventListener(PlayerEventType.ENDED, this.onEnded);
56
- context.player.removeEventListener(PlayerEventType.SEEKING, this.onSeeking);
57
- }
58
-
59
- private onPlay = () => {
60
- const player = (this.context as UiContext).player;
61
- if (player.seeking) {
62
- return;
63
- }
64
- this.setState({ paused: false, ended: false });
65
- };
66
-
67
- private onPause = () => {
68
- const player = (this.context as UiContext).player;
69
- if (player.seeking) {
70
- return;
71
- }
72
- this.setState({ paused: true });
73
- };
74
-
75
- private onSourceChange = () => {
76
- const player = (this.context as UiContext).player;
77
- this.setState({ paused: player.paused });
78
- };
79
-
80
- private onEnded = () => {
81
- this.setState({ ended: true });
82
- };
83
-
84
- private onSeeking = () => {
85
- this.setState({ ended: false });
86
- };
87
-
88
- private togglePlayPause = () => {
89
- const player = (this.context as UiContext).player;
90
- if (player.paused) {
91
- player.play();
92
- } else {
93
- player.pause();
94
- }
95
- };
96
-
97
- render() {
98
- const { paused, ended } = this.state;
99
- const { style } = this.props;
100
-
101
- return (
102
- <ActionButton style={style} touchable={true} svg={ended ? <ReplaySvg /> : paused ? <PlaySvg /> : <PauseSvg />} onPress={this.togglePlayPause} />
103
- );
104
- }
105
- }
106
-
107
- PlayButton.contextType = PlayerContext;
@@ -1,112 +0,0 @@
1
- import { ActionButton } from './actionbutton/ActionButton';
2
- import React, { PureComponent } from 'react';
3
- import { PlayerContext, UiContext } from '../util/PlayerContext';
4
- import { ForwardSvg } from './svg/ForwardSvg';
5
- import type { StyleProp, ViewStyle } from 'react-native';
6
- import { Animated, Easing, StyleSheet, Text, TouchableOpacity, View } from 'react-native';
7
- import { BackwardSvg } from './svg/BackwardSvg';
8
- import { PlayerEventType, ProgressEvent } from 'react-native-theoplayer';
9
-
10
- interface SkipButtonProps {
11
- /**
12
- * The style overrides for the skip button.
13
- */
14
- style?: StyleProp<ViewStyle>;
15
- /**
16
- * The skip value for the skip button. This can be set to negative to skip backwards.
17
- */
18
- skip: number;
19
- /**
20
- * Whether the skip button should do a rotation animation when pressed instead of fading.
21
- */
22
- rotate?: boolean;
23
- }
24
-
25
- interface SkipButtonState {
26
- enabled: boolean;
27
- spinValue: Animated.Value;
28
- }
29
-
30
- /**
31
- * The default skip button for the `react-native-theoplayer` UI.
32
- */
33
- export class SkipButton extends PureComponent<SkipButtonProps, SkipButtonState> {
34
- constructor(props: SkipButtonProps) {
35
- super(props);
36
- this.state = { enabled: false, spinValue: new Animated.Value(0) };
37
- }
38
-
39
- componentDidMount() {
40
- const player = (this.context as UiContext).player;
41
- player.addEventListener(PlayerEventType.PROGRESS, this.onTimeupdate);
42
- this.setState({ enabled: player.seekable.length > 0 });
43
- }
44
-
45
- componentWillUnmount() {
46
- const player = (this.context as UiContext).player;
47
- player.removeEventListener(PlayerEventType.PROGRESS, this.onTimeupdate);
48
- }
49
-
50
- private readonly onTimeupdate = (event: ProgressEvent) => {
51
- this.setState({ enabled: event.seekable.length > 0 });
52
- };
53
-
54
- private readonly onPress = () => {
55
- const { skip, rotate } = this.props;
56
- const { spinValue } = this.state;
57
- const player = (this.context as UiContext).player;
58
- player.currentTime = player.currentTime + skip * 1e3;
59
-
60
- if (rotate === true) {
61
- Animated.timing(spinValue, {
62
- toValue: 0.1,
63
- duration: 100,
64
- easing: Easing.linear,
65
- useNativeDriver: true,
66
- }).start(() => {
67
- Animated.timing(spinValue, {
68
- toValue: 0,
69
- duration: 100,
70
- easing: Easing.linear,
71
- useNativeDriver: true,
72
- }).start();
73
- });
74
- }
75
- };
76
-
77
- render() {
78
- const { style, skip, rotate } = this.props;
79
- const { enabled, spinValue } = this.state;
80
-
81
- if (!enabled) {
82
- return <></>;
83
- }
84
-
85
- const spin = spinValue.interpolate({
86
- inputRange: [0, 1],
87
- outputRange: skip >= 0 ? ['0deg', '360deg'] : ['360deg', '0deg'],
88
- });
89
-
90
- return (
91
- <>
92
- <PlayerContext.Consumer>
93
- {(context: UiContext) => (
94
- <Animated.View style={[{ height: '100%', aspectRatio: 1 }, style, { transform: [{ rotate: spin }] }]}>
95
- <TouchableOpacity
96
- activeOpacity={rotate === true ? 1 : 0.2}
97
- style={[{ height: '100%', aspectRatio: 1, justifyContent: 'center' }, style]}
98
- onPress={this.onPress}>
99
- <ActionButton touchable={false} svg={skip < 0 ? <BackwardSvg /> : <ForwardSvg />} />
100
- <View style={[StyleSheet.absoluteFill, { justifyContent: 'center' }]}>
101
- <Text style={[context.style.text, { color: context.style.colors.text }]}>{Math.abs(skip)}</Text>
102
- </View>
103
- </TouchableOpacity>
104
- </Animated.View>
105
- )}
106
- </PlayerContext.Consumer>
107
- </>
108
- );
109
- }
110
- }
111
-
112
- SkipButton.contextType = PlayerContext;
@@ -1,105 +0,0 @@
1
- import { Image, ImageSourcePropType, Platform, StyleProp, TouchableOpacity, View, ViewStyle } from 'react-native';
2
- import React, { ReactNode, useContext, useState } from 'react';
3
- import { SvgContext } from '../svg/SvgUtils';
4
- import { PlayerContext, UiContext } from '../../util/PlayerContext';
5
-
6
- export interface ActionButtonProps {
7
- /**
8
- * The image to put in the button.
9
- */
10
- icon?: ImageSourcePropType;
11
- /**
12
- * The SVG component to put in the button. Takes priority over images.
13
- */
14
- svg?: ReactNode;
15
- /**
16
- * Whether the button should be touchable. This is `true` by default.
17
- */
18
- touchable: boolean;
19
- /**
20
- * The callback when the button is pressed.
21
- */
22
- onPress?: () => void;
23
- /**
24
- * The styling overrides.
25
- */
26
- style?: StyleProp<ViewStyle>;
27
- /**
28
- * Whether the button should be highlighted with `ColorTheme.iconSelected` color.
29
- */
30
- highlighted?: boolean;
31
- }
32
-
33
- /**
34
- * The default style applied to the ActionButton
35
- */
36
- export const DEFAULT_ACTION_BUTTON_STYLE: ViewStyle = {
37
- height: '100%',
38
- aspectRatio: 1,
39
- padding: 5,
40
- };
41
-
42
- /**
43
- * The default button component that renders an image/svg source for the `react-native-theoplayer` UI.
44
- */
45
- export const ActionButton = (props: ActionButtonProps) => {
46
- const { icon, style, touchable, svg, onPress, highlighted } = props;
47
- const [focused, setFocused] = useState<boolean>(false);
48
- const context = useContext(PlayerContext);
49
-
50
- const shouldChangeTintColor = highlighted || (focused && Platform.isTV);
51
-
52
- if (!touchable) {
53
- return <View style={[DEFAULT_ACTION_BUTTON_STYLE, style]}>{svg}</View>;
54
- }
55
-
56
- const onTouch = () => {
57
- if (context.ui.buttonsEnabled_) {
58
- onPress?.();
59
- }
60
- context.ui.onUserAction_();
61
- };
62
-
63
- return (
64
- <PlayerContext.Consumer>
65
- {(context: UiContext) => (
66
- <TouchableOpacity
67
- style={[DEFAULT_ACTION_BUTTON_STYLE, style]}
68
- tvParallaxProperties={{ enabled: false }}
69
- onPress={onTouch}
70
- onFocus={() => {
71
- context.ui.onUserAction_();
72
- setFocused(true);
73
- }}
74
- onBlur={() => {
75
- setFocused(false);
76
- }}>
77
- {/* Give priority to SVG over image sources.*/}
78
- {svg && (
79
- <SvgContext.Provider
80
- value={{
81
- fill: shouldChangeTintColor ? context.style.colors.iconSelected : context.style.colors.icon,
82
- height: '100%',
83
- width: '100%',
84
- }}>
85
- <View>{svg}</View>
86
- </SvgContext.Provider>
87
- )}
88
- {svg === undefined && icon && (
89
- <Image
90
- style={[
91
- { height: '100%', width: '100%' },
92
- { tintColor: shouldChangeTintColor ? context.style.colors.iconSelected : context.style.colors.icon },
93
- ]}
94
- source={icon}
95
- />
96
- )}
97
- </TouchableOpacity>
98
- )}
99
- </PlayerContext.Consumer>
100
- );
101
- };
102
-
103
- ActionButton.defaultProps = {
104
- touchable: true,
105
- };
@@ -1,9 +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';
@@ -1,18 +0,0 @@
1
- import type { SvgProps } from 'react-native-svg';
2
- import Svg, { Path } from 'react-native-svg';
3
- import React from 'react';
4
- import { SvgContext } from './SvgUtils';
5
-
6
- export const AirplaySvg = (props: SvgProps) => {
7
- return (
8
- <SvgContext.Consumer>
9
- {(context) => (
10
- <>
11
- <Svg viewBox={'0 96 960 960'} {...context} {...props}>
12
- <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" />
13
- </Svg>
14
- </>
15
- )}
16
- </SvgContext.Consumer>
17
- );
18
- };
@@ -1,18 +0,0 @@
1
- import type { SvgProps } from 'react-native-svg';
2
- import Svg, { Path } from 'react-native-svg';
3
- import React from 'react';
4
- import { SvgContext } from './SvgUtils';
5
-
6
- export const ArrowForwardSvg = (props: SvgProps) => {
7
- return (
8
- <SvgContext.Consumer>
9
- {(context) => (
10
- <>
11
- <Svg viewBox={'0 0 24 24'} {...context} {...props}>
12
- <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" />
13
- </Svg>
14
- </>
15
- )}
16
- </SvgContext.Consumer>
17
- );
18
- };
@@ -1,18 +0,0 @@
1
- import type { SvgProps } from 'react-native-svg';
2
- import Svg, { Path } from 'react-native-svg';
3
- import React from 'react';
4
- import { SvgContext } from './SvgUtils';
5
-
6
- export const BackSvg = (props: SvgProps) => {
7
- return (
8
- <SvgContext.Consumer>
9
- {(context) => (
10
- <>
11
- <Svg viewBox={'0 0 24 24'} {...context} {...props}>
12
- <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" />
13
- </Svg>
14
- </>
15
- )}
16
- </SvgContext.Consumer>
17
- );
18
- };
@@ -1,18 +0,0 @@
1
- import type { SvgProps } from 'react-native-svg';
2
- import Svg, { Path } from 'react-native-svg';
3
- import React from 'react';
4
- import { SvgContext } from './SvgUtils';
5
-
6
- export const BackwardSvg = (props: SvgProps) => {
7
- return (
8
- <SvgContext.Consumer>
9
- {(context) => (
10
- <>
11
- <Svg viewBox={'0 96 960 960'} {...context} {...props}>
12
- <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" />
13
- </Svg>
14
- </>
15
- )}
16
- </SvgContext.Consumer>
17
- );
18
- };
@@ -1,18 +0,0 @@
1
- import type { SvgProps } from 'react-native-svg';
2
- import Svg, { Path } from 'react-native-svg';
3
- import React from 'react';
4
- import { SvgContext } from './SvgUtils';
5
-
6
- export const ChromecastSvg = (props: SvgProps) => {
7
- return (
8
- <SvgContext.Consumer>
9
- {(context) => (
10
- <>
11
- <Svg viewBox={'0 96 960 960'} {...context} {...props}>
12
- <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" />
13
- </Svg>
14
- </>
15
- )}
16
- </SvgContext.Consumer>
17
- );
18
- };
@@ -1,18 +0,0 @@
1
- import type { SvgProps } from 'react-native-svg';
2
- import Svg, { Path } from 'react-native-svg';
3
- import React from 'react';
4
- import { SvgContext } from './SvgUtils';
5
-
6
- export const ErrorSvg = (props: SvgProps) => {
7
- return (
8
- <SvgContext.Consumer>
9
- {(context) => (
10
- <>
11
- <Svg viewBox={'0 0 48 48'} {...context} {...props}>
12
- <Path d="M24.15 26.4q.85 0 1.425-.575.575-.575.575-1.425v-9.2q0-.8-.6-1.375t-1.4-.575q-.85 0-1.425.575-.575.575-.575 1.425v9.2q0 .8.6 1.375t1.4.575ZM24 34.7q1 0 1.625-.625t.625-1.625q0-.95-.625-1.625T24 30.15q-1 0-1.625.675t-.625 1.625q0 1 .625 1.625T24 34.7Zm0 10q-4.4 0-8.175-1.575Q12.05 41.55 9.25 38.75q-2.8-2.8-4.375-6.575Q3.3 28.4 3.3 24q0-4.35 1.575-8.125Q6.45 12.1 9.25 9.3q2.8-2.8 6.575-4.425Q19.6 3.25 24 3.25q4.35 0 8.125 1.625Q35.9 6.5 38.7 9.3q2.8 2.8 4.425 6.575Q44.75 19.65 44.75 24q0 4.4-1.625 8.175Q41.5 35.95 38.7 38.75q-2.8 2.8-6.575 4.375Q28.35 44.7 24 44.7Z" />
13
- </Svg>
14
- </>
15
- )}
16
- </SvgContext.Consumer>
17
- );
18
- };
@@ -1,18 +0,0 @@
1
- import type { SvgProps } from 'react-native-svg';
2
- import Svg, { Path } from 'react-native-svg';
3
- import React from 'react';
4
- import { SvgContext } from './SvgUtils';
5
-
6
- export const ForwardSvg = (props: SvgProps) => {
7
- return (
8
- <SvgContext.Consumer>
9
- {(context) => (
10
- <>
11
- <Svg viewBox={'0 96 960 960'} {...context} {...props}>
12
- <Path d="M480 983.174q-76.26 0-142.952-28.965-66.693-28.965-116.12-78.435-49.428-49.47-78.287-116.078-28.859-66.608-28.859-142.772 0-76.163 28.979-142.859 28.978-66.695 78.435-116.032 49.456-49.337 116.141-78.316 66.685-28.978 142.936-28.978h22.966l-53.456-53.456q-9.435-9.256-9.055-23.4.381-14.144 9.816-23.579 9.227-9.232 23.505-9.094 14.277.138 23.473 9.333l107.63 108.392q10.196 10.435 10.196 24.108 0 13.674-10.196 23.87l-107.63 107.391q-9.957 10.196-24.131 10.316-14.173.119-23.608-10.076-10.196-10.228-9.696-23.886t10.696-24.093l47.695-47.456h-23.239q-123.104 0-208.095 86.859-84.992 86.86-84.992 210.946t86.872 210.988Q355.896 914.804 480 914.804q114.213 0 199.408-75.994 85.196-75.994 97.201-189.223 2.239-14.196 12.174-23.413 9.934-9.217 23.301-9.217 14.845 0 24.489 9.837 9.645 9.836 8.645 23.032-12.104 142.982-117.324 238.165Q622.674 983.174 480 983.174Z" />
13
- </Svg>
14
- </>
15
- )}
16
- </SvgContext.Consumer>
17
- );
18
- };
@@ -1,18 +0,0 @@
1
- import type { SvgProps } from 'react-native-svg';
2
- import Svg, { Path } from 'react-native-svg';
3
- import React from 'react';
4
- import { SvgContext } from './SvgUtils';
5
-
6
- export const FullscreenEnterSvg = (props: SvgProps) => {
7
- return (
8
- <SvgContext.Consumer>
9
- {(context) => (
10
- <>
11
- <Svg viewBox={'0 0 24 24'} {...context} {...props}>
12
- <Path d="M5.9 19.225q-.475 0-.8-.325-.325-.325-.325-.8V15q0-.475.325-.812.325-.338.8-.338.5 0 .825.338.325.337.325.812v1.95H9q.475 0 .812.325.338.325.338.825 0 .475-.338.8-.337.325-.812.325Zm0-9.075q-.475 0-.8-.338-.325-.337-.325-.812V5.9q0-.475.325-.8.325-.325.8-.325H9q.475 0 .812.325.338.325.338.8 0 .5-.338.825-.337.325-.812.325H7.05V9q0 .475-.325.812-.325.338-.825.338Zm9.1 9.075q-.475 0-.812-.325-.338-.325-.338-.8 0-.5.338-.825.337-.325.812-.325h1.95V15q0-.475.325-.812.325-.338.825-.338.475 0 .8.338.325.337.325.812v3.1q0 .475-.325.8-.325.325-.8.325Zm3.1-9.075q-.5 0-.825-.338-.325-.337-.325-.812V7.05H15q-.475 0-.812-.325-.338-.325-.338-.825 0-.475.338-.8.337-.325.812-.325h3.1q.475 0 .8.325.325.325.325.8V9q0 .475-.325.812-.325.338-.8.338Z" />
13
- </Svg>
14
- </>
15
- )}
16
- </SvgContext.Consumer>
17
- );
18
- };
@@ -1,18 +0,0 @@
1
- import type { SvgProps } from 'react-native-svg';
2
- import Svg, { Path } from 'react-native-svg';
3
- import React from 'react';
4
- import { SvgContext } from './SvgUtils';
5
-
6
- export const FullscreenExitSvg = (props: SvgProps) => {
7
- return (
8
- <SvgContext.Consumer>
9
- {(context) => (
10
- <>
11
- <Svg viewBox={'0 0 24 24'} {...context} {...props}>
12
- <Path d="M9 19.225q-.475 0-.812-.325-.338-.325-.338-.8v-1.95H5.9q-.475 0-.8-.338-.325-.337-.325-.812 0-.475.325-.812.325-.338.8-.338H9q.475 0 .812.338.338.337.338.812v3.1q0 .475-.338.8-.337.325-.812.325ZM5.9 10.15q-.475 0-.8-.338-.325-.337-.325-.812 0-.475.325-.813.325-.337.8-.337h1.95V5.9q0-.475.338-.8.337-.325.812-.325.475 0 .812.325.338.325.338.8V9q0 .475-.338.812-.337.338-.812.338Zm9.1 9.075q-.475 0-.812-.325-.338-.325-.338-.8V15q0-.475.338-.812.337-.338.812-.338h3.1q.475 0 .8.338.325.337.325.812 0 .475-.325.812-.325.338-.8.338h-1.95v1.95q0 .475-.337.8-.338.325-.813.325Zm0-9.075q-.475 0-.812-.338-.338-.337-.338-.812V5.9q0-.475.338-.8.337-.325.812-.325.475 0 .813.325.337.325.337.8v1.95h1.95q.475 0 .8.337.325.338.325.813 0 .475-.325.812-.325.338-.8.338Z" />
13
- </Svg>
14
- </>
15
- )}
16
- </SvgContext.Consumer>
17
- );
18
- };
@@ -1,18 +0,0 @@
1
- import type { SvgProps } from 'react-native-svg';
2
- import Svg, { Path } from 'react-native-svg';
3
- import React from 'react';
4
- import { SvgContext } from './SvgUtils';
5
-
6
- export const LanguageSvg = (props: SvgProps) => {
7
- return (
8
- <SvgContext.Consumer>
9
- {(context) => (
10
- <>
11
- <Svg viewBox={'0 0 24 24'} {...context} {...props}>
12
- <Path d="M17.469 15.446a6.892 6.892 310 1 0-4.772 3.342l2.872.986q1.9.626 1.9-1.374v-2.954l2.598 1.5V22q0 2-1.899 1.374l-4.95-1.632a9.892 9.892 310 1 1 6.849-4.796zM7 10a1 1 180 1 0 0 2 1 1 180 1 0 0-2zm4 0a1 1 180 1 0 0 2h5a1 1 180 1 0 0-2zm-3 4a1 1 180 1 0 0 2h3a1 1 180 1 0 0-2zm7 0a1 1 180 1 0 0 2 1 1 180 1 0 0-2z" />
13
- </Svg>
14
- </>
15
- )}
16
- </SvgContext.Consumer>
17
- );
18
- };
@@ -1,18 +0,0 @@
1
- import type { SvgProps } from 'react-native-svg';
2
- import Svg, { Path } from 'react-native-svg';
3
- import React from 'react';
4
- import { SvgContext } from './SvgUtils';
5
-
6
- export const ListSvg = (props: SvgProps) => {
7
- return (
8
- <SvgContext.Consumer>
9
- {(context) => (
10
- <>
11
- <Svg viewBox={'0 96 960 960'} {...context} {...props}>
12
- <Path d="M400 856q-17 0-28.5-11.5T360 816q0-17 11.5-28.5T400 776h400q17 0 28.5 11.5T840 816q0 17-11.5 28.5T800 856H400Zm0-240q-17 0-28.5-11.5T360 576q0-17 11.5-28.5T400 536h400q17 0 28.5 11.5T840 576q0 17-11.5 28.5T800 616H400Zm0-240q-17 0-28.5-11.5T360 336q0-17 11.5-28.5T400 296h400q17 0 28.5 11.5T840 336q0 17-11.5 28.5T800 376H400ZM200 896q-33 0-56.5-23.5T120 816q0-33 23.5-56.5T200 736q33 0 56.5 23.5T280 816q0 33-23.5 56.5T200 896Zm0-240q-33 0-56.5-23.5T120 576q0-33 23.5-56.5T200 496q33 0 56.5 23.5T280 576q0 33-23.5 56.5T200 656Zm0-240q-33 0-56.5-23.5T120 336q0-33 23.5-56.5T200 256q33 0 56.5 23.5T280 336q0 33-23.5 56.5T200 416Z" />
13
- </Svg>
14
- </>
15
- )}
16
- </SvgContext.Consumer>
17
- );
18
- };