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