react-native-theoplayer 2.7.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 (593) hide show
  1. package/CHANGELOG.md +76 -13
  2. package/README.md +16 -2
  3. package/android/build.gradle +1 -1
  4. package/android/local/com/theoplayer/android-connector/mediasession/5.2.0-local/mediasession-5.2.0-local.aar +0 -0
  5. package/android/local/com/theoplayer/android-connector/mediasession/{4.12.0-local/mediasession-4.12.0-local.pom → 5.2.0-local/mediasession-5.2.0-local.pom} +1 -1
  6. package/android/local/com/theoplayer/android-connector/mediasession/maven-metadata-local.xml +4 -4
  7. package/android/src/main/AndroidManifest.xml +2 -2
  8. package/android/src/main/java/com/theoplayer/PlayerEventEmitter.kt +1 -1
  9. package/android/src/main/java/com/theoplayer/ReactTHEOplayerContext.kt +36 -20
  10. package/android/src/main/java/com/theoplayer/media/CustomMediaButtonReceiver.kt +25 -0
  11. package/android/src/main/java/com/theoplayer/{audio → media}/MediaNotificationBuilder.kt +6 -1
  12. package/android/src/main/java/com/theoplayer/{audio → media}/MediaPlaybackService.kt +39 -11
  13. package/android/src/main/java/com/theoplayer/source/SourceAdapter.kt +12 -0
  14. package/android/src/main/java/com/theoplayer/track/TrackListAdapter.kt +17 -13
  15. package/ios/contentprotection/THEOplayerRCTProxyContentProtectionIntegration.swift +19 -29
  16. package/lib/commonjs/api/cast/Chromecast.js.map +1 -1
  17. package/lib/commonjs/api/source/dash/DashPlaybackConfiguration.js.map +1 -1
  18. package/lib/commonjs/api/track/TextTrack.js.map +1 -1
  19. package/lib/commonjs/index.js +0 -12
  20. package/lib/commonjs/index.js.map +1 -1
  21. package/lib/commonjs/internal/adapter/THEOplayerAdapter.js +17 -0
  22. package/lib/commonjs/internal/adapter/THEOplayerAdapter.js.map +1 -1
  23. package/lib/commonjs/internal/adapter/web/FullscreenAPI.js +41 -0
  24. package/lib/commonjs/internal/adapter/web/FullscreenAPI.js.map +1 -0
  25. package/lib/commonjs/internal/adapter/web/WebPresentationModeManager.js +45 -39
  26. package/lib/commonjs/internal/adapter/web/WebPresentationModeManager.js.map +1 -1
  27. package/lib/commonjs/internal/utils/CommonUtils.js +10 -0
  28. package/lib/commonjs/internal/utils/CommonUtils.js.map +1 -0
  29. package/lib/module/api/cast/Chromecast.js.map +1 -1
  30. package/lib/module/api/source/dash/DashPlaybackConfiguration.js.map +1 -1
  31. package/lib/module/api/track/TextTrack.js.map +1 -1
  32. package/lib/module/index.js +0 -1
  33. package/lib/module/index.js.map +1 -1
  34. package/lib/module/internal/adapter/THEOplayerAdapter.js +18 -1
  35. package/lib/module/internal/adapter/THEOplayerAdapter.js.map +1 -1
  36. package/lib/module/internal/adapter/web/FullscreenAPI.js +34 -0
  37. package/lib/module/internal/adapter/web/FullscreenAPI.js.map +1 -0
  38. package/lib/module/internal/adapter/web/WebPresentationModeManager.js +45 -39
  39. package/lib/module/internal/adapter/web/WebPresentationModeManager.js.map +1 -1
  40. package/lib/module/internal/utils/CommonUtils.js +4 -0
  41. package/lib/module/internal/utils/CommonUtils.js.map +1 -0
  42. package/lib/typescript/api/cast/Chromecast.d.ts +1 -1
  43. package/lib/typescript/api/source/dash/DashPlaybackConfiguration.d.ts +52 -0
  44. package/lib/typescript/api/track/TextTrack.d.ts +2 -2
  45. package/lib/typescript/index.d.ts +0 -1
  46. package/lib/typescript/internal/adapter/THEOplayerAdapter.d.ts +1 -0
  47. package/lib/typescript/internal/adapter/web/FullscreenAPI.d.ts +9 -0
  48. package/lib/typescript/internal/utils/CommonUtils.d.ts +1 -0
  49. package/package.json +2 -8
  50. package/react-native-theoplayer.podspec +1 -1
  51. package/src/api/cast/Chromecast.ts +1 -1
  52. package/src/api/source/dash/DashPlaybackConfiguration.ts +56 -0
  53. package/src/api/track/TextTrack.ts +2 -2
  54. package/src/index.tsx +0 -1
  55. package/src/internal/adapter/THEOplayerAdapter.ts +19 -0
  56. package/src/internal/adapter/web/FullscreenAPI.ts +59 -0
  57. package/src/internal/adapter/web/WebPresentationModeManager.ts +29 -22
  58. package/src/internal/utils/CommonUtils.ts +3 -0
  59. package/android/local/com/theoplayer/android-connector/mediasession/4.12.0-local/mediasession-4.12.0-local.aar +0 -0
  60. package/lib/commonjs/ui/THEOplayerDefaultUi.js +0 -82
  61. package/lib/commonjs/ui/THEOplayerDefaultUi.js.map +0 -1
  62. package/lib/commonjs/ui/THEOplayerTheme.js +0 -48
  63. package/lib/commonjs/ui/THEOplayerTheme.js.map +0 -1
  64. package/lib/commonjs/ui/barrel.js +0 -39
  65. package/lib/commonjs/ui/barrel.js.map +0 -1
  66. package/lib/commonjs/ui/components/activityindicator/CenteredDelayedActivityIndicator.js +0 -99
  67. package/lib/commonjs/ui/components/activityindicator/CenteredDelayedActivityIndicator.js.map +0 -1
  68. package/lib/commonjs/ui/components/activityindicator/DelayedActivityIndicator.js +0 -35
  69. package/lib/commonjs/ui/components/activityindicator/DelayedActivityIndicator.js.map +0 -1
  70. package/lib/commonjs/ui/components/activityindicator/barrel.js +0 -28
  71. package/lib/commonjs/ui/components/activityindicator/barrel.js.map +0 -1
  72. package/lib/commonjs/ui/components/barrel.js +0 -105
  73. package/lib/commonjs/ui/components/barrel.js.map +0 -1
  74. package/lib/commonjs/ui/components/button/AirplayButton.js +0 -81
  75. package/lib/commonjs/ui/components/button/AirplayButton.js.map +0 -1
  76. package/lib/commonjs/ui/components/button/ChromecastButton.js +0 -66
  77. package/lib/commonjs/ui/components/button/ChromecastButton.js.map +0 -1
  78. package/lib/commonjs/ui/components/button/ChromecastButton.web.js +0 -82
  79. package/lib/commonjs/ui/components/button/ChromecastButton.web.js.map +0 -1
  80. package/lib/commonjs/ui/components/button/FullscreenButton.js +0 -72
  81. package/lib/commonjs/ui/components/button/FullscreenButton.js.map +0 -1
  82. package/lib/commonjs/ui/components/button/MuteButton.js +0 -66
  83. package/lib/commonjs/ui/components/button/MuteButton.js.map +0 -1
  84. package/lib/commonjs/ui/components/button/PipButton.js +0 -72
  85. package/lib/commonjs/ui/components/button/PipButton.js.map +0 -1
  86. package/lib/commonjs/ui/components/button/PlayButton.js +0 -113
  87. package/lib/commonjs/ui/components/button/PlayButton.js.map +0 -1
  88. package/lib/commonjs/ui/components/button/SkipButton.js +0 -122
  89. package/lib/commonjs/ui/components/button/SkipButton.js.map +0 -1
  90. package/lib/commonjs/ui/components/button/actionbutton/ActionButton.js +0 -82
  91. package/lib/commonjs/ui/components/button/actionbutton/ActionButton.js.map +0 -1
  92. package/lib/commonjs/ui/components/button/barrel.js +0 -105
  93. package/lib/commonjs/ui/components/button/barrel.js.map +0 -1
  94. package/lib/commonjs/ui/components/button/svg/AirplaySvg.js +0 -22
  95. package/lib/commonjs/ui/components/button/svg/AirplaySvg.js.map +0 -1
  96. package/lib/commonjs/ui/components/button/svg/ArrowForwardSvg.js +0 -22
  97. package/lib/commonjs/ui/components/button/svg/ArrowForwardSvg.js.map +0 -1
  98. package/lib/commonjs/ui/components/button/svg/BackSvg.js +0 -22
  99. package/lib/commonjs/ui/components/button/svg/BackSvg.js.map +0 -1
  100. package/lib/commonjs/ui/components/button/svg/BackwardSvg.js +0 -22
  101. package/lib/commonjs/ui/components/button/svg/BackwardSvg.js.map +0 -1
  102. package/lib/commonjs/ui/components/button/svg/ChromecastSvg.js +0 -22
  103. package/lib/commonjs/ui/components/button/svg/ChromecastSvg.js.map +0 -1
  104. package/lib/commonjs/ui/components/button/svg/ErrorSvg.js +0 -22
  105. package/lib/commonjs/ui/components/button/svg/ErrorSvg.js.map +0 -1
  106. package/lib/commonjs/ui/components/button/svg/ForwardSvg.js +0 -22
  107. package/lib/commonjs/ui/components/button/svg/ForwardSvg.js.map +0 -1
  108. package/lib/commonjs/ui/components/button/svg/FullscreenEnterSvg.js +0 -22
  109. package/lib/commonjs/ui/components/button/svg/FullscreenEnterSvg.js.map +0 -1
  110. package/lib/commonjs/ui/components/button/svg/FullscreenExitSvg.js +0 -22
  111. package/lib/commonjs/ui/components/button/svg/FullscreenExitSvg.js.map +0 -1
  112. package/lib/commonjs/ui/components/button/svg/LanguageSvg.js +0 -22
  113. package/lib/commonjs/ui/components/button/svg/LanguageSvg.js.map +0 -1
  114. package/lib/commonjs/ui/components/button/svg/ListSvg.js +0 -22
  115. package/lib/commonjs/ui/components/button/svg/ListSvg.js.map +0 -1
  116. package/lib/commonjs/ui/components/button/svg/PauseSvg.js +0 -22
  117. package/lib/commonjs/ui/components/button/svg/PauseSvg.js.map +0 -1
  118. package/lib/commonjs/ui/components/button/svg/PipEnterSvg.js +0 -22
  119. package/lib/commonjs/ui/components/button/svg/PipEnterSvg.js.map +0 -1
  120. package/lib/commonjs/ui/components/button/svg/PipExitSvg.js +0 -22
  121. package/lib/commonjs/ui/components/button/svg/PipExitSvg.js.map +0 -1
  122. package/lib/commonjs/ui/components/button/svg/PlaySvg.js +0 -22
  123. package/lib/commonjs/ui/components/button/svg/PlaySvg.js.map +0 -1
  124. package/lib/commonjs/ui/components/button/svg/ReplaySvg.js +0 -22
  125. package/lib/commonjs/ui/components/button/svg/ReplaySvg.js.map +0 -1
  126. package/lib/commonjs/ui/components/button/svg/SettingsSvg.js +0 -22
  127. package/lib/commonjs/ui/components/button/svg/SettingsSvg.js.map +0 -1
  128. package/lib/commonjs/ui/components/button/svg/SvgUtils.js +0 -13
  129. package/lib/commonjs/ui/components/button/svg/SvgUtils.js.map +0 -1
  130. package/lib/commonjs/ui/components/button/svg/VolumeOffSvg.js +0 -22
  131. package/lib/commonjs/ui/components/button/svg/VolumeOffSvg.js.map +0 -1
  132. package/lib/commonjs/ui/components/button/svg/VolumeUpSvg.js +0 -22
  133. package/lib/commonjs/ui/components/button/svg/VolumeUpSvg.js.map +0 -1
  134. package/lib/commonjs/ui/components/button/svg/barrel.js +0 -226
  135. package/lib/commonjs/ui/components/button/svg/barrel.js.map +0 -1
  136. package/lib/commonjs/ui/components/button/svg/res/AirPlayButton.html +0 -6
  137. package/lib/commonjs/ui/components/button/svg/res/Airplay.svg +0 -1
  138. package/lib/commonjs/ui/components/button/svg/res/ChromecastButton.html +0 -25
  139. package/lib/commonjs/ui/components/button/svg/res/arrow_forward.svg +0 -1
  140. package/lib/commonjs/ui/components/button/svg/res/back.svg +0 -1
  141. package/lib/commonjs/ui/components/button/svg/res/backward.svg +0 -1
  142. package/lib/commonjs/ui/components/button/svg/res/chromecast-48px.svg +0 -1
  143. package/lib/commonjs/ui/components/button/svg/res/close.svg +0 -1
  144. package/lib/commonjs/ui/components/button/svg/res/error.svg +0 -1
  145. package/lib/commonjs/ui/components/button/svg/res/forward.svg +0 -1
  146. package/lib/commonjs/ui/components/button/svg/res/fullscreen-enter.svg +0 -1
  147. package/lib/commonjs/ui/components/button/svg/res/fullscreen-exit.svg +0 -1
  148. package/lib/commonjs/ui/components/button/svg/res/language.svg +0 -1
  149. package/lib/commonjs/ui/components/button/svg/res/list.svg +0 -1
  150. package/lib/commonjs/ui/components/button/svg/res/live.svg +0 -1
  151. package/lib/commonjs/ui/components/button/svg/res/pause.svg +0 -1
  152. package/lib/commonjs/ui/components/button/svg/res/pip_enter.svg +0 -1
  153. package/lib/commonjs/ui/components/button/svg/res/pip_exit.svg +0 -1
  154. package/lib/commonjs/ui/components/button/svg/res/play.svg +0 -1
  155. package/lib/commonjs/ui/components/button/svg/res/replay.svg +0 -1
  156. package/lib/commonjs/ui/components/button/svg/res/settings.svg +0 -1
  157. package/lib/commonjs/ui/components/button/svg/res/skip-next.svg +0 -1
  158. package/lib/commonjs/ui/components/button/svg/res/volume-high.svg +0 -1
  159. package/lib/commonjs/ui/components/button/svg/res/volume-low.svg +0 -1
  160. package/lib/commonjs/ui/components/button/svg/res/volume-off.svg +0 -1
  161. package/lib/commonjs/ui/components/controlbar/ControlBar.js +0 -61
  162. package/lib/commonjs/ui/components/controlbar/ControlBar.js.map +0 -1
  163. package/lib/commonjs/ui/components/controlbar/Spacer.js +0 -21
  164. package/lib/commonjs/ui/components/controlbar/Spacer.js.map +0 -1
  165. package/lib/commonjs/ui/components/controlbar/barrel.js +0 -28
  166. package/lib/commonjs/ui/components/controlbar/barrel.js.map +0 -1
  167. package/lib/commonjs/ui/components/menu/LanguageMenuButton.js +0 -175
  168. package/lib/commonjs/ui/components/menu/LanguageMenuButton.js.map +0 -1
  169. package/lib/commonjs/ui/components/menu/PlaybackRateSubMenu.js +0 -91
  170. package/lib/commonjs/ui/components/menu/PlaybackRateSubMenu.js.map +0 -1
  171. package/lib/commonjs/ui/components/menu/QualitySubMenu.js +0 -145
  172. package/lib/commonjs/ui/components/menu/QualitySubMenu.js.map +0 -1
  173. package/lib/commonjs/ui/components/menu/SettingsMenuButton.js +0 -36
  174. package/lib/commonjs/ui/components/menu/SettingsMenuButton.js.map +0 -1
  175. package/lib/commonjs/ui/components/menu/barrel.js +0 -61
  176. package/lib/commonjs/ui/components/menu/barrel.js.map +0 -1
  177. package/lib/commonjs/ui/components/menu/common/MenuButton.js +0 -34
  178. package/lib/commonjs/ui/components/menu/common/MenuButton.js.map +0 -1
  179. package/lib/commonjs/ui/components/menu/common/MenuRadioButton.js +0 -47
  180. package/lib/commonjs/ui/components/menu/common/MenuRadioButton.js.map +0 -1
  181. package/lib/commonjs/ui/components/menu/common/MenuTitle.js +0 -38
  182. package/lib/commonjs/ui/components/menu/common/MenuTitle.js.map +0 -1
  183. package/lib/commonjs/ui/components/menu/common/MenuView.js +0 -75
  184. package/lib/commonjs/ui/components/menu/common/MenuView.js.map +0 -1
  185. package/lib/commonjs/ui/components/menu/common/ScrollableMenu.js +0 -45
  186. package/lib/commonjs/ui/components/menu/common/ScrollableMenu.js.map +0 -1
  187. package/lib/commonjs/ui/components/menu/common/SubMenuWithButton.js +0 -65
  188. package/lib/commonjs/ui/components/menu/common/SubMenuWithButton.js.map +0 -1
  189. package/lib/commonjs/ui/components/menu/common/barrel.js +0 -72
  190. package/lib/commonjs/ui/components/menu/common/barrel.js.map +0 -1
  191. package/lib/commonjs/ui/components/message/CastMessage.js +0 -79
  192. package/lib/commonjs/ui/components/message/CastMessage.js.map +0 -1
  193. package/lib/commonjs/ui/components/message/ErrorDisplay.js +0 -53
  194. package/lib/commonjs/ui/components/message/ErrorDisplay.js.map +0 -1
  195. package/lib/commonjs/ui/components/message/barrel.js +0 -28
  196. package/lib/commonjs/ui/components/message/barrel.js.map +0 -1
  197. package/lib/commonjs/ui/components/seekbar/SeekBar.js +0 -194
  198. package/lib/commonjs/ui/components/seekbar/SeekBar.js.map +0 -1
  199. package/lib/commonjs/ui/components/seekbar/barrel.js +0 -28
  200. package/lib/commonjs/ui/components/seekbar/barrel.js.map +0 -1
  201. package/lib/commonjs/ui/components/seekbar/thumbnail/SingleThumbnailView.js +0 -45
  202. package/lib/commonjs/ui/components/seekbar/thumbnail/SingleThumbnailView.js.map +0 -1
  203. package/lib/commonjs/ui/components/seekbar/thumbnail/Thumbnail.js +0 -18
  204. package/lib/commonjs/ui/components/seekbar/thumbnail/Thumbnail.js.map +0 -1
  205. package/lib/commonjs/ui/components/seekbar/thumbnail/ThumbnailView.js +0 -256
  206. package/lib/commonjs/ui/components/seekbar/thumbnail/ThumbnailView.js.map +0 -1
  207. package/lib/commonjs/ui/components/seekbar/thumbnail/Urlpolyfill.js +0 -17
  208. package/lib/commonjs/ui/components/seekbar/thumbnail/Urlpolyfill.js.map +0 -1
  209. package/lib/commonjs/ui/components/seekbar/thumbnail/Urlpolyfill.web.js +0 -17
  210. package/lib/commonjs/ui/components/seekbar/thumbnail/Urlpolyfill.web.js.map +0 -1
  211. package/lib/commonjs/ui/components/seekbar/thumbnail/barrel.js +0 -28
  212. package/lib/commonjs/ui/components/seekbar/thumbnail/barrel.js.map +0 -1
  213. package/lib/commonjs/ui/components/timelabel/StaticTimeLabel.js +0 -55
  214. package/lib/commonjs/ui/components/timelabel/StaticTimeLabel.js.map +0 -1
  215. package/lib/commonjs/ui/components/timelabel/TimeLabel.js +0 -88
  216. package/lib/commonjs/ui/components/timelabel/TimeLabel.js.map +0 -1
  217. package/lib/commonjs/ui/components/timelabel/barrel.js +0 -28
  218. package/lib/commonjs/ui/components/timelabel/barrel.js.map +0 -1
  219. package/lib/commonjs/ui/components/uicontroller/UiContainer.js +0 -350
  220. package/lib/commonjs/ui/components/uicontroller/UiContainer.js.map +0 -1
  221. package/lib/commonjs/ui/components/uicontroller/UiControls.js +0 -6
  222. package/lib/commonjs/ui/components/uicontroller/UiControls.js.map +0 -1
  223. package/lib/commonjs/ui/components/uicontroller/barrel.js +0 -28
  224. package/lib/commonjs/ui/components/uicontroller/barrel.js.map +0 -1
  225. package/lib/commonjs/ui/components/util/PlayerContext.js +0 -19
  226. package/lib/commonjs/ui/components/util/PlayerContext.js.map +0 -1
  227. package/lib/commonjs/ui/components/util/TrackUtils.js +0 -69
  228. package/lib/commonjs/ui/components/util/TrackUtils.js.map +0 -1
  229. package/lib/commonjs/ui/components/util/barrel.js +0 -17
  230. package/lib/commonjs/ui/components/util/barrel.js.map +0 -1
  231. package/lib/commonjs/ui/utils/ArrayUtils.js +0 -19
  232. package/lib/commonjs/ui/utils/ArrayUtils.js.map +0 -1
  233. package/lib/commonjs/ui/utils/language/Language.js +0 -38
  234. package/lib/commonjs/ui/utils/language/Language.js.map +0 -1
  235. package/lib/commonjs/ui/utils/language/languages.json +0 -1658
  236. package/lib/commonjs/web/platform/BrowserDetection.js +0 -34
  237. package/lib/commonjs/web/platform/BrowserDetection.js.map +0 -1
  238. package/lib/module/ui/THEOplayerDefaultUi.js +0 -74
  239. package/lib/module/ui/THEOplayerDefaultUi.js.map +0 -1
  240. package/lib/module/ui/THEOplayerTheme.js +0 -41
  241. package/lib/module/ui/THEOplayerTheme.js.map +0 -1
  242. package/lib/module/ui/barrel.js +0 -4
  243. package/lib/module/ui/barrel.js.map +0 -1
  244. package/lib/module/ui/components/activityindicator/CenteredDelayedActivityIndicator.js +0 -90
  245. package/lib/module/ui/components/activityindicator/CenteredDelayedActivityIndicator.js.map +0 -1
  246. package/lib/module/ui/components/activityindicator/DelayedActivityIndicator.js +0 -26
  247. package/lib/module/ui/components/activityindicator/DelayedActivityIndicator.js.map +0 -1
  248. package/lib/module/ui/components/activityindicator/barrel.js +0 -3
  249. package/lib/module/ui/components/activityindicator/barrel.js.map +0 -1
  250. package/lib/module/ui/components/barrel.js +0 -10
  251. package/lib/module/ui/components/barrel.js.map +0 -1
  252. package/lib/module/ui/components/button/AirplayButton.js +0 -72
  253. package/lib/module/ui/components/button/AirplayButton.js.map +0 -1
  254. package/lib/module/ui/components/button/ChromecastButton.js +0 -56
  255. package/lib/module/ui/components/button/ChromecastButton.js.map +0 -1
  256. package/lib/module/ui/components/button/ChromecastButton.web.js +0 -72
  257. package/lib/module/ui/components/button/ChromecastButton.web.js.map +0 -1
  258. package/lib/module/ui/components/button/FullscreenButton.js +0 -63
  259. package/lib/module/ui/components/button/FullscreenButton.js.map +0 -1
  260. package/lib/module/ui/components/button/MuteButton.js +0 -57
  261. package/lib/module/ui/components/button/MuteButton.js.map +0 -1
  262. package/lib/module/ui/components/button/PipButton.js +0 -63
  263. package/lib/module/ui/components/button/PipButton.js.map +0 -1
  264. package/lib/module/ui/components/button/PlayButton.js +0 -104
  265. package/lib/module/ui/components/button/PlayButton.js.map +0 -1
  266. package/lib/module/ui/components/button/SkipButton.js +0 -113
  267. package/lib/module/ui/components/button/SkipButton.js.map +0 -1
  268. package/lib/module/ui/components/button/actionbutton/ActionButton.js +0 -72
  269. package/lib/module/ui/components/button/actionbutton/ActionButton.js.map +0 -1
  270. package/lib/module/ui/components/button/barrel.js +0 -10
  271. package/lib/module/ui/components/button/barrel.js.map +0 -1
  272. package/lib/module/ui/components/button/svg/AirplaySvg.js +0 -12
  273. package/lib/module/ui/components/button/svg/AirplaySvg.js.map +0 -1
  274. package/lib/module/ui/components/button/svg/ArrowForwardSvg.js +0 -12
  275. package/lib/module/ui/components/button/svg/ArrowForwardSvg.js.map +0 -1
  276. package/lib/module/ui/components/button/svg/BackSvg.js +0 -12
  277. package/lib/module/ui/components/button/svg/BackSvg.js.map +0 -1
  278. package/lib/module/ui/components/button/svg/BackwardSvg.js +0 -12
  279. package/lib/module/ui/components/button/svg/BackwardSvg.js.map +0 -1
  280. package/lib/module/ui/components/button/svg/ChromecastSvg.js +0 -12
  281. package/lib/module/ui/components/button/svg/ChromecastSvg.js.map +0 -1
  282. package/lib/module/ui/components/button/svg/ErrorSvg.js +0 -12
  283. package/lib/module/ui/components/button/svg/ErrorSvg.js.map +0 -1
  284. package/lib/module/ui/components/button/svg/ForwardSvg.js +0 -12
  285. package/lib/module/ui/components/button/svg/ForwardSvg.js.map +0 -1
  286. package/lib/module/ui/components/button/svg/FullscreenEnterSvg.js +0 -12
  287. package/lib/module/ui/components/button/svg/FullscreenEnterSvg.js.map +0 -1
  288. package/lib/module/ui/components/button/svg/FullscreenExitSvg.js +0 -12
  289. package/lib/module/ui/components/button/svg/FullscreenExitSvg.js.map +0 -1
  290. package/lib/module/ui/components/button/svg/LanguageSvg.js +0 -12
  291. package/lib/module/ui/components/button/svg/LanguageSvg.js.map +0 -1
  292. package/lib/module/ui/components/button/svg/ListSvg.js +0 -12
  293. package/lib/module/ui/components/button/svg/ListSvg.js.map +0 -1
  294. package/lib/module/ui/components/button/svg/PauseSvg.js +0 -12
  295. package/lib/module/ui/components/button/svg/PauseSvg.js.map +0 -1
  296. package/lib/module/ui/components/button/svg/PipEnterSvg.js +0 -12
  297. package/lib/module/ui/components/button/svg/PipEnterSvg.js.map +0 -1
  298. package/lib/module/ui/components/button/svg/PipExitSvg.js +0 -12
  299. package/lib/module/ui/components/button/svg/PipExitSvg.js.map +0 -1
  300. package/lib/module/ui/components/button/svg/PlaySvg.js +0 -12
  301. package/lib/module/ui/components/button/svg/PlaySvg.js.map +0 -1
  302. package/lib/module/ui/components/button/svg/ReplaySvg.js +0 -12
  303. package/lib/module/ui/components/button/svg/ReplaySvg.js.map +0 -1
  304. package/lib/module/ui/components/button/svg/SettingsSvg.js +0 -12
  305. package/lib/module/ui/components/button/svg/SettingsSvg.js.map +0 -1
  306. package/lib/module/ui/components/button/svg/SvgUtils.js +0 -5
  307. package/lib/module/ui/components/button/svg/SvgUtils.js.map +0 -1
  308. package/lib/module/ui/components/button/svg/VolumeOffSvg.js +0 -12
  309. package/lib/module/ui/components/button/svg/VolumeOffSvg.js.map +0 -1
  310. package/lib/module/ui/components/button/svg/VolumeUpSvg.js +0 -12
  311. package/lib/module/ui/components/button/svg/VolumeUpSvg.js.map +0 -1
  312. package/lib/module/ui/components/button/svg/barrel.js +0 -21
  313. package/lib/module/ui/components/button/svg/barrel.js.map +0 -1
  314. package/lib/module/ui/components/button/svg/res/AirPlayButton.html +0 -6
  315. package/lib/module/ui/components/button/svg/res/Airplay.svg +0 -1
  316. package/lib/module/ui/components/button/svg/res/ChromecastButton.html +0 -25
  317. package/lib/module/ui/components/button/svg/res/arrow_forward.svg +0 -1
  318. package/lib/module/ui/components/button/svg/res/back.svg +0 -1
  319. package/lib/module/ui/components/button/svg/res/backward.svg +0 -1
  320. package/lib/module/ui/components/button/svg/res/chromecast-48px.svg +0 -1
  321. package/lib/module/ui/components/button/svg/res/close.svg +0 -1
  322. package/lib/module/ui/components/button/svg/res/error.svg +0 -1
  323. package/lib/module/ui/components/button/svg/res/forward.svg +0 -1
  324. package/lib/module/ui/components/button/svg/res/fullscreen-enter.svg +0 -1
  325. package/lib/module/ui/components/button/svg/res/fullscreen-exit.svg +0 -1
  326. package/lib/module/ui/components/button/svg/res/language.svg +0 -1
  327. package/lib/module/ui/components/button/svg/res/list.svg +0 -1
  328. package/lib/module/ui/components/button/svg/res/live.svg +0 -1
  329. package/lib/module/ui/components/button/svg/res/pause.svg +0 -1
  330. package/lib/module/ui/components/button/svg/res/pip_enter.svg +0 -1
  331. package/lib/module/ui/components/button/svg/res/pip_exit.svg +0 -1
  332. package/lib/module/ui/components/button/svg/res/play.svg +0 -1
  333. package/lib/module/ui/components/button/svg/res/replay.svg +0 -1
  334. package/lib/module/ui/components/button/svg/res/settings.svg +0 -1
  335. package/lib/module/ui/components/button/svg/res/skip-next.svg +0 -1
  336. package/lib/module/ui/components/button/svg/res/volume-high.svg +0 -1
  337. package/lib/module/ui/components/button/svg/res/volume-low.svg +0 -1
  338. package/lib/module/ui/components/button/svg/res/volume-off.svg +0 -1
  339. package/lib/module/ui/components/controlbar/ControlBar.js +0 -52
  340. package/lib/module/ui/components/controlbar/ControlBar.js.map +0 -1
  341. package/lib/module/ui/components/controlbar/Spacer.js +0 -14
  342. package/lib/module/ui/components/controlbar/Spacer.js.map +0 -1
  343. package/lib/module/ui/components/controlbar/barrel.js +0 -3
  344. package/lib/module/ui/components/controlbar/barrel.js.map +0 -1
  345. package/lib/module/ui/components/menu/LanguageMenuButton.js +0 -165
  346. package/lib/module/ui/components/menu/LanguageMenuButton.js.map +0 -1
  347. package/lib/module/ui/components/menu/PlaybackRateSubMenu.js +0 -80
  348. package/lib/module/ui/components/menu/PlaybackRateSubMenu.js.map +0 -1
  349. package/lib/module/ui/components/menu/QualitySubMenu.js +0 -135
  350. package/lib/module/ui/components/menu/QualitySubMenu.js.map +0 -1
  351. package/lib/module/ui/components/menu/SettingsMenuButton.js +0 -28
  352. package/lib/module/ui/components/menu/SettingsMenuButton.js.map +0 -1
  353. package/lib/module/ui/components/menu/barrel.js +0 -6
  354. package/lib/module/ui/components/menu/barrel.js.map +0 -1
  355. package/lib/module/ui/components/menu/common/MenuButton.js +0 -26
  356. package/lib/module/ui/components/menu/common/MenuButton.js.map +0 -1
  357. package/lib/module/ui/components/menu/common/MenuRadioButton.js +0 -38
  358. package/lib/module/ui/components/menu/common/MenuRadioButton.js.map +0 -1
  359. package/lib/module/ui/components/menu/common/MenuTitle.js +0 -29
  360. package/lib/module/ui/components/menu/common/MenuTitle.js.map +0 -1
  361. package/lib/module/ui/components/menu/common/MenuView.js +0 -65
  362. package/lib/module/ui/components/menu/common/MenuView.js.map +0 -1
  363. package/lib/module/ui/components/menu/common/ScrollableMenu.js +0 -36
  364. package/lib/module/ui/components/menu/common/ScrollableMenu.js.map +0 -1
  365. package/lib/module/ui/components/menu/common/SubMenuWithButton.js +0 -56
  366. package/lib/module/ui/components/menu/common/SubMenuWithButton.js.map +0 -1
  367. package/lib/module/ui/components/menu/common/barrel.js +0 -7
  368. package/lib/module/ui/components/menu/common/barrel.js.map +0 -1
  369. package/lib/module/ui/components/message/CastMessage.js +0 -70
  370. package/lib/module/ui/components/message/CastMessage.js.map +0 -1
  371. package/lib/module/ui/components/message/ErrorDisplay.js +0 -46
  372. package/lib/module/ui/components/message/ErrorDisplay.js.map +0 -1
  373. package/lib/module/ui/components/message/barrel.js +0 -3
  374. package/lib/module/ui/components/message/barrel.js.map +0 -1
  375. package/lib/module/ui/components/seekbar/SeekBar.js +0 -184
  376. package/lib/module/ui/components/seekbar/SeekBar.js.map +0 -1
  377. package/lib/module/ui/components/seekbar/barrel.js +0 -3
  378. package/lib/module/ui/components/seekbar/barrel.js.map +0 -1
  379. package/lib/module/ui/components/seekbar/thumbnail/SingleThumbnailView.js +0 -37
  380. package/lib/module/ui/components/seekbar/thumbnail/SingleThumbnailView.js.map +0 -1
  381. package/lib/module/ui/components/seekbar/thumbnail/Thumbnail.js +0 -11
  382. package/lib/module/ui/components/seekbar/thumbnail/Thumbnail.js.map +0 -1
  383. package/lib/module/ui/components/seekbar/thumbnail/ThumbnailView.js +0 -246
  384. package/lib/module/ui/components/seekbar/thumbnail/ThumbnailView.js.map +0 -1
  385. package/lib/module/ui/components/seekbar/thumbnail/Urlpolyfill.js +0 -2
  386. package/lib/module/ui/components/seekbar/thumbnail/Urlpolyfill.js.map +0 -1
  387. package/lib/module/ui/components/seekbar/thumbnail/Urlpolyfill.web.js +0 -3
  388. package/lib/module/ui/components/seekbar/thumbnail/Urlpolyfill.web.js.map +0 -1
  389. package/lib/module/ui/components/seekbar/thumbnail/barrel.js +0 -3
  390. package/lib/module/ui/components/seekbar/thumbnail/barrel.js.map +0 -1
  391. package/lib/module/ui/components/timelabel/StaticTimeLabel.js +0 -48
  392. package/lib/module/ui/components/timelabel/StaticTimeLabel.js.map +0 -1
  393. package/lib/module/ui/components/timelabel/TimeLabel.js +0 -78
  394. package/lib/module/ui/components/timelabel/TimeLabel.js.map +0 -1
  395. package/lib/module/ui/components/timelabel/barrel.js +0 -3
  396. package/lib/module/ui/components/timelabel/barrel.js.map +0 -1
  397. package/lib/module/ui/components/uicontroller/UiContainer.js +0 -336
  398. package/lib/module/ui/components/uicontroller/UiContainer.js.map +0 -1
  399. package/lib/module/ui/components/uicontroller/UiControls.js +0 -2
  400. package/lib/module/ui/components/uicontroller/UiControls.js.map +0 -1
  401. package/lib/module/ui/components/uicontroller/barrel.js +0 -3
  402. package/lib/module/ui/components/uicontroller/barrel.js.map +0 -1
  403. package/lib/module/ui/components/util/PlayerContext.js +0 -11
  404. package/lib/module/ui/components/util/PlayerContext.js.map +0 -1
  405. package/lib/module/ui/components/util/TrackUtils.js +0 -60
  406. package/lib/module/ui/components/util/TrackUtils.js.map +0 -1
  407. package/lib/module/ui/components/util/barrel.js +0 -2
  408. package/lib/module/ui/components/util/barrel.js.map +0 -1
  409. package/lib/module/ui/utils/ArrayUtils.js +0 -12
  410. package/lib/module/ui/utils/ArrayUtils.js.map +0 -1
  411. package/lib/module/ui/utils/language/Language.js +0 -27
  412. package/lib/module/ui/utils/language/Language.js.map +0 -1
  413. package/lib/module/ui/utils/language/languages.json +0 -1658
  414. package/lib/module/web/platform/BrowserDetection.js +0 -27
  415. package/lib/module/web/platform/BrowserDetection.js.map +0 -1
  416. package/lib/typescript/ui/THEOplayerDefaultUi.d.ts +0 -35
  417. package/lib/typescript/ui/THEOplayerTheme.d.ts +0 -84
  418. package/lib/typescript/ui/barrel.d.ts +0 -3
  419. package/lib/typescript/ui/components/activityindicator/CenteredDelayedActivityIndicator.d.ts +0 -25
  420. package/lib/typescript/ui/components/activityindicator/DelayedActivityIndicator.d.ts +0 -9
  421. package/lib/typescript/ui/components/activityindicator/barrel.d.ts +0 -2
  422. package/lib/typescript/ui/components/barrel.d.ts +0 -9
  423. package/lib/typescript/ui/components/button/AirplayButton.d.ts +0 -18
  424. package/lib/typescript/ui/components/button/ChromecastButton.d.ts +0 -19
  425. package/lib/typescript/ui/components/button/ChromecastButton.web.d.ts +0 -19
  426. package/lib/typescript/ui/components/button/FullscreenButton.d.ts +0 -17
  427. package/lib/typescript/ui/components/button/MuteButton.d.ts +0 -16
  428. package/lib/typescript/ui/components/button/PipButton.d.ts +0 -17
  429. package/lib/typescript/ui/components/button/PlayButton.d.ts +0 -28
  430. package/lib/typescript/ui/components/button/SkipButton.d.ts +0 -33
  431. package/lib/typescript/ui/components/button/actionbutton/ActionButton.d.ts +0 -41
  432. package/lib/typescript/ui/components/button/barrel.d.ts +0 -9
  433. package/lib/typescript/ui/components/button/svg/AirplaySvg.d.ts +0 -3
  434. package/lib/typescript/ui/components/button/svg/ArrowForwardSvg.d.ts +0 -3
  435. package/lib/typescript/ui/components/button/svg/BackSvg.d.ts +0 -3
  436. package/lib/typescript/ui/components/button/svg/BackwardSvg.d.ts +0 -3
  437. package/lib/typescript/ui/components/button/svg/ChromecastSvg.d.ts +0 -3
  438. package/lib/typescript/ui/components/button/svg/ErrorSvg.d.ts +0 -3
  439. package/lib/typescript/ui/components/button/svg/ForwardSvg.d.ts +0 -3
  440. package/lib/typescript/ui/components/button/svg/FullscreenEnterSvg.d.ts +0 -3
  441. package/lib/typescript/ui/components/button/svg/FullscreenExitSvg.d.ts +0 -3
  442. package/lib/typescript/ui/components/button/svg/LanguageSvg.d.ts +0 -3
  443. package/lib/typescript/ui/components/button/svg/ListSvg.d.ts +0 -3
  444. package/lib/typescript/ui/components/button/svg/PauseSvg.d.ts +0 -3
  445. package/lib/typescript/ui/components/button/svg/PipEnterSvg.d.ts +0 -3
  446. package/lib/typescript/ui/components/button/svg/PipExitSvg.d.ts +0 -3
  447. package/lib/typescript/ui/components/button/svg/PlaySvg.d.ts +0 -3
  448. package/lib/typescript/ui/components/button/svg/ReplaySvg.d.ts +0 -3
  449. package/lib/typescript/ui/components/button/svg/SettingsSvg.d.ts +0 -3
  450. package/lib/typescript/ui/components/button/svg/SvgUtils.d.ts +0 -3
  451. package/lib/typescript/ui/components/button/svg/VolumeOffSvg.d.ts +0 -3
  452. package/lib/typescript/ui/components/button/svg/VolumeUpSvg.d.ts +0 -3
  453. package/lib/typescript/ui/components/button/svg/barrel.d.ts +0 -20
  454. package/lib/typescript/ui/components/controlbar/ControlBar.d.ts +0 -39
  455. package/lib/typescript/ui/components/controlbar/Spacer.d.ts +0 -5
  456. package/lib/typescript/ui/components/controlbar/barrel.d.ts +0 -2
  457. package/lib/typescript/ui/components/menu/LanguageMenuButton.d.ts +0 -40
  458. package/lib/typescript/ui/components/menu/PlaybackRateSubMenu.d.ts +0 -36
  459. package/lib/typescript/ui/components/menu/QualitySubMenu.d.ts +0 -29
  460. package/lib/typescript/ui/components/menu/SettingsMenuButton.d.ts +0 -12
  461. package/lib/typescript/ui/components/menu/barrel.d.ts +0 -5
  462. package/lib/typescript/ui/components/menu/common/MenuButton.d.ts +0 -25
  463. package/lib/typescript/ui/components/menu/common/MenuRadioButton.d.ts +0 -33
  464. package/lib/typescript/ui/components/menu/common/MenuTitle.d.ts +0 -20
  465. package/lib/typescript/ui/components/menu/common/MenuView.d.ts +0 -21
  466. package/lib/typescript/ui/components/menu/common/ScrollableMenu.d.ts +0 -23
  467. package/lib/typescript/ui/components/menu/common/SubMenuWithButton.d.ts +0 -29
  468. package/lib/typescript/ui/components/menu/common/barrel.d.ts +0 -6
  469. package/lib/typescript/ui/components/message/CastMessage.d.ts +0 -16
  470. package/lib/typescript/ui/components/message/ErrorDisplay.d.ts +0 -12
  471. package/lib/typescript/ui/components/message/barrel.d.ts +0 -2
  472. package/lib/typescript/ui/components/seekbar/SeekBar.d.ts +0 -41
  473. package/lib/typescript/ui/components/seekbar/barrel.d.ts +0 -2
  474. package/lib/typescript/ui/components/seekbar/thumbnail/SingleThumbnailView.d.ts +0 -8
  475. package/lib/typescript/ui/components/seekbar/thumbnail/Thumbnail.d.ts +0 -56
  476. package/lib/typescript/ui/components/seekbar/thumbnail/ThumbnailView.d.ts +0 -60
  477. package/lib/typescript/ui/components/seekbar/thumbnail/Urlpolyfill.d.ts +0 -1
  478. package/lib/typescript/ui/components/seekbar/thumbnail/Urlpolyfill.web.d.ts +0 -1
  479. package/lib/typescript/ui/components/seekbar/thumbnail/barrel.d.ts +0 -2
  480. package/lib/typescript/ui/components/timelabel/StaticTimeLabel.d.ts +0 -24
  481. package/lib/typescript/ui/components/timelabel/TimeLabel.d.ts +0 -32
  482. package/lib/typescript/ui/components/timelabel/barrel.d.ts +0 -2
  483. package/lib/typescript/ui/components/uicontroller/UiContainer.d.ts +0 -115
  484. package/lib/typescript/ui/components/uicontroller/UiControls.d.ts +0 -14
  485. package/lib/typescript/ui/components/uicontroller/barrel.d.ts +0 -2
  486. package/lib/typescript/ui/components/util/PlayerContext.d.ts +0 -22
  487. package/lib/typescript/ui/components/util/TrackUtils.d.ts +0 -10
  488. package/lib/typescript/ui/components/util/barrel.d.ts +0 -1
  489. package/lib/typescript/ui/utils/ArrayUtils.d.ts +0 -2
  490. package/lib/typescript/ui/utils/language/Language.d.ts +0 -19
  491. package/lib/typescript/web/platform/BrowserDetection.d.ts +0 -23
  492. package/src/ui/THEOplayerDefaultUi.tsx +0 -108
  493. package/src/ui/THEOplayerTheme.ts +0 -112
  494. package/src/ui/barrel.ts +0 -3
  495. package/src/ui/components/activityindicator/CenteredDelayedActivityIndicator.tsx +0 -96
  496. package/src/ui/components/activityindicator/DelayedActivityIndicator.tsx +0 -32
  497. package/src/ui/components/activityindicator/barrel.ts +0 -2
  498. package/src/ui/components/barrel.ts +0 -9
  499. package/src/ui/components/button/AirplayButton.tsx +0 -64
  500. package/src/ui/components/button/ChromecastButton.tsx +0 -60
  501. package/src/ui/components/button/ChromecastButton.web.tsx +0 -66
  502. package/src/ui/components/button/FullscreenButton.tsx +0 -60
  503. package/src/ui/components/button/MuteButton.tsx +0 -52
  504. package/src/ui/components/button/PipButton.tsx +0 -61
  505. package/src/ui/components/button/PlayButton.tsx +0 -107
  506. package/src/ui/components/button/SkipButton.tsx +0 -112
  507. package/src/ui/components/button/actionbutton/ActionButton.tsx +0 -105
  508. package/src/ui/components/button/barrel.ts +0 -9
  509. package/src/ui/components/button/svg/AirplaySvg.tsx +0 -18
  510. package/src/ui/components/button/svg/ArrowForwardSvg.tsx +0 -18
  511. package/src/ui/components/button/svg/BackSvg.tsx +0 -18
  512. package/src/ui/components/button/svg/BackwardSvg.tsx +0 -18
  513. package/src/ui/components/button/svg/ChromecastSvg.tsx +0 -18
  514. package/src/ui/components/button/svg/ErrorSvg.tsx +0 -18
  515. package/src/ui/components/button/svg/ForwardSvg.tsx +0 -18
  516. package/src/ui/components/button/svg/FullscreenEnterSvg.tsx +0 -18
  517. package/src/ui/components/button/svg/FullscreenExitSvg.tsx +0 -18
  518. package/src/ui/components/button/svg/LanguageSvg.tsx +0 -18
  519. package/src/ui/components/button/svg/ListSvg.tsx +0 -18
  520. package/src/ui/components/button/svg/PauseSvg.tsx +0 -18
  521. package/src/ui/components/button/svg/PipEnterSvg.tsx +0 -18
  522. package/src/ui/components/button/svg/PipExitSvg.tsx +0 -18
  523. package/src/ui/components/button/svg/PlaySvg.tsx +0 -18
  524. package/src/ui/components/button/svg/ReplaySvg.tsx +0 -18
  525. package/src/ui/components/button/svg/SettingsSvg.tsx +0 -18
  526. package/src/ui/components/button/svg/SvgUtils.ts +0 -4
  527. package/src/ui/components/button/svg/VolumeOffSvg.tsx +0 -18
  528. package/src/ui/components/button/svg/VolumeUpSvg.tsx +0 -18
  529. package/src/ui/components/button/svg/barrel.ts +0 -20
  530. package/src/ui/components/button/svg/res/AirPlayButton.html +0 -6
  531. package/src/ui/components/button/svg/res/Airplay.svg +0 -1
  532. package/src/ui/components/button/svg/res/ChromecastButton.html +0 -25
  533. package/src/ui/components/button/svg/res/arrow_forward.svg +0 -1
  534. package/src/ui/components/button/svg/res/back.svg +0 -1
  535. package/src/ui/components/button/svg/res/backward.svg +0 -1
  536. package/src/ui/components/button/svg/res/chromecast-48px.svg +0 -1
  537. package/src/ui/components/button/svg/res/close.svg +0 -1
  538. package/src/ui/components/button/svg/res/error.svg +0 -1
  539. package/src/ui/components/button/svg/res/forward.svg +0 -1
  540. package/src/ui/components/button/svg/res/fullscreen-enter.svg +0 -1
  541. package/src/ui/components/button/svg/res/fullscreen-exit.svg +0 -1
  542. package/src/ui/components/button/svg/res/language.svg +0 -1
  543. package/src/ui/components/button/svg/res/list.svg +0 -1
  544. package/src/ui/components/button/svg/res/live.svg +0 -1
  545. package/src/ui/components/button/svg/res/pause.svg +0 -1
  546. package/src/ui/components/button/svg/res/pip_enter.svg +0 -1
  547. package/src/ui/components/button/svg/res/pip_exit.svg +0 -1
  548. package/src/ui/components/button/svg/res/play.svg +0 -1
  549. package/src/ui/components/button/svg/res/replay.svg +0 -1
  550. package/src/ui/components/button/svg/res/settings.svg +0 -1
  551. package/src/ui/components/button/svg/res/skip-next.svg +0 -1
  552. package/src/ui/components/button/svg/res/volume-high.svg +0 -1
  553. package/src/ui/components/button/svg/res/volume-low.svg +0 -1
  554. package/src/ui/components/button/svg/res/volume-off.svg +0 -1
  555. package/src/ui/components/controlbar/ControlBar.tsx +0 -69
  556. package/src/ui/components/controlbar/Spacer.tsx +0 -9
  557. package/src/ui/components/controlbar/barrel.ts +0 -2
  558. package/src/ui/components/menu/LanguageMenuButton.tsx +0 -192
  559. package/src/ui/components/menu/PlaybackRateSubMenu.tsx +0 -93
  560. package/src/ui/components/menu/QualitySubMenu.tsx +0 -148
  561. package/src/ui/components/menu/SettingsMenuButton.tsx +0 -25
  562. package/src/ui/components/menu/barrel.ts +0 -5
  563. package/src/ui/components/menu/common/MenuButton.tsx +0 -49
  564. package/src/ui/components/menu/common/MenuRadioButton.tsx +0 -65
  565. package/src/ui/components/menu/common/MenuTitle.tsx +0 -37
  566. package/src/ui/components/menu/common/MenuView.tsx +0 -62
  567. package/src/ui/components/menu/common/ScrollableMenu.tsx +0 -43
  568. package/src/ui/components/menu/common/SubMenuWithButton.tsx +0 -58
  569. package/src/ui/components/menu/common/barrel.ts +0 -6
  570. package/src/ui/components/message/CastMessage.tsx +0 -74
  571. package/src/ui/components/message/ErrorDisplay.tsx +0 -43
  572. package/src/ui/components/message/barrel.ts +0 -2
  573. package/src/ui/components/seekbar/SeekBar.tsx +0 -178
  574. package/src/ui/components/seekbar/barrel.ts +0 -2
  575. package/src/ui/components/seekbar/thumbnail/SingleThumbnailView.tsx +0 -38
  576. package/src/ui/components/seekbar/thumbnail/Thumbnail.ts +0 -72
  577. package/src/ui/components/seekbar/thumbnail/ThumbnailView.tsx +0 -266
  578. package/src/ui/components/seekbar/thumbnail/Urlpolyfill.ts +0 -1
  579. package/src/ui/components/seekbar/thumbnail/Urlpolyfill.web.ts +0 -2
  580. package/src/ui/components/seekbar/thumbnail/barrel.ts +0 -2
  581. package/src/ui/components/timelabel/StaticTimeLabel.tsx +0 -63
  582. package/src/ui/components/timelabel/TimeLabel.tsx +0 -79
  583. package/src/ui/components/timelabel/barrel.ts +0 -2
  584. package/src/ui/components/uicontroller/UiContainer.tsx +0 -355
  585. package/src/ui/components/uicontroller/UiControls.ts +0 -31
  586. package/src/ui/components/uicontroller/barrel.ts +0 -2
  587. package/src/ui/components/util/PlayerContext.ts +0 -29
  588. package/src/ui/components/util/TrackUtils.ts +0 -62
  589. package/src/ui/components/util/barrel.ts +0 -1
  590. package/src/ui/utils/ArrayUtils.ts +0 -12
  591. package/src/ui/utils/language/Language.ts +0 -38
  592. package/src/ui/utils/language/languages.json +0 -1658
  593. package/src/web/platform/BrowserDetection.ts +0 -38
@@ -1,336 +0,0 @@
1
- function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
2
- function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
3
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
4
- function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
5
- import React, { PureComponent } from 'react';
6
- import { Animated, Platform, View } from 'react-native';
7
- import { PlayerContext } from '../util/PlayerContext';
8
- import { CastEventType, PlayerEventType, PresentationMode } from 'react-native-theoplayer';
9
- import { ErrorDisplay } from '../message/ErrorDisplay';
10
- /**
11
- * The default style for a fullscreen centered view.
12
- */
13
- export const FULLSCREEN_CENTER_STYLE = {
14
- position: 'absolute',
15
- top: 0,
16
- left: 0,
17
- bottom: 0,
18
- right: 0,
19
- alignItems: 'center',
20
- justifyContent: 'center'
21
- };
22
-
23
- /**
24
- * The default style for the center container.
25
- */
26
- export const UI_CONTAINER_STYLE = {
27
- position: 'absolute',
28
- top: 0,
29
- left: 0,
30
- bottom: 0,
31
- right: 0,
32
- zIndex: 0,
33
- justifyContent: 'center',
34
- overflow: 'hidden'
35
- };
36
-
37
- /**
38
- * The default style for the top container.
39
- */
40
- export const TOP_UI_CONTAINER_STYLE = {
41
- position: 'absolute',
42
- top: 0,
43
- left: 0,
44
- right: 0,
45
- zIndex: 1,
46
- paddingTop: 10,
47
- paddingLeft: 10,
48
- paddingRight: 10
49
- };
50
-
51
- /**
52
- * The default style for the center container.
53
- */
54
- export const CENTER_UI_CONTAINER_STYLE = {
55
- alignSelf: 'center',
56
- width: '60%'
57
- };
58
-
59
- /**
60
- * The default style for the bottom container.
61
- */
62
- export const BOTTOM_UI_CONTAINER_STYLE = {
63
- position: 'absolute',
64
- left: 0,
65
- right: 0,
66
- bottom: 0,
67
- zIndex: 1,
68
- paddingBottom: 10,
69
- paddingLeft: 10,
70
- paddingRight: 10
71
- };
72
- /**
73
- * A component that does all the coordination between UI components.
74
- * - It provides all UI components with the PlayerContext, so they can access the styling and player.
75
- * - It provides slots for UI components to be places in the top/center/bottom positions.
76
- * - It uses animations to fade the UI in and out when applicable.
77
- */
78
- export class UiContainer extends PureComponent {
79
- constructor(props) {
80
- super(props);
81
- _defineProperty(this, "_currentFadeOutTimeout", undefined);
82
- _defineProperty(this, "_menus", []);
83
- _defineProperty(this, "onPlay", () => {
84
- this.setState({
85
- firstPlay: true,
86
- paused: false
87
- });
88
- this.resumeAnimationsIfPossible_();
89
- });
90
- _defineProperty(this, "onPause", () => {
91
- this.setState({
92
- firstPlay: true,
93
- paused: true
94
- });
95
- this.stopAnimationsAndShowUi_();
96
- });
97
- _defineProperty(this, "onSourceChange", () => {
98
- this.setState({
99
- paused: this.props.player.paused
100
- });
101
- });
102
- _defineProperty(this, "onLoadStart", () => {
103
- this.setState({
104
- error: undefined
105
- });
106
- });
107
- _defineProperty(this, "onError", event => {
108
- const {
109
- error
110
- } = event;
111
- this.setState({
112
- error
113
- });
114
- });
115
- _defineProperty(this, "onCastEvent", event => {
116
- if (event.subType === CastEventType.CHROMECAST_STATE_CHANGE || event.subType === CastEventType.AIRPLAY_STATE_CHANGE) {
117
- this.setState({
118
- casting: event.state === 'connecting' || event.state === 'connected'
119
- });
120
- this.resumeAnimationsIfPossible_();
121
- }
122
- });
123
- _defineProperty(this, "onEnded", () => {
124
- this.stopAnimationsAndShowUi_();
125
- });
126
- _defineProperty(this, "onPresentationModeChange", event => {
127
- this.setState({
128
- pip: event.presentationMode === PresentationMode.pip
129
- });
130
- });
131
- _defineProperty(this, "onUserAction_", () => {
132
- if (!this.state.firstPlay) {
133
- return;
134
- }
135
- this.stopAnimationsAndShowUi_();
136
- this.resumeAnimationsIfPossible_();
137
- });
138
- _defineProperty(this, "openMenu_", menuConstructor => {
139
- this._menus.push(menuConstructor);
140
- this.setState({
141
- currentMenu: menuConstructor()
142
- });
143
- this.stopAnimationsAndShowUi_();
144
- });
145
- _defineProperty(this, "closeCurrentMenu_", () => {
146
- this._menus.pop();
147
- const nextMenu = this._menus.length > 0 ? this._menus[this._menus.length - 1] : undefined;
148
- this.setState({
149
- currentMenu: nextMenu === null || nextMenu === void 0 ? void 0 : nextMenu()
150
- });
151
- this.resumeAnimationsIfPossible_();
152
- });
153
- _defineProperty(this, "doFadeIn_", () => {
154
- const {
155
- fadeAnimation
156
- } = this.state;
157
- this.setState({
158
- showing: true
159
- });
160
- Animated.timing(fadeAnimation, {
161
- useNativeDriver: true,
162
- toValue: 1,
163
- duration: 200
164
- }).start(() => {
165
- this.setState({
166
- buttonsEnabled: true
167
- });
168
- });
169
- });
170
- _defineProperty(this, "doFadeOut_", () => {
171
- if (this.animationsBlocked_) {
172
- return;
173
- }
174
- clearTimeout(this._currentFadeOutTimeout);
175
- const {
176
- fadeAnimation
177
- } = this.state;
178
- this.setState({
179
- buttonsEnabled: false
180
- });
181
- Animated.timing(fadeAnimation, {
182
- useNativeDriver: true,
183
- toValue: 0,
184
- duration: 200
185
- }).start(() => {
186
- this.setState({
187
- showing: false
188
- });
189
- });
190
- });
191
- this.state = UiContainer.initialState;
192
- }
193
- componentDidMount() {
194
- const player = this.props.player;
195
- player.addEventListener(PlayerEventType.LOAD_START, this.onLoadStart);
196
- player.addEventListener(PlayerEventType.ERROR, this.onError);
197
- player.addEventListener(PlayerEventType.CAST_EVENT, this.onCastEvent);
198
- player.addEventListener(PlayerEventType.PLAY, this.onPlay);
199
- player.addEventListener(PlayerEventType.PLAYING, this.onPlay);
200
- player.addEventListener(PlayerEventType.PAUSE, this.onPause);
201
- player.addEventListener(PlayerEventType.SOURCE_CHANGE, this.onSourceChange);
202
- player.addEventListener(PlayerEventType.CAST_EVENT, this.onCastEvent);
203
- player.addEventListener(PlayerEventType.ENDED, this.onEnded);
204
- player.addEventListener(PlayerEventType.PRESENTATIONMODE_CHANGE, this.onPresentationModeChange);
205
- if (player.source !== undefined && player.currentTime !== 0) {
206
- this.onPlay();
207
- }
208
- this.setState({
209
- pip: player.presentationMode === 'picture-in-picture'
210
- });
211
- }
212
- componentWillUnmount() {
213
- const player = this.props.player;
214
- player.removeEventListener(PlayerEventType.LOAD_START, this.onLoadStart);
215
- player.removeEventListener(PlayerEventType.ERROR, this.onError);
216
- player.removeEventListener(PlayerEventType.CAST_EVENT, this.onCastEvent);
217
- player.removeEventListener(PlayerEventType.PLAY, this.onPlay);
218
- player.removeEventListener(PlayerEventType.PLAYING, this.onPlay);
219
- player.removeEventListener(PlayerEventType.PAUSE, this.onPause);
220
- player.removeEventListener(PlayerEventType.SOURCE_CHANGE, this.onSourceChange);
221
- player.removeEventListener(PlayerEventType.CAST_EVENT, this.onCastEvent);
222
- player.removeEventListener(PlayerEventType.ENDED, this.onEnded);
223
- player.removeEventListener(PlayerEventType.PRESENTATIONMODE_CHANGE, this.onPresentationModeChange);
224
- clearTimeout(this._currentFadeOutTimeout);
225
- }
226
- get buttonsEnabled_() {
227
- return this.state.buttonsEnabled;
228
- }
229
-
230
- /**
231
- * Request to show the UI due to user input.
232
- */
233
-
234
- stopAnimationsAndShowUi_() {
235
- clearTimeout(this._currentFadeOutTimeout);
236
- this._currentFadeOutTimeout = undefined;
237
- if (!this.state.showing) {
238
- this.doFadeIn_();
239
- }
240
- }
241
- resumeAnimationsIfPossible_() {
242
- clearTimeout(this._currentFadeOutTimeout);
243
- if (this.animationsBlocked_) {
244
- return;
245
- }
246
- // Only resume animation when paused except for web.
247
- // This is because mobile users can tap away the UI when paused, but desktop users can't.
248
- if (Platform.OS === 'web' || !this.state.paused) {
249
- // @ts-ignore
250
- this._currentFadeOutTimeout = setTimeout(this.doFadeOut_, this.props.theme.fadeAnimationTimoutMs);
251
- }
252
- }
253
- get animationsBlocked_() {
254
- const {
255
- firstPlay,
256
- currentMenu,
257
- casting,
258
- pip
259
- } = this.state;
260
- return !firstPlay || currentMenu !== undefined || casting || pip;
261
- }
262
- render() {
263
- const {
264
- player,
265
- theme,
266
- top,
267
- center,
268
- bottom,
269
- children,
270
- style,
271
- topStyle,
272
- centerStyle,
273
- bottomStyle,
274
- behind
275
- } = this.props;
276
- const {
277
- fadeAnimation,
278
- currentMenu,
279
- error,
280
- firstPlay,
281
- pip
282
- } = this.state;
283
- if (error !== undefined) {
284
- return /*#__PURE__*/React.createElement(ErrorDisplay, {
285
- error: error
286
- });
287
- }
288
- if (Platform.OS !== 'web' && pip) {
289
- return /*#__PURE__*/React.createElement(React.Fragment, null);
290
- }
291
- const combinedContainerStyle = [UI_CONTAINER_STYLE, style];
292
- return /*#__PURE__*/React.createElement(PlayerContext.Provider, {
293
- value: {
294
- player,
295
- style: theme,
296
- ui: this
297
- }
298
- }, /*#__PURE__*/React.createElement(View, {
299
- style: FULLSCREEN_CENTER_STYLE
300
- }, behind), /*#__PURE__*/React.createElement(Animated.View, _extends({
301
- style: [combinedContainerStyle, {
302
- opacity: fadeAnimation
303
- }],
304
- onTouchStart: this.onUserAction_
305
- }, Platform.OS === 'web' ? {
306
- onMouseMove: this.onUserAction_,
307
- onMouseLeave: this.doFadeOut_
308
- } : {}), /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(View, {
309
- style: [combinedContainerStyle, {
310
- backgroundColor: theme.colors.uiBackground
311
- }],
312
- onTouchStart: this.doFadeOut_
313
- }), currentMenu !== undefined && /*#__PURE__*/React.createElement(View, {
314
- style: [combinedContainerStyle]
315
- }, currentMenu), currentMenu === undefined && /*#__PURE__*/React.createElement(React.Fragment, null, firstPlay && /*#__PURE__*/React.createElement(View, {
316
- style: [TOP_UI_CONTAINER_STYLE, topStyle]
317
- }, top), /*#__PURE__*/React.createElement(View, {
318
- style: [CENTER_UI_CONTAINER_STYLE, centerStyle]
319
- }, center), firstPlay && /*#__PURE__*/React.createElement(View, {
320
- style: [BOTTOM_UI_CONTAINER_STYLE, bottomStyle]
321
- }, bottom), children))));
322
- }
323
- }
324
- _defineProperty(UiContainer, "initialState", {
325
- fadeAnimation: new Animated.Value(1),
326
- currentMenu: undefined,
327
- showing: true,
328
- buttonsEnabled: true,
329
- error: undefined,
330
- firstPlay: false,
331
- paused: true,
332
- casting: false,
333
- pip: false
334
- });
335
- UiContainer.contextType = PlayerContext;
336
- //# sourceMappingURL=UiContainer.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","PureComponent","Animated","Platform","View","PlayerContext","CastEventType","PlayerEventType","PresentationMode","ErrorDisplay","FULLSCREEN_CENTER_STYLE","position","top","left","bottom","right","alignItems","justifyContent","UI_CONTAINER_STYLE","zIndex","overflow","TOP_UI_CONTAINER_STYLE","paddingTop","paddingLeft","paddingRight","CENTER_UI_CONTAINER_STYLE","alignSelf","width","BOTTOM_UI_CONTAINER_STYLE","paddingBottom","UiContainer","constructor","props","_defineProperty","undefined","setState","firstPlay","paused","resumeAnimationsIfPossible_","stopAnimationsAndShowUi_","player","error","event","subType","CHROMECAST_STATE_CHANGE","AIRPLAY_STATE_CHANGE","casting","state","pip","presentationMode","menuConstructor","_menus","push","currentMenu","pop","nextMenu","length","fadeAnimation","showing","timing","useNativeDriver","toValue","duration","start","buttonsEnabled","animationsBlocked_","clearTimeout","_currentFadeOutTimeout","initialState","componentDidMount","addEventListener","LOAD_START","onLoadStart","ERROR","onError","CAST_EVENT","onCastEvent","PLAY","onPlay","PLAYING","PAUSE","onPause","SOURCE_CHANGE","onSourceChange","ENDED","onEnded","PRESENTATIONMODE_CHANGE","onPresentationModeChange","source","currentTime","componentWillUnmount","removeEventListener","buttonsEnabled_","doFadeIn_","OS","setTimeout","doFadeOut_","theme","fadeAnimationTimoutMs","render","center","children","style","topStyle","centerStyle","bottomStyle","behind","createElement","Fragment","combinedContainerStyle","Provider","value","ui","_extends","opacity","onTouchStart","onUserAction_","onMouseMove","onMouseLeave","backgroundColor","colors","uiBackground","Value","contextType"],"sources":["UiContainer.tsx"],"sourcesContent":["import React, { PureComponent, ReactNode } from 'react';\nimport { Animated, Platform, StyleProp, View, ViewStyle } from 'react-native';\nimport { PlayerContext } from '../util/PlayerContext';\nimport type { PresentationModeChangeEvent, THEOplayer } from 'react-native-theoplayer';\nimport { CastEvent, CastEventType, ErrorEvent, PlayerError, PlayerEventType, PresentationMode } from 'react-native-theoplayer';\nimport type { THEOplayerTheme } from '../../THEOplayerTheme';\nimport type { MenuConstructor, UiControls } from './UiControls';\nimport { ErrorDisplay } from '../message/ErrorDisplay';\n\ninterface UiContainerProps {\n /**\n * The player that is provided to all children using PlayerContext.\n */\n player: THEOplayer;\n /**\n * The theme that is provided to all children using PlayerContext.\n */\n theme: THEOplayerTheme;\n /**\n * The style of the container.\n */\n style?: StyleProp<ViewStyle>;\n /**\n * The style of the top slot.\n */\n topStyle?: StyleProp<ViewStyle>;\n /**\n * The style of the center slot.\n */\n centerStyle?: StyleProp<ViewStyle>;\n /**\n * The style of the button slot.\n */\n bottomStyle?: StyleProp<ViewStyle>;\n /**\n * The components to be put in the top slot.\n */\n top?: ReactNode;\n /**\n * The components to be put in the center slot.\n */\n center?: ReactNode;\n /**\n * The components to be put in the bottom slot.\n */\n bottom?: ReactNode;\n /**\n * A slot to put components behind the UI background.\n */\n behind?: ReactNode;\n}\n\n/**\n * The default style for a fullscreen centered view.\n */\nexport const FULLSCREEN_CENTER_STYLE: ViewStyle = {\n position: 'absolute',\n top: 0,\n left: 0,\n bottom: 0,\n right: 0,\n alignItems: 'center',\n justifyContent: 'center',\n};\n\n/**\n * The default style for the center container.\n */\nexport const UI_CONTAINER_STYLE: ViewStyle = {\n position: 'absolute',\n top: 0,\n left: 0,\n bottom: 0,\n right: 0,\n zIndex: 0,\n justifyContent: 'center',\n overflow: 'hidden',\n};\n\n/**\n * The default style for the top container.\n */\nexport const TOP_UI_CONTAINER_STYLE: ViewStyle = {\n position: 'absolute',\n top: 0,\n left: 0,\n right: 0,\n zIndex: 1,\n paddingTop: 10,\n paddingLeft: 10,\n paddingRight: 10,\n};\n\n/**\n * The default style for the center container.\n */\nexport const CENTER_UI_CONTAINER_STYLE: ViewStyle = {\n alignSelf: 'center',\n width: '60%',\n};\n\n/**\n * The default style for the bottom container.\n */\nexport const BOTTOM_UI_CONTAINER_STYLE: ViewStyle = {\n position: 'absolute',\n left: 0,\n right: 0,\n bottom: 0,\n zIndex: 1,\n paddingBottom: 10,\n paddingLeft: 10,\n paddingRight: 10,\n};\n\ninterface UiContainerState {\n fadeAnimation: Animated.Value;\n currentMenu: ReactNode | undefined;\n showing: boolean;\n buttonsEnabled: boolean;\n error: PlayerError | undefined;\n firstPlay: boolean;\n paused: boolean;\n casting: boolean;\n pip: boolean;\n}\n\n/**\n * A component that does all the coordination between UI components.\n * - It provides all UI components with the PlayerContext, so they can access the styling and player.\n * - It provides slots for UI components to be places in the top/center/bottom positions.\n * - It uses animations to fade the UI in and out when applicable.\n */\nexport class UiContainer extends PureComponent<React.PropsWithChildren<UiContainerProps>, UiContainerState> implements UiControls {\n private _currentFadeOutTimeout: number | undefined = undefined;\n\n private _menus: MenuConstructor[] = [];\n\n static initialState: UiContainerState = {\n fadeAnimation: new Animated.Value(1),\n currentMenu: undefined,\n showing: true,\n buttonsEnabled: true,\n error: undefined,\n firstPlay: false,\n paused: true,\n casting: false,\n pip: false,\n };\n\n constructor(props: UiContainerProps) {\n super(props);\n this.state = UiContainer.initialState;\n }\n\n componentDidMount() {\n const player = this.props.player;\n player.addEventListener(PlayerEventType.LOAD_START, this.onLoadStart);\n player.addEventListener(PlayerEventType.ERROR, this.onError);\n player.addEventListener(PlayerEventType.CAST_EVENT, this.onCastEvent);\n player.addEventListener(PlayerEventType.PLAY, this.onPlay);\n player.addEventListener(PlayerEventType.PLAYING, this.onPlay);\n player.addEventListener(PlayerEventType.PAUSE, this.onPause);\n player.addEventListener(PlayerEventType.SOURCE_CHANGE, this.onSourceChange);\n player.addEventListener(PlayerEventType.CAST_EVENT, this.onCastEvent);\n player.addEventListener(PlayerEventType.ENDED, this.onEnded);\n player.addEventListener(PlayerEventType.PRESENTATIONMODE_CHANGE, this.onPresentationModeChange);\n if (player.source !== undefined && player.currentTime !== 0) {\n this.onPlay();\n }\n this.setState({ pip: player.presentationMode === 'picture-in-picture' });\n }\n\n componentWillUnmount() {\n const player = this.props.player;\n player.removeEventListener(PlayerEventType.LOAD_START, this.onLoadStart);\n player.removeEventListener(PlayerEventType.ERROR, this.onError);\n player.removeEventListener(PlayerEventType.CAST_EVENT, this.onCastEvent);\n player.removeEventListener(PlayerEventType.PLAY, this.onPlay);\n player.removeEventListener(PlayerEventType.PLAYING, this.onPlay);\n player.removeEventListener(PlayerEventType.PAUSE, this.onPause);\n player.removeEventListener(PlayerEventType.SOURCE_CHANGE, this.onSourceChange);\n player.removeEventListener(PlayerEventType.CAST_EVENT, this.onCastEvent);\n player.removeEventListener(PlayerEventType.ENDED, this.onEnded);\n player.removeEventListener(PlayerEventType.PRESENTATIONMODE_CHANGE, this.onPresentationModeChange);\n clearTimeout(this._currentFadeOutTimeout);\n }\n\n private onPlay = () => {\n this.setState({ firstPlay: true, paused: false });\n this.resumeAnimationsIfPossible_();\n };\n\n private onPause = () => {\n this.setState({ firstPlay: true, paused: true });\n this.stopAnimationsAndShowUi_();\n };\n\n private onSourceChange = () => {\n this.setState({ paused: this.props.player.paused });\n };\n\n private onLoadStart = () => {\n this.setState({ error: undefined });\n };\n\n private onError = (event: ErrorEvent) => {\n const { error } = event;\n this.setState({ error });\n };\n\n private onCastEvent = (event: CastEvent) => {\n if (event.subType === CastEventType.CHROMECAST_STATE_CHANGE || event.subType === CastEventType.AIRPLAY_STATE_CHANGE) {\n this.setState({ casting: event.state === 'connecting' || event.state === 'connected' });\n this.resumeAnimationsIfPossible_();\n }\n };\n\n private onEnded = () => {\n this.stopAnimationsAndShowUi_();\n };\n\n private onPresentationModeChange = (event: PresentationModeChangeEvent) => {\n this.setState({ pip: event.presentationMode === PresentationMode.pip });\n };\n\n get buttonsEnabled_(): boolean {\n return this.state.buttonsEnabled;\n }\n\n /**\n * Request to show the UI due to user input.\n */\n public onUserAction_ = () => {\n if (!this.state.firstPlay) {\n return;\n }\n this.stopAnimationsAndShowUi_();\n this.resumeAnimationsIfPossible_();\n };\n\n public openMenu_ = (menuConstructor: () => ReactNode) => {\n this._menus.push(menuConstructor);\n this.setState({ currentMenu: menuConstructor() });\n this.stopAnimationsAndShowUi_();\n };\n\n public closeCurrentMenu_ = () => {\n this._menus.pop();\n const nextMenu = this._menus.length > 0 ? this._menus[this._menus.length - 1] : undefined;\n this.setState({ currentMenu: nextMenu?.() });\n this.resumeAnimationsIfPossible_();\n };\n\n private stopAnimationsAndShowUi_() {\n clearTimeout(this._currentFadeOutTimeout);\n this._currentFadeOutTimeout = undefined;\n if (!this.state.showing) {\n this.doFadeIn_();\n }\n }\n\n private resumeAnimationsIfPossible_() {\n clearTimeout(this._currentFadeOutTimeout);\n if (this.animationsBlocked_) {\n return;\n }\n // Only resume animation when paused except for web.\n // This is because mobile users can tap away the UI when paused, but desktop users can't.\n if (Platform.OS === 'web' || !this.state.paused) {\n // @ts-ignore\n this._currentFadeOutTimeout = setTimeout(this.doFadeOut_, this.props.theme.fadeAnimationTimoutMs);\n }\n }\n\n private doFadeIn_ = () => {\n const { fadeAnimation } = this.state;\n this.setState({ showing: true });\n Animated.timing(fadeAnimation, {\n useNativeDriver: true,\n toValue: 1,\n duration: 200,\n }).start(() => {\n this.setState({ buttonsEnabled: true });\n });\n };\n\n private doFadeOut_ = () => {\n if (this.animationsBlocked_) {\n return;\n }\n clearTimeout(this._currentFadeOutTimeout);\n const { fadeAnimation } = this.state;\n this.setState({ buttonsEnabled: false });\n Animated.timing(fadeAnimation, {\n useNativeDriver: true,\n toValue: 0,\n duration: 200,\n }).start(() => {\n this.setState({ showing: false });\n });\n };\n\n private get animationsBlocked_(): boolean {\n const { firstPlay, currentMenu, casting, pip } = this.state;\n return !firstPlay || currentMenu !== undefined || casting || pip;\n }\n\n render() {\n const { player, theme, top, center, bottom, children, style, topStyle, centerStyle, bottomStyle, behind } = this.props;\n const { fadeAnimation, currentMenu, error, firstPlay, pip } = this.state;\n\n if (error !== undefined) {\n return <ErrorDisplay error={error} />;\n }\n\n if (Platform.OS !== 'web' && pip) {\n return <></>;\n }\n\n const combinedContainerStyle = [UI_CONTAINER_STYLE, style];\n\n return (\n <PlayerContext.Provider value={{ player, style: theme, ui: this }}>\n {/* The View behind the UI, that is always visible.*/}\n <View style={FULLSCREEN_CENTER_STYLE}>{behind}</View>\n {/* The Animated.View is for showing and hiding the UI*/}\n <Animated.View\n style={[combinedContainerStyle, { opacity: fadeAnimation }]}\n onTouchStart={this.onUserAction_}\n {...(Platform.OS === 'web' ? { onMouseMove: this.onUserAction_, onMouseLeave: this.doFadeOut_ } : {})}>\n <>\n {/* The UI background */}\n <View style={[combinedContainerStyle, { backgroundColor: theme.colors.uiBackground }]} onTouchStart={this.doFadeOut_} />\n\n {/* The Settings Menu */}\n {currentMenu !== undefined && <View style={[combinedContainerStyle]}>{currentMenu}</View>}\n\n {/* The UI control bars*/}\n {currentMenu === undefined && (\n <>\n {firstPlay && <View style={[TOP_UI_CONTAINER_STYLE, topStyle]}>{top}</View>}\n <View style={[CENTER_UI_CONTAINER_STYLE, centerStyle]}>{center}</View>\n {firstPlay && <View style={[BOTTOM_UI_CONTAINER_STYLE, bottomStyle]}>{bottom}</View>}\n {children}\n </>\n )}\n </>\n </Animated.View>\n </PlayerContext.Provider>\n );\n }\n}\n\nUiContainer.contextType = PlayerContext;\n"],"mappings":";;;;AAAA,OAAOA,KAAK,IAAIC,aAAa,QAAmB,OAAO;AACvD,SAASC,QAAQ,EAAEC,QAAQ,EAAaC,IAAI,QAAmB,cAAc;AAC7E,SAASC,aAAa,QAAQ,uBAAuB;AAErD,SAAoBC,aAAa,EAA2BC,eAAe,EAAEC,gBAAgB,QAAQ,yBAAyB;AAG9H,SAASC,YAAY,QAAQ,yBAAyB;AA6CtD;AACA;AACA;AACA,OAAO,MAAMC,uBAAkC,GAAG;EAChDC,QAAQ,EAAE,UAAU;EACpBC,GAAG,EAAE,CAAC;EACNC,IAAI,E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EACZS,OAAO,EAAE,KAAK;EACdE,GAAG,EAAE;AACP,CAAC;AA8MHlB,WAAW,CAAC6F,WAAW,GAAGtH,aAAa"}
@@ -1,2 +0,0 @@
1
- export {};
2
- //# sourceMappingURL=UiControls.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["UiControls.ts"],"sourcesContent":["import type { ReactNode } from 'react';\n\n/**\n * A callback function to render a menu when needed.\n */\nexport type MenuConstructor = () => ReactNode;\n\n/**\n * The API provided to all UI components in `react-native-theoplayer` so they can communicate with the UI.\n */\nexport interface UiControls {\n /*\n * Whether the UI buttons are enabled.\n */\n readonly buttonsEnabled_: boolean;\n\n /*\n * Used to notify the UI that a user pressed did an action, so the UI can be faded in.\n */\n onUserAction_: () => void;\n\n /*\n * Opens a new menu on top of the player.\n */\n openMenu_: (menuConstructor: MenuConstructor) => void;\n\n /*\n * Closes the current menu. If this was a sub-menu, the parent menu will re-open.\n */\n closeCurrentMenu_: () => void;\n}\n"],"mappings":""}
@@ -1,3 +0,0 @@
1
- export * from './UiContainer';
2
- export * from './UiControls';
3
- //# sourceMappingURL=barrel.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["barrel.ts"],"sourcesContent":["export * from './UiContainer';\nexport * from './UiControls';\n"],"mappings":"AAAA,cAAc,eAAe;AAC7B,cAAc,cAAc"}
@@ -1,11 +0,0 @@
1
- import React from 'react';
2
- import { DEFAULT_THEOPLAYER_THEME } from '../../THEOplayerTheme';
3
- /**
4
- * The context for all UI components of `react-native-theoplayer`.
5
- */
6
- export const PlayerContext = /*#__PURE__*/React.createContext({
7
- player: undefined,
8
- style: DEFAULT_THEOPLAYER_THEME,
9
- ui: undefined
10
- });
11
- //# sourceMappingURL=PlayerContext.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["React","DEFAULT_THEOPLAYER_THEME","PlayerContext","createContext","player","undefined","style","ui"],"sources":["PlayerContext.ts"],"sourcesContent":["import React from 'react';\nimport type { THEOplayer } from 'react-native-theoplayer';\nimport type { THEOplayerTheme } from '../../THEOplayerTheme';\nimport { DEFAULT_THEOPLAYER_THEME } from '../../THEOplayerTheme';\nimport type { UiControls } from '../uicontroller/UiControls';\n\nexport interface UiContext {\n /**\n * The THEOplayer from the THEOplayerView.\n */\n readonly player: THEOplayer;\n /**\n * The configured THEOplayerTheme.\n */\n readonly style: THEOplayerTheme;\n /**\n * UI controls for the components to communicate with the UI.\n */\n readonly ui: UiControls;\n}\n\n/**\n * The context for all UI components of `react-native-theoplayer`.\n */\nexport const PlayerContext = React.createContext<UiContext>({\n player: undefined as unknown as THEOplayer,\n style: DEFAULT_THEOPLAYER_THEME,\n ui: undefined as unknown as UiControls,\n});\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AAGzB,SAASC,wBAAwB,QAAQ,uBAAuB;AAkBhE;AACA;AACA;AACA,OAAO,MAAMC,aAAa,gBAAGF,KAAK,CAACG,aAAa,CAAY;EAC1DC,MAAM,EAAEC,SAAkC;EAC1CC,KAAK,EAAEL,wBAAwB;EAC/BM,EAAE,EAAEF;AACN,CAAC,CAAC"}
@@ -1,60 +0,0 @@
1
- import { TrackListEventType } from 'react-native-theoplayer';
2
- import { getISO639LanguageByCode } from '../../utils/language/Language';
3
- export function getTrackLabel(track) {
4
- if (track.label) {
5
- return track.label;
6
- }
7
- const languageCode = track.language;
8
- if (languageCode) {
9
- const iso639Language = getISO639LanguageByCode(languageCode);
10
- if (iso639Language) {
11
- return iso639Language.local;
12
- }
13
- }
14
- return languageCode || '';
15
- }
16
- export function stringFromTextTrackListEvent(type) {
17
- switch (type) {
18
- case TrackListEventType.ADD_TRACK:
19
- return 'AddTrack';
20
- case TrackListEventType.REMOVE_TRACK:
21
- return 'RemoveTrack';
22
- case TrackListEventType.CHANGE_TRACK:
23
- return 'ChangeTrack';
24
- }
25
- }
26
-
27
- /**
28
- * Retain renderable tracks.
29
- * https://html.spec.whatwg.org/multipage/embedded-content.html#text-track-showing
30
- */
31
- export function filterRenderableTracks(textTracks) {
32
- return textTracks.filter(textTrack => textTrack.kind === 'subtitles' || textTrack.kind === 'captions');
33
- }
34
- export function getVideoQualityLabel(quality) {
35
- let withBandWidth = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
36
- if (!quality) {
37
- return 'auto';
38
- }
39
- if (quality.label && quality.label !== '') {
40
- return quality.label;
41
- }
42
- let label = '';
43
- if (quality.height) {
44
- label = quality.height + 'p';
45
- }
46
- if (!withBandWidth || !quality.bandwidth) {
47
- return label;
48
- }
49
- let bandwidth;
50
- if (quality.bandwidth > 1e7) {
51
- bandwidth = (quality.bandwidth / 1e6).toFixed(0) + 'Mbps';
52
- } else if (quality.bandwidth > 1e6) {
53
- bandwidth = (quality.bandwidth / 1e6).toFixed(1) + 'Mbps';
54
- } else {
55
- bandwidth = (quality.bandwidth / 1e3).toFixed(0) + 'kbps';
56
- }
57
- const isHD = quality.height ? quality.height >= 720 : false;
58
- return `${label} - ${bandwidth} ${isHD ? '(HD)' : ''}`;
59
- }
60
- //# sourceMappingURL=TrackUtils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["TrackListEventType","getISO639LanguageByCode","getTrackLabel","track","label","languageCode","language","iso639Language","local","stringFromTextTrackListEvent","type","ADD_TRACK","REMOVE_TRACK","CHANGE_TRACK","filterRenderableTracks","textTracks","filter","textTrack","kind","getVideoQualityLabel","quality","withBandWidth","arguments","length","undefined","height","bandwidth","toFixed","isHD"],"sources":["TrackUtils.ts"],"sourcesContent":["import type { MediaTrack, TextTrack } from 'react-native-theoplayer';\nimport { TrackListEventType, VideoQuality } from 'react-native-theoplayer';\nimport { getISO639LanguageByCode } from '../../utils/language/Language';\n\nexport function getTrackLabel(track: MediaTrack | TextTrack): string {\n if (track.label) {\n return track.label;\n }\n const languageCode: string = track.language;\n if (languageCode) {\n const iso639Language = getISO639LanguageByCode(languageCode);\n if (iso639Language) {\n return iso639Language.local;\n }\n }\n return languageCode || '';\n}\n\nexport function stringFromTextTrackListEvent(type: TrackListEventType): string {\n switch (type) {\n case TrackListEventType.ADD_TRACK:\n return 'AddTrack';\n case TrackListEventType.REMOVE_TRACK:\n return 'RemoveTrack';\n case TrackListEventType.CHANGE_TRACK:\n return 'ChangeTrack';\n }\n}\n\n/**\n * Retain renderable tracks.\n * https://html.spec.whatwg.org/multipage/embedded-content.html#text-track-showing\n */\nexport function filterRenderableTracks(textTracks: TextTrack[]): TextTrack[] {\n return textTracks.filter((textTrack) => textTrack.kind === 'subtitles' || textTrack.kind === 'captions');\n}\n\nexport function getVideoQualityLabel(quality: VideoQuality | undefined, withBandWidth = true): string {\n if (!quality) {\n return 'auto';\n }\n if (quality.label && quality.label !== '') {\n return quality.label;\n }\n let label = '';\n if (quality.height) {\n label = quality.height + 'p';\n }\n if (!withBandWidth || !quality.bandwidth) {\n return label;\n }\n let bandwidth;\n if (quality.bandwidth > 1e7) {\n bandwidth = (quality.bandwidth / 1e6).toFixed(0) + 'Mbps';\n } else if (quality.bandwidth > 1e6) {\n bandwidth = (quality.bandwidth / 1e6).toFixed(1) + 'Mbps';\n } else {\n bandwidth = (quality.bandwidth / 1e3).toFixed(0) + 'kbps';\n }\n const isHD = quality.height ? quality.height >= 720 : false;\n return `${label} - ${bandwidth} ${isHD ? '(HD)' : ''}`;\n}\n"],"mappings":"AACA,SAASA,kBAAkB,QAAsB,yBAAyB;AAC1E,SAASC,uBAAuB,QAAQ,+BAA+B;AAEvE,OAAO,SAASC,aAAaA,CAACC,KAA6B,EAAU;EACnE,IAAIA,KAAK,CAACC,KAAK,EAAE;IACf,OAAOD,KAAK,CAACC,KAAK;EACpB;EACA,MAAMC,YAAoB,GAAGF,KAAK,CAACG,QAAQ;EAC3C,IAAID,YAAY,EAAE;IAChB,MAAME,cAAc,GAAGN,uBAAuB,CAACI,YAAY,CAAC;IAC5D,IAAIE,cAAc,EAAE;MAClB,OAAOA,cAAc,CAACC,KAAK;IAC7B;EACF;EACA,OAAOH,YAAY,IAAI,EAAE;AAC3B;AAEA,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S,GAAG,GAAG,EAAEC,OAAO,CAAC,CAAC,CAAC,GAAG,MAAM;EAC3D,CAAC,MAAM;IACLD,SAAS,GAAG,CAACN,OAAO,CAACM,SAAS,GAAG,GAAG,EAAEC,OAAO,CAAC,CAAC,CAAC,GAAG,MAAM;EAC3D;EACA,MAAMC,IAAI,GAAGR,OAAO,CAACK,MAAM,GAAGL,OAAO,CAACK,MAAM,IAAI,GAAG,GAAG,KAAK;EAC3D,OAAQ,GAAErB,KAAM,MAAKsB,SAAU,IAAGE,IAAI,GAAG,MAAM,GAAG,EAAG,EAAC;AACxD"}
@@ -1,2 +0,0 @@
1
- export * from './PlayerContext';
2
- //# sourceMappingURL=barrel.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":[],"sources":["barrel.ts"],"sourcesContent":["export * from './PlayerContext';\n"],"mappings":"AAAA,cAAc,iBAAiB"}
@@ -1,12 +0,0 @@
1
- export function arrayRemoveElement(array, element) {
2
- const index = array.indexOf(element);
3
- if (index === -1) {
4
- return false;
5
- }
6
- arrayRemoveAt(array, index);
7
- return true;
8
- }
9
- export function arrayRemoveAt(array, index) {
10
- array.splice(index, 1);
11
- }
12
- //# sourceMappingURL=ArrayUtils.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["arrayRemoveElement","array","element","index","indexOf","arrayRemoveAt","splice"],"sources":["ArrayUtils.ts"],"sourcesContent":["export function arrayRemoveElement<T>(array: T[], element: T): boolean {\n const index = array.indexOf(element);\n if (index === -1) {\n return false;\n }\n arrayRemoveAt(array, index);\n return true;\n}\n\nexport function arrayRemoveAt<T>(array: T[], index: number): void {\n array.splice(index, 1);\n}\n"],"mappings":"AAAA,OAAO,SAASA,kBAAkBA,CAAIC,KAAU,EAAEC,OAAU,EAAW;EACrE,MAAMC,KAAK,GAAGF,KAAK,CAACG,OAAO,CAACF,OAAO,CAAC;EACpC,IAAIC,KAAK,KAAK,CAAC,CAAC,EAAE;IAChB,OAAO,KAAK;EACd;EACAE,aAAa,CAACJ,KAAK,EAAEE,KAAK,CAAC;EAC3B,OAAO,IAAI;AACb;AAEA,OAAO,SAASE,aAAaA,CAAIJ,KAAU,EAAEE,KAAa,EAAQ;EAChEF,KAAK,CAACK,MAAM,CAACH,KAAK,EAAE,CAAC,CAAC;AACxB"}
@@ -1,27 +0,0 @@
1
- import languages from './languages.json';
2
- /**
3
- * "und" is intended for cases where the language in the data
4
- * has not been identified, such as when it is mislabeled
5
- * or never had been labeled.
6
- *
7
- * https://en.wikipedia.org/wiki/ISO_639:und
8
- */
9
- export const ISO639_UNDETERMINED = 'und';
10
- export function getISO639LanguageByCode(code) {
11
- if (code === ISO639_UNDETERMINED) {
12
- return undefined;
13
- }
14
- const lcCode = code.toLowerCase();
15
- for (const lang of iso639Data) {
16
- if (lang['1'] === lcCode || lang['2'] === lcCode || lang['2T'] === lcCode || lang['2B'] === lcCode || lang['3'] === lcCode) {
17
- return lang;
18
- }
19
- }
20
- return undefined;
21
- }
22
-
23
- // Original: nodejs-langs by Andrew Lawson
24
- // License: MIT
25
- // https://github.com/adlawson/nodejs-langs/blob/bdbf8cfbc26c78dfeeb7f8032889dd88e2219441/data.js
26
- export const iso639Data = languages;
27
- //# sourceMappingURL=Language.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["languages","ISO639_UNDETERMINED","getISO639LanguageByCode","code","undefined","lcCode","toLowerCase","lang","iso639Data"],"sources":["Language.ts"],"sourcesContent":["import languages from './languages.json';\n\nexport interface ISO639Language {\n name: string;\n local: string;\n '1': string;\n '2': string;\n '2T': string;\n '2B': string;\n '3': string;\n}\n\n/**\n * \"und\" is intended for cases where the language in the data\n * has not been identified, such as when it is mislabeled\n * or never had been labeled.\n *\n * https://en.wikipedia.org/wiki/ISO_639:und\n */\nexport const ISO639_UNDETERMINED = 'und';\n\nexport function getISO639LanguageByCode(code: string): ISO639Language | undefined {\n if (code === ISO639_UNDETERMINED) {\n return undefined;\n }\n const lcCode = code.toLowerCase();\n for (const lang of iso639Data) {\n if (lang['1'] === lcCode || lang['2'] === lcCode || lang['2T'] === lcCode || lang['2B'] === lcCode || lang['3'] === lcCode) {\n return lang;\n }\n }\n return undefined;\n}\n\n// Original: nodejs-langs by Andrew Lawson\n// License: MIT\n// https://github.com/adlawson/nodejs-langs/blob/bdbf8cfbc26c78dfeeb7f8032889dd88e2219441/data.js\nexport const iso639Data: ISO639Language[] = languages;\n"],"mappings":"AAAA,OAAOA,SAAS,MAAM,kBAAkB;AAYxC;AACA;AACA;AACA;AACA;AACA;AACA;AACA,OAAO,MAAMC,mBAAmB,GAAG,KAAK;AAExC,OAAO,SAASC,uBAAuBA,CAACC,IAAY,EAA8B;EAChF,IAAIA,IAAI,KAAKF,mBAAmB,EAAE;IAChC,OAAOG,SAAS;EAClB;EACA,MAAMC,MAAM,GAAGF,IAAI,CAACG,WAAW,EAAE;EACjC,KAAK,MAAMC,IAAI,IAAIC,UAAU,EAAE;IAC7B,IAAID,IAAI,CAAC,GAAG,CAAC,KAAKF,MAAM,IAAIE,IAAI,CAAC,GAAG,CAAC,KAAKF,MAAM,IAAIE,IAAI,CAAC,IAAI,CAAC,KAAKF,MAAM,IAAIE,IAAI,CAAC,IAAI,CAAC,KAAKF,MAAM,IAAIE,IAAI,CAAC,GAAG,CAAC,KAAKF,MAAM,EAAE;MAC1H,OAAOE,IAAI;IACb;EACF;EACA,OAAOH,SAAS;AAClB;;AAEA;AACA;AACA;AACA,OAAO,MAAMI,UAA4B,GAAGR,SAAS"}