react-native-theoplayer 9.3.0 → 9.5.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 (448) hide show
  1. package/CHANGELOG.md +22 -0
  2. package/README.md +3 -2
  3. package/android/build.gradle +2 -2
  4. package/android/src/main/java/com/theoplayer/media/MediaPlaybackService.kt +7 -11
  5. package/android/src/main/java/com/theoplayer/presentation/PipConfig.kt +7 -0
  6. package/android/src/main/java/com/theoplayer/presentation/PipConfigAdapter.kt +7 -1
  7. package/android/src/main/java/com/theoplayer/presentation/PresentationManager.kt +2 -5
  8. package/android/src/main/java/com/theoplayer/track/TextTrackStyleAdapter.kt +8 -0
  9. package/app.plugin.js +2 -46
  10. package/lib/commonjs/api/abr/ABRConfiguration.js +5 -0
  11. package/lib/commonjs/api/abr/ABRConfiguration.js.map +1 -1
  12. package/lib/commonjs/api/ads/Omid.js +15 -0
  13. package/lib/commonjs/api/ads/Omid.js.map +1 -1
  14. package/lib/commonjs/api/backgroundAudio/BackgroundAudioConfiguration.js.map +1 -1
  15. package/lib/commonjs/api/cache/CachingTask.js +2 -0
  16. package/lib/commonjs/api/cache/CachingTask.js.map +1 -1
  17. package/lib/commonjs/api/cache/CachingTaskParameters.js +4 -2
  18. package/lib/commonjs/api/cache/CachingTaskParameters.js.map +1 -1
  19. package/lib/commonjs/api/cache/MediaCacheAPI.js +2 -0
  20. package/lib/commonjs/api/cache/MediaCacheAPI.js.map +1 -1
  21. package/lib/commonjs/api/cache/events/CacheEvent.js +19 -2
  22. package/lib/commonjs/api/cache/events/CacheEvent.js.map +1 -1
  23. package/lib/commonjs/api/cache/events/CachingTaskEvent.js +23 -0
  24. package/lib/commonjs/api/cache/events/CachingTaskEvent.js.map +1 -1
  25. package/lib/commonjs/api/cache/hooks/useCachingTaskList.js +6 -0
  26. package/lib/commonjs/api/cache/hooks/useCachingTaskList.js.map +1 -1
  27. package/lib/commonjs/api/cache/hooks/useCachingTaskProgress.js +6 -0
  28. package/lib/commonjs/api/cache/hooks/useCachingTaskProgress.js.map +1 -1
  29. package/lib/commonjs/api/cache/hooks/useCachingTaskStatus.js +6 -0
  30. package/lib/commonjs/api/cache/hooks/useCachingTaskStatus.js.map +1 -1
  31. package/lib/commonjs/api/cast/CastState.js +1 -0
  32. package/lib/commonjs/api/cast/CastState.js.map +1 -1
  33. package/lib/commonjs/api/event/AdEvent.js +14 -0
  34. package/lib/commonjs/api/event/AdEvent.js.map +1 -1
  35. package/lib/commonjs/api/event/CastEvent.js +35 -0
  36. package/lib/commonjs/api/event/CastEvent.js.map +1 -1
  37. package/lib/commonjs/api/event/PlayerEvent.js +106 -0
  38. package/lib/commonjs/api/event/PlayerEvent.js.map +1 -1
  39. package/lib/commonjs/api/event/TheoAdsEvent.js +14 -0
  40. package/lib/commonjs/api/event/TheoAdsEvent.js.map +1 -1
  41. package/lib/commonjs/api/event/TrackEvent.js +56 -0
  42. package/lib/commonjs/api/event/TrackEvent.js.map +1 -1
  43. package/lib/commonjs/api/player/PlayerEventMap.js +10 -0
  44. package/lib/commonjs/api/player/PlayerEventMap.js.map +1 -1
  45. package/lib/commonjs/api/player/THEOplayer.js +5 -0
  46. package/lib/commonjs/api/player/THEOplayer.js.map +1 -1
  47. package/lib/commonjs/api/presentation/PresentationMode.js.map +1 -1
  48. package/lib/commonjs/api/source/SourceDescription.js +18 -2
  49. package/lib/commonjs/api/source/SourceDescription.js.map +1 -1
  50. package/lib/commonjs/api/source/ads/Ads.js +8 -0
  51. package/lib/commonjs/api/source/ads/Ads.js.map +1 -1
  52. package/lib/commonjs/api/source/ads/TheoAdDescription.js +1 -0
  53. package/lib/commonjs/api/source/ads/TheoAdDescription.js.map +1 -1
  54. package/lib/commonjs/api/source/cmcd/CmcdConfiguration.js +9 -0
  55. package/lib/commonjs/api/source/cmcd/CmcdConfiguration.js.map +1 -1
  56. package/lib/commonjs/api/track/DateRangeCue.js +4 -0
  57. package/lib/commonjs/api/track/DateRangeCue.js.map +1 -1
  58. package/lib/commonjs/api/track/MediaTrack.js +28 -0
  59. package/lib/commonjs/api/track/MediaTrack.js.map +1 -1
  60. package/lib/commonjs/api/track/TextTrack.js +82 -0
  61. package/lib/commonjs/api/track/TextTrack.js.map +1 -1
  62. package/lib/commonjs/api/track/TextTrackStyle.js +2 -0
  63. package/lib/commonjs/api/track/TextTrackStyle.js.map +1 -1
  64. package/lib/commonjs/api/track/Track.js +28 -0
  65. package/lib/commonjs/api/track/Track.js.map +1 -1
  66. package/lib/commonjs/internal/adapter/DefaultNativePlayerState.js +1 -0
  67. package/lib/commonjs/internal/adapter/DefaultNativePlayerState.js.map +1 -1
  68. package/lib/commonjs/internal/adapter/THEOplayerAdapter.js +4 -0
  69. package/lib/commonjs/internal/adapter/THEOplayerAdapter.js.map +1 -1
  70. package/lib/commonjs/internal/adapter/THEOplayerWebAdapter.js +3 -0
  71. package/lib/commonjs/internal/adapter/THEOplayerWebAdapter.js.map +1 -1
  72. package/lib/commonjs/internal/cache/MediaCache.js +7 -0
  73. package/lib/commonjs/internal/cache/MediaCache.js.map +1 -1
  74. package/lib/commonjs/internal/drm/ContentProtectionRegistry.js +7 -0
  75. package/lib/commonjs/internal/drm/ContentProtectionRegistry.js.map +1 -1
  76. package/lib/commonjs/manifest.json +1 -1
  77. package/lib/commonjs/plugins/expo/Common.js +2 -0
  78. package/lib/commonjs/plugins/expo/Common.js.map +1 -0
  79. package/lib/commonjs/plugins/expo/withCustomPod.js +32 -0
  80. package/lib/commonjs/plugins/expo/withCustomPod.js.map +1 -0
  81. package/lib/commonjs/plugins/expo/withTHEOplayer.js +15 -0
  82. package/lib/commonjs/plugins/expo/withTHEOplayer.js.map +1 -0
  83. package/lib/commonjs/plugins/expo/withTHEOplayerAndroid.js +58 -0
  84. package/lib/commonjs/plugins/expo/withTHEOplayerAndroid.js.map +1 -0
  85. package/lib/commonjs/plugins/expo/withTHEOplayerIOS.js +47 -0
  86. package/lib/commonjs/plugins/expo/withTHEOplayerIOS.js.map +1 -0
  87. package/lib/commonjs/plugins/typedoc-platform-icons/package-lock.json +237 -0
  88. package/lib/commonjs/plugins/typedoc-platform-icons/package.json +20 -0
  89. package/lib/commonjs/plugins/typedoc-platform-icons/src/index.js +96 -0
  90. package/lib/commonjs/plugins/typedoc-platform-icons/src/index.js.map +1 -0
  91. package/lib/commonjs/plugins/typedoc-platform-icons/tsconfig.json +24 -0
  92. package/lib/module/api/abr/ABRConfiguration.js +5 -0
  93. package/lib/module/api/abr/ABRConfiguration.js.map +1 -1
  94. package/lib/module/api/ads/Omid.js +16 -0
  95. package/lib/module/api/ads/Omid.js.map +1 -1
  96. package/lib/module/api/backgroundAudio/BackgroundAudioConfiguration.js.map +1 -1
  97. package/lib/module/api/cache/CachingTask.js +2 -0
  98. package/lib/module/api/cache/CachingTask.js.map +1 -1
  99. package/lib/module/api/cache/CachingTaskParameters.js +4 -2
  100. package/lib/module/api/cache/CachingTaskParameters.js.map +1 -1
  101. package/lib/module/api/cache/MediaCacheAPI.js +2 -0
  102. package/lib/module/api/cache/MediaCacheAPI.js.map +1 -1
  103. package/lib/module/api/cache/events/CacheEvent.js +20 -2
  104. package/lib/module/api/cache/events/CacheEvent.js.map +1 -1
  105. package/lib/module/api/cache/events/CachingTaskEvent.js +25 -0
  106. package/lib/module/api/cache/events/CachingTaskEvent.js.map +1 -1
  107. package/lib/module/api/cache/hooks/useCachingTaskList.js +7 -0
  108. package/lib/module/api/cache/hooks/useCachingTaskList.js.map +1 -1
  109. package/lib/module/api/cache/hooks/useCachingTaskProgress.js +7 -0
  110. package/lib/module/api/cache/hooks/useCachingTaskProgress.js.map +1 -1
  111. package/lib/module/api/cache/hooks/useCachingTaskStatus.js +7 -0
  112. package/lib/module/api/cache/hooks/useCachingTaskStatus.js.map +1 -1
  113. package/lib/module/api/cast/CastState.js +1 -0
  114. package/lib/module/api/cast/CastState.js.map +1 -1
  115. package/lib/module/api/event/AdEvent.js +15 -0
  116. package/lib/module/api/event/AdEvent.js.map +1 -1
  117. package/lib/module/api/event/CastEvent.js +39 -0
  118. package/lib/module/api/event/CastEvent.js.map +1 -1
  119. package/lib/module/api/event/PlayerEvent.js +120 -0
  120. package/lib/module/api/event/PlayerEvent.js.map +1 -1
  121. package/lib/module/api/event/TheoAdsEvent.js +15 -0
  122. package/lib/module/api/event/TheoAdsEvent.js.map +1 -1
  123. package/lib/module/api/event/TrackEvent.js +63 -0
  124. package/lib/module/api/event/TrackEvent.js.map +1 -1
  125. package/lib/module/api/player/PlayerEventMap.js +10 -0
  126. package/lib/module/api/player/PlayerEventMap.js.map +1 -1
  127. package/lib/module/api/player/THEOplayer.js +5 -0
  128. package/lib/module/api/player/THEOplayer.js.map +1 -1
  129. package/lib/module/api/presentation/PresentationMode.js +0 -1
  130. package/lib/module/api/presentation/PresentationMode.js.map +1 -1
  131. package/lib/module/api/source/SourceDescription.js +19 -2
  132. package/lib/module/api/source/SourceDescription.js.map +1 -1
  133. package/lib/module/api/source/ads/Ads.js +8 -0
  134. package/lib/module/api/source/ads/Ads.js.map +1 -1
  135. package/lib/module/api/source/ads/TheoAdDescription.js +1 -0
  136. package/lib/module/api/source/ads/TheoAdDescription.js.map +1 -1
  137. package/lib/module/api/source/cmcd/CmcdConfiguration.js +9 -0
  138. package/lib/module/api/source/cmcd/CmcdConfiguration.js.map +1 -1
  139. package/lib/module/api/track/DateRangeCue.js +4 -0
  140. package/lib/module/api/track/DateRangeCue.js.map +1 -1
  141. package/lib/module/api/track/MediaTrack.js +28 -0
  142. package/lib/module/api/track/MediaTrack.js.map +1 -1
  143. package/lib/module/api/track/TextTrack.js +86 -0
  144. package/lib/module/api/track/TextTrack.js.map +1 -1
  145. package/lib/module/api/track/TextTrackStyle.js +2 -0
  146. package/lib/module/api/track/TextTrackStyle.js.map +1 -1
  147. package/lib/module/api/track/Track.js +28 -0
  148. package/lib/module/api/track/Track.js.map +1 -1
  149. package/lib/module/internal/adapter/DefaultNativePlayerState.js +1 -0
  150. package/lib/module/internal/adapter/DefaultNativePlayerState.js.map +1 -1
  151. package/lib/module/internal/adapter/THEOplayerAdapter.js +4 -0
  152. package/lib/module/internal/adapter/THEOplayerAdapter.js.map +1 -1
  153. package/lib/module/internal/adapter/THEOplayerWebAdapter.js +3 -0
  154. package/lib/module/internal/adapter/THEOplayerWebAdapter.js.map +1 -1
  155. package/lib/module/internal/cache/MediaCache.js +7 -0
  156. package/lib/module/internal/cache/MediaCache.js.map +1 -1
  157. package/lib/module/internal/drm/ContentProtectionRegistry.js +7 -0
  158. package/lib/module/internal/drm/ContentProtectionRegistry.js.map +1 -1
  159. package/lib/module/manifest.json +1 -1
  160. package/lib/module/plugins/expo/Common.js +2 -0
  161. package/lib/module/plugins/expo/Common.js.map +1 -0
  162. package/lib/module/plugins/expo/withCustomPod.js +27 -0
  163. package/lib/module/plugins/expo/withCustomPod.js.map +1 -0
  164. package/lib/module/plugins/expo/withTHEOplayer.js +11 -0
  165. package/lib/module/plugins/expo/withTHEOplayer.js.map +1 -0
  166. package/lib/module/plugins/expo/withTHEOplayerAndroid.js +53 -0
  167. package/lib/module/plugins/expo/withTHEOplayerAndroid.js.map +1 -0
  168. package/lib/module/plugins/expo/withTHEOplayerIOS.js +42 -0
  169. package/lib/module/plugins/expo/withTHEOplayerIOS.js.map +1 -0
  170. package/lib/module/plugins/typedoc-platform-icons/package-lock.json +237 -0
  171. package/lib/module/plugins/typedoc-platform-icons/package.json +20 -0
  172. package/lib/module/plugins/typedoc-platform-icons/src/index.js +92 -0
  173. package/lib/module/plugins/typedoc-platform-icons/src/index.js.map +1 -0
  174. package/lib/module/plugins/typedoc-platform-icons/tsconfig.json +24 -0
  175. package/lib/typescript/api/THEOplayerView.d.ts +1 -2
  176. package/lib/typescript/api/THEOplayerView.d.ts.map +1 -1
  177. package/lib/typescript/api/abr/ABRConfiguration.d.ts +13 -12
  178. package/lib/typescript/api/abr/ABRConfiguration.d.ts.map +1 -1
  179. package/lib/typescript/api/ads/Ad.d.ts +9 -2
  180. package/lib/typescript/api/ads/Ad.d.ts.map +1 -1
  181. package/lib/typescript/api/ads/AdBreak.d.ts +7 -0
  182. package/lib/typescript/api/ads/AdBreak.d.ts.map +1 -1
  183. package/lib/typescript/api/ads/AdsAPI.d.ts +6 -3
  184. package/lib/typescript/api/ads/AdsAPI.d.ts.map +1 -1
  185. package/lib/typescript/api/ads/AdsConfiguration.d.ts +14 -5
  186. package/lib/typescript/api/ads/AdsConfiguration.d.ts.map +1 -1
  187. package/lib/typescript/api/ads/CompanionAd.d.ts +1 -0
  188. package/lib/typescript/api/ads/CompanionAd.d.ts.map +1 -1
  189. package/lib/typescript/api/ads/GoogleDai.d.ts +1 -0
  190. package/lib/typescript/api/ads/GoogleDai.d.ts.map +1 -1
  191. package/lib/typescript/api/ads/GoogleImaAd.d.ts +3 -4
  192. package/lib/typescript/api/ads/GoogleImaAd.d.ts.map +1 -1
  193. package/lib/typescript/api/ads/GoogleImaConfiguration.d.ts +5 -1
  194. package/lib/typescript/api/ads/GoogleImaConfiguration.d.ts.map +1 -1
  195. package/lib/typescript/api/ads/Omid.d.ts +16 -0
  196. package/lib/typescript/api/ads/Omid.d.ts.map +1 -1
  197. package/lib/typescript/api/backgroundAudio/BackgroundAudioConfiguration.d.ts +4 -2
  198. package/lib/typescript/api/backgroundAudio/BackgroundAudioConfiguration.d.ts.map +1 -1
  199. package/lib/typescript/api/broadcast/EventBroadcastAPI.d.ts +1 -0
  200. package/lib/typescript/api/broadcast/EventBroadcastAPI.d.ts.map +1 -1
  201. package/lib/typescript/api/cache/CachingPreferredTrackSelection.d.ts +1 -0
  202. package/lib/typescript/api/cache/CachingPreferredTrackSelection.d.ts.map +1 -1
  203. package/lib/typescript/api/cache/CachingTask.d.ts +4 -1
  204. package/lib/typescript/api/cache/CachingTask.d.ts.map +1 -1
  205. package/lib/typescript/api/cache/CachingTaskLicense.d.ts +7 -0
  206. package/lib/typescript/api/cache/CachingTaskLicense.d.ts.map +1 -1
  207. package/lib/typescript/api/cache/CachingTaskList.d.ts +7 -0
  208. package/lib/typescript/api/cache/CachingTaskList.d.ts.map +1 -1
  209. package/lib/typescript/api/cache/CachingTaskParameters.d.ts +13 -9
  210. package/lib/typescript/api/cache/CachingTaskParameters.d.ts.map +1 -1
  211. package/lib/typescript/api/cache/MediaCacheAPI.d.ts +2 -0
  212. package/lib/typescript/api/cache/MediaCacheAPI.d.ts.map +1 -1
  213. package/lib/typescript/api/cache/events/CacheEvent.d.ts +19 -2
  214. package/lib/typescript/api/cache/events/CacheEvent.d.ts.map +1 -1
  215. package/lib/typescript/api/cache/events/CachingTaskEvent.d.ts +23 -0
  216. package/lib/typescript/api/cache/events/CachingTaskEvent.d.ts.map +1 -1
  217. package/lib/typescript/api/cache/hooks/useCachingTaskList.d.ts +6 -0
  218. package/lib/typescript/api/cache/hooks/useCachingTaskList.d.ts.map +1 -1
  219. package/lib/typescript/api/cache/hooks/useCachingTaskProgress.d.ts +6 -0
  220. package/lib/typescript/api/cache/hooks/useCachingTaskProgress.d.ts.map +1 -1
  221. package/lib/typescript/api/cache/hooks/useCachingTaskStatus.d.ts +6 -0
  222. package/lib/typescript/api/cache/hooks/useCachingTaskStatus.d.ts.map +1 -1
  223. package/lib/typescript/api/cast/Airplay.d.ts +2 -1
  224. package/lib/typescript/api/cast/Airplay.d.ts.map +1 -1
  225. package/lib/typescript/api/cast/CastAPI.d.ts +3 -0
  226. package/lib/typescript/api/cast/CastAPI.d.ts.map +1 -1
  227. package/lib/typescript/api/cast/CastConfiguration.d.ts +3 -0
  228. package/lib/typescript/api/cast/CastConfiguration.d.ts.map +1 -1
  229. package/lib/typescript/api/cast/CastState.d.ts +1 -0
  230. package/lib/typescript/api/cast/CastState.d.ts.map +1 -1
  231. package/lib/typescript/api/cast/Chromecast.d.ts +7 -0
  232. package/lib/typescript/api/cast/Chromecast.d.ts.map +1 -1
  233. package/lib/typescript/api/config/PlayerConfiguration.d.ts +15 -11
  234. package/lib/typescript/api/config/PlayerConfiguration.d.ts.map +1 -1
  235. package/lib/typescript/api/drm/ContentProtectionAPI.d.ts +9 -0
  236. package/lib/typescript/api/drm/ContentProtectionAPI.d.ts.map +1 -1
  237. package/lib/typescript/api/drm/ContentProtectionIntegration.d.ts +2 -1
  238. package/lib/typescript/api/drm/ContentProtectionIntegration.d.ts.map +1 -1
  239. package/lib/typescript/api/drm/ContentProtectionIntegrationFactory.d.ts +1 -0
  240. package/lib/typescript/api/drm/ContentProtectionIntegrationFactory.d.ts.map +1 -1
  241. package/lib/typescript/api/drm/ContentProtectionRequest.d.ts +5 -0
  242. package/lib/typescript/api/drm/ContentProtectionRequest.d.ts.map +1 -1
  243. package/lib/typescript/api/drm/ContentProtectionResponse.d.ts +6 -0
  244. package/lib/typescript/api/drm/ContentProtectionResponse.d.ts.map +1 -1
  245. package/lib/typescript/api/error/ChromecastError.d.ts +4 -0
  246. package/lib/typescript/api/error/ChromecastError.d.ts.map +1 -1
  247. package/lib/typescript/api/error/PlayerError.d.ts +7 -0
  248. package/lib/typescript/api/error/PlayerError.d.ts.map +1 -1
  249. package/lib/typescript/api/event/AdEvent.d.ts +18 -8
  250. package/lib/typescript/api/event/AdEvent.d.ts.map +1 -1
  251. package/lib/typescript/api/event/CastEvent.d.ts +35 -0
  252. package/lib/typescript/api/event/CastEvent.d.ts.map +1 -1
  253. package/lib/typescript/api/event/Event.d.ts +2 -1
  254. package/lib/typescript/api/event/Event.d.ts.map +1 -1
  255. package/lib/typescript/api/event/EventDispatcher.d.ts +3 -1
  256. package/lib/typescript/api/event/EventDispatcher.d.ts.map +1 -1
  257. package/lib/typescript/api/event/EventListener.d.ts +1 -0
  258. package/lib/typescript/api/event/EventListener.d.ts.map +1 -1
  259. package/lib/typescript/api/event/PlayerEvent.d.ts +107 -2
  260. package/lib/typescript/api/event/PlayerEvent.d.ts.map +1 -1
  261. package/lib/typescript/api/event/TheoAdsEvent.d.ts +14 -0
  262. package/lib/typescript/api/event/TheoAdsEvent.d.ts.map +1 -1
  263. package/lib/typescript/api/event/TrackEvent.d.ts +56 -0
  264. package/lib/typescript/api/event/TrackEvent.d.ts.map +1 -1
  265. package/lib/typescript/api/media/MediaControlConfiguration.d.ts +2 -4
  266. package/lib/typescript/api/media/MediaControlConfiguration.d.ts.map +1 -1
  267. package/lib/typescript/api/millicast/MillicastConnectOptions.d.ts +4 -0
  268. package/lib/typescript/api/millicast/MillicastConnectOptions.d.ts.map +1 -1
  269. package/lib/typescript/api/pip/PiPConfiguration.d.ts +10 -1
  270. package/lib/typescript/api/pip/PiPConfiguration.d.ts.map +1 -1
  271. package/lib/typescript/api/playback/PlaybackSettingsAPI.d.ts +3 -6
  272. package/lib/typescript/api/playback/PlaybackSettingsAPI.d.ts.map +1 -1
  273. package/lib/typescript/api/player/PlayerEventMap.d.ts +10 -0
  274. package/lib/typescript/api/player/PlayerEventMap.d.ts.map +1 -1
  275. package/lib/typescript/api/player/PlayerVersion.d.ts +6 -0
  276. package/lib/typescript/api/player/PlayerVersion.d.ts.map +1 -1
  277. package/lib/typescript/api/player/THEOplayer.d.ts +14 -9
  278. package/lib/typescript/api/player/THEOplayer.d.ts.map +1 -1
  279. package/lib/typescript/api/presentation/PresentationMode.d.ts.map +1 -1
  280. package/lib/typescript/api/source/SourceDescription.d.ts +29 -27
  281. package/lib/typescript/api/source/SourceDescription.d.ts.map +1 -1
  282. package/lib/typescript/api/source/ads/Ads.d.ts +8 -1
  283. package/lib/typescript/api/source/ads/Ads.d.ts.map +1 -1
  284. package/lib/typescript/api/source/ads/IMAAdDescription.d.ts +1 -0
  285. package/lib/typescript/api/source/ads/IMAAdDescription.d.ts.map +1 -1
  286. package/lib/typescript/api/source/ads/THEOplayerAdDescription.d.ts +1 -0
  287. package/lib/typescript/api/source/ads/THEOplayerAdDescription.d.ts.map +1 -1
  288. package/lib/typescript/api/source/ads/TheoAdDescription.d.ts +4 -3
  289. package/lib/typescript/api/source/ads/TheoAdDescription.d.ts.map +1 -1
  290. package/lib/typescript/api/source/ads/ssai/GoogleDAIConfiguration.d.ts +20 -1
  291. package/lib/typescript/api/source/ads/ssai/GoogleDAIConfiguration.d.ts.map +1 -1
  292. package/lib/typescript/api/source/ads/ssai/ServerSideAdInsertionConfiguration.d.ts +11 -0
  293. package/lib/typescript/api/source/ads/ssai/ServerSideAdInsertionConfiguration.d.ts.map +1 -1
  294. package/lib/typescript/api/source/analytics/AnalyticsDescription.d.ts +2 -0
  295. package/lib/typescript/api/source/analytics/AnalyticsDescription.d.ts.map +1 -1
  296. package/lib/typescript/api/source/cmcd/CmcdConfiguration.d.ts +14 -10
  297. package/lib/typescript/api/source/cmcd/CmcdConfiguration.d.ts.map +1 -1
  298. package/lib/typescript/api/source/dash/DashPlaybackConfiguration.d.ts +12 -16
  299. package/lib/typescript/api/source/dash/DashPlaybackConfiguration.d.ts.map +1 -1
  300. package/lib/typescript/api/source/drm/DRMConfiguration.d.ts +20 -0
  301. package/lib/typescript/api/source/drm/DRMConfiguration.d.ts.map +1 -1
  302. package/lib/typescript/api/source/hls/HlsPlaybackConfiguration.d.ts +2 -3
  303. package/lib/typescript/api/source/hls/HlsPlaybackConfiguration.d.ts.map +1 -1
  304. package/lib/typescript/api/source/metadata/MetadataDescription.d.ts +1 -0
  305. package/lib/typescript/api/source/metadata/MetadataDescription.d.ts.map +1 -1
  306. package/lib/typescript/api/theoads/TheoAdsAPI.d.ts +2 -2
  307. package/lib/typescript/api/theoads/interstitial/AdBreakInterstitial.d.ts +5 -0
  308. package/lib/typescript/api/theoads/interstitial/AdBreakInterstitial.d.ts.map +1 -1
  309. package/lib/typescript/api/theoads/interstitial/Interstitial.d.ts +2 -0
  310. package/lib/typescript/api/theoads/interstitial/Interstitial.d.ts.map +1 -1
  311. package/lib/typescript/api/theoads/interstitial/OverlayInterstitial.d.ts +3 -0
  312. package/lib/typescript/api/theoads/interstitial/OverlayInterstitial.d.ts.map +1 -1
  313. package/lib/typescript/api/theolive/TheoLiveConfiguration.d.ts +4 -8
  314. package/lib/typescript/api/theolive/TheoLiveConfiguration.d.ts.map +1 -1
  315. package/lib/typescript/api/track/DateRangeCue.d.ts +4 -0
  316. package/lib/typescript/api/track/DateRangeCue.d.ts.map +1 -1
  317. package/lib/typescript/api/track/MediaTrack.d.ts +25 -0
  318. package/lib/typescript/api/track/MediaTrack.d.ts.map +1 -1
  319. package/lib/typescript/api/track/Quality.d.ts +3 -0
  320. package/lib/typescript/api/track/Quality.d.ts.map +1 -1
  321. package/lib/typescript/api/track/TextTrack.d.ts +79 -0
  322. package/lib/typescript/api/track/TextTrack.d.ts.map +1 -1
  323. package/lib/typescript/api/track/TextTrackCue.d.ts +1 -0
  324. package/lib/typescript/api/track/TextTrackCue.d.ts.map +1 -1
  325. package/lib/typescript/api/track/TextTrackStyle.d.ts +13 -9
  326. package/lib/typescript/api/track/TextTrackStyle.d.ts.map +1 -1
  327. package/lib/typescript/api/track/Track.d.ts +25 -0
  328. package/lib/typescript/api/track/Track.d.ts.map +1 -1
  329. package/lib/typescript/api/ui/UIConfiguration.d.ts +1 -0
  330. package/lib/typescript/api/ui/UIConfiguration.d.ts.map +1 -1
  331. package/lib/typescript/internal/adapter/DefaultNativePlayerState.d.ts +1 -0
  332. package/lib/typescript/internal/adapter/DefaultNativePlayerState.d.ts.map +1 -1
  333. package/lib/typescript/internal/adapter/THEOplayerAdapter.d.ts +1 -0
  334. package/lib/typescript/internal/adapter/THEOplayerAdapter.d.ts.map +1 -1
  335. package/lib/typescript/internal/adapter/THEOplayerWebAdapter.d.ts +1 -0
  336. package/lib/typescript/internal/adapter/THEOplayerWebAdapter.d.ts.map +1 -1
  337. package/lib/typescript/internal/cache/MediaCache.d.ts +6 -0
  338. package/lib/typescript/internal/cache/MediaCache.d.ts.map +1 -1
  339. package/lib/typescript/internal/drm/ContentProtectionRegistry.d.ts +6 -0
  340. package/lib/typescript/internal/drm/ContentProtectionRegistry.d.ts.map +1 -1
  341. package/lib/typescript/plugins/expo/Common.d.ts +13 -0
  342. package/lib/typescript/plugins/expo/Common.d.ts.map +1 -0
  343. package/lib/typescript/plugins/expo/withCustomPod.d.ts +2 -0
  344. package/lib/typescript/plugins/expo/withCustomPod.d.ts.map +1 -0
  345. package/lib/typescript/plugins/expo/withTHEOplayer.d.ts +4 -0
  346. package/lib/typescript/plugins/expo/withTHEOplayer.d.ts.map +1 -0
  347. package/lib/typescript/plugins/expo/withTHEOplayerAndroid.d.ts +4 -0
  348. package/lib/typescript/plugins/expo/withTHEOplayerAndroid.d.ts.map +1 -0
  349. package/lib/typescript/plugins/expo/withTHEOplayerIOS.d.ts +4 -0
  350. package/lib/typescript/plugins/expo/withTHEOplayerIOS.d.ts.map +1 -0
  351. package/lib/typescript/plugins/typedoc-platform-icons/src/index.d.ts +3 -0
  352. package/lib/typescript/plugins/typedoc-platform-icons/src/index.d.ts.map +1 -0
  353. package/package.json +3 -3
  354. package/react-native-theoplayer.podspec +18 -8
  355. package/src/api/THEOplayerView.ts +1 -2
  356. package/src/api/abr/ABRConfiguration.ts +13 -12
  357. package/src/api/ads/Ad.ts +10 -3
  358. package/src/api/ads/AdBreak.ts +7 -0
  359. package/src/api/ads/AdsAPI.ts +6 -3
  360. package/src/api/ads/AdsConfiguration.ts +14 -5
  361. package/src/api/ads/CompanionAd.ts +1 -0
  362. package/src/api/ads/GoogleDai.ts +1 -0
  363. package/src/api/ads/GoogleImaAd.ts +3 -4
  364. package/src/api/ads/GoogleImaConfiguration.ts +7 -3
  365. package/src/api/ads/Omid.ts +16 -0
  366. package/src/api/backgroundAudio/BackgroundAudioConfiguration.ts +4 -2
  367. package/src/api/broadcast/EventBroadcastAPI.ts +1 -0
  368. package/src/api/cache/CachingPreferredTrackSelection.ts +1 -0
  369. package/src/api/cache/CachingTask.ts +5 -1
  370. package/src/api/cache/CachingTaskLicense.ts +7 -0
  371. package/src/api/cache/CachingTaskList.ts +7 -0
  372. package/src/api/cache/CachingTaskParameters.ts +13 -9
  373. package/src/api/cache/MediaCacheAPI.ts +2 -0
  374. package/src/api/cache/events/CacheEvent.ts +19 -2
  375. package/src/api/cache/events/CachingTaskEvent.ts +23 -0
  376. package/src/api/cache/hooks/useCachingTaskList.ts +6 -0
  377. package/src/api/cache/hooks/useCachingTaskProgress.ts +6 -0
  378. package/src/api/cache/hooks/useCachingTaskStatus.ts +6 -0
  379. package/src/api/cast/Airplay.ts +3 -2
  380. package/src/api/cast/CastAPI.ts +3 -1
  381. package/src/api/cast/CastConfiguration.ts +3 -0
  382. package/src/api/cast/CastState.ts +1 -0
  383. package/src/api/cast/Chromecast.ts +7 -0
  384. package/src/api/config/PlayerConfiguration.ts +15 -11
  385. package/src/api/drm/ContentProtectionAPI.ts +10 -0
  386. package/src/api/drm/ContentProtectionIntegration.ts +2 -1
  387. package/src/api/drm/ContentProtectionIntegrationFactory.ts +1 -0
  388. package/src/api/drm/ContentProtectionRequest.ts +5 -0
  389. package/src/api/drm/ContentProtectionResponse.ts +6 -0
  390. package/src/api/error/ChromecastError.ts +4 -0
  391. package/src/api/error/PlayerError.ts +7 -0
  392. package/src/api/event/AdEvent.ts +18 -8
  393. package/src/api/event/CastEvent.ts +35 -0
  394. package/src/api/event/Event.ts +2 -1
  395. package/src/api/event/EventDispatcher.ts +3 -1
  396. package/src/api/event/EventListener.ts +1 -0
  397. package/src/api/event/PlayerEvent.ts +107 -2
  398. package/src/api/event/TheoAdsEvent.ts +14 -0
  399. package/src/api/event/TrackEvent.ts +56 -0
  400. package/src/api/media/MediaControlConfiguration.ts +2 -4
  401. package/src/api/millicast/MillicastConnectOptions.ts +5 -1
  402. package/src/api/pip/PiPConfiguration.ts +11 -1
  403. package/src/api/playback/PlaybackSettingsAPI.ts +3 -6
  404. package/src/api/player/PlayerEventMap.ts +10 -0
  405. package/src/api/player/PlayerVersion.ts +6 -0
  406. package/src/api/player/THEOplayer.ts +15 -9
  407. package/src/api/presentation/PresentationMode.ts +0 -1
  408. package/src/api/source/SourceDescription.ts +29 -27
  409. package/src/api/source/ads/Ads.ts +8 -1
  410. package/src/api/source/ads/IMAAdDescription.ts +1 -0
  411. package/src/api/source/ads/THEOplayerAdDescription.ts +1 -0
  412. package/src/api/source/ads/TheoAdDescription.ts +4 -3
  413. package/src/api/source/ads/ssai/GoogleDAIConfiguration.ts +20 -1
  414. package/src/api/source/ads/ssai/ServerSideAdInsertionConfiguration.ts +12 -0
  415. package/src/api/source/analytics/AnalyticsDescription.ts +2 -0
  416. package/src/api/source/cmcd/CmcdConfiguration.ts +14 -10
  417. package/src/api/source/dash/DashPlaybackConfiguration.ts +12 -16
  418. package/src/api/source/drm/DRMConfiguration.ts +20 -0
  419. package/src/api/source/hls/HlsPlaybackConfiguration.ts +2 -3
  420. package/src/api/source/metadata/MetadataDescription.ts +1 -0
  421. package/src/api/theoads/TheoAdsAPI.ts +2 -2
  422. package/src/api/theoads/interstitial/AdBreakInterstitial.ts +5 -0
  423. package/src/api/theoads/interstitial/Interstitial.ts +2 -0
  424. package/src/api/theoads/interstitial/OverlayInterstitial.ts +3 -0
  425. package/src/api/theolive/TheoLiveConfiguration.ts +4 -8
  426. package/src/api/track/DateRangeCue.ts +4 -0
  427. package/src/api/track/MediaTrack.ts +25 -0
  428. package/src/api/track/Quality.ts +3 -0
  429. package/src/api/track/TextTrack.ts +79 -1
  430. package/src/api/track/TextTrackCue.ts +1 -0
  431. package/src/api/track/TextTrackStyle.ts +13 -9
  432. package/src/api/track/Track.ts +25 -0
  433. package/src/api/ui/UIConfiguration.ts +1 -0
  434. package/src/internal/adapter/DefaultNativePlayerState.ts +1 -0
  435. package/src/internal/adapter/THEOplayerAdapter.ts +5 -0
  436. package/src/internal/adapter/THEOplayerWebAdapter.ts +4 -0
  437. package/src/internal/cache/MediaCache.ts +6 -0
  438. package/src/internal/drm/ContentProtectionRegistry.ts +6 -0
  439. package/src/manifest.json +1 -1
  440. package/src/plugins/expo/Common.ts +20 -0
  441. package/src/plugins/expo/withCustomPod.ts +28 -0
  442. package/src/plugins/expo/withTHEOplayer.ts +11 -0
  443. package/src/plugins/expo/withTHEOplayerAndroid.ts +53 -0
  444. package/src/plugins/expo/withTHEOplayerIOS.ts +44 -0
  445. package/src/plugins/typedoc-platform-icons/package-lock.json +237 -0
  446. package/src/plugins/typedoc-platform-icons/package.json +20 -0
  447. package/src/plugins/typedoc-platform-icons/src/index.tsx +90 -0
  448. package/src/plugins/typedoc-platform-icons/tsconfig.json +24 -0
package/CHANGELOG.md CHANGED
@@ -5,6 +5,28 @@ 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.1.0/)
6
6
  and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [9.5.0] - 25-06-20
9
+
10
+ ### Added
11
+
12
+ - Added Expo plugin support for iOS. More info on the [documentation](./doc/expo.md) page.
13
+ - Added `currentProgramDateTime` to player API.
14
+
15
+ ### Fixed
16
+
17
+ - Fixed an issue where a delayed `PresentationModeChange` event on Android could cause lay-out issues when going in to fullscreen mode.
18
+
19
+ ## [9.4.0] - 25-06-12
20
+
21
+ ### Fixed
22
+
23
+ - Fixed an issue with the Expo plugin where Android extensions would not be properly enabled.
24
+
25
+ ### Added
26
+
27
+ - Added `theoads` and `millicast` support for Android Expo plugin.
28
+ - Added support for the new `TextTrackStyle.marginBottom` and `TextTrackStyle.marginRight` API's on THEOplayer Android SDK v9.5.0.
29
+
8
30
  ## [9.3.0] - 25-06-02
9
31
 
10
32
  ### Fixed
package/README.md CHANGED
@@ -174,15 +174,16 @@ This section gives an overview of features, limitations and known issues:
174
174
 
175
175
  - [Adaptive Bitrate (ABR)](./doc/abr.md)
176
176
  - [Advertisements](./doc/ads.md)
177
- - [Android Media3 Pipeline🔥](./doc/media3.md)
177
+ - [Android Media3 Pipeline](./doc/media3.md)
178
178
  - [Audio Control Management](./doc/audio-control.md)
179
179
  - [Background playback and notifications](./doc/background.md)
180
180
  - [Casting with Chromecast and Airplay](./doc/cast.md)
181
181
  - [Common Media Client Data (CMCD)](./doc/cmcd.md)
182
182
  - [Digital Rights Management (DRM)](./doc/drm.md)
183
+ - [Expo🔥](./doc/expo.md)
183
184
  - [Fullscreen presentation](./doc/fullscreen.md)
184
185
  - [Media Caching](./doc/media-caching.md)
185
- - [Migrating to THEOplayer 9.x🔥](./doc/migrating-to-react-native-theoplayer-9.md)
186
+ - [Migrating to THEOplayer 9.x](./doc/migrating-to-react-native-theoplayer-9.md)
186
187
  - [Millicast](./doc/millicast.md)
187
188
  - [Picture-in-Picture (PiP)](./doc/pip.md)
188
189
  - [Subtitles, Closed Captions and Metadata tracks](./doc/texttracks.md)
@@ -126,8 +126,8 @@ repositories {
126
126
  maven { url "https://maven.theoplayer.com/releases" }
127
127
  }
128
128
 
129
- // The minimum supported THEOplayer version is 9.0.0
130
- def theoplayer_sdk_version = safeExtGet('THEOplayer_sdk', '[9.0.0, 10.0.0)')
129
+ // The minimum supported THEOplayer version is 9.5.0
130
+ def theoplayer_sdk_version = safeExtGet('THEOplayer_sdk', '[9.5.0, 10.0.0)')
131
131
  def theoplayer_mediasession_version = safeExtGet('THEOplayer_mediasession', '[8.0.0, 10.0.0)')
132
132
  def theoplayer_ads_wrapper_version = "9.0.0"
133
133
 
@@ -235,18 +235,14 @@ class MediaPlaybackService : Service() {
235
235
 
236
236
  private fun startForegroundWithPlaybackState(@PlaybackStateCompat.State playbackState: Int, largeIcon: Bitmap? = null) {
237
237
  try {
238
- if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q) {
239
- startForeground(
240
- NOTIFICATION_ID,
241
- notificationBuilder.build(playbackState, largeIcon, mediaSessionConfig.mediaSessionEnabled),
238
+ ServiceCompat.startForeground(
239
+ this,
240
+ NOTIFICATION_ID,
241
+ notificationBuilder.build(playbackState, largeIcon, mediaSessionConfig.mediaSessionEnabled),
242
+ if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.Q)
242
243
  ServiceInfo.FOREGROUND_SERVICE_TYPE_MEDIA_PLAYBACK
243
- )
244
- } else {
245
- startForeground(
246
- NOTIFICATION_ID,
247
- notificationBuilder.build(playbackState, largeIcon, mediaSessionConfig.mediaSessionEnabled)
248
- )
249
- }
244
+ else 0
245
+ )
250
246
  } catch (e: IllegalStateException) {
251
247
  // Make sure that app does not crash in case anything goes wrong with starting the service.
252
248
  // https://issuetracker.google.com/issues/229000935
@@ -1,6 +1,13 @@
1
1
  package com.theoplayer.presentation
2
2
 
3
3
  data class PipConfig(
4
+ /**
5
+ * Whether Picture in Picture should reparent player to the root.
6
+ *
7
+ * @defaultValue `false`
8
+ */
9
+ val reparentPip: Boolean? = false,
10
+
4
11
  /**
5
12
  * Set whether the app should transition to PiP automatically when going to the background.
6
13
  *
@@ -5,10 +5,16 @@ import com.facebook.react.bridge.ReadableMap
5
5
  object PipConfigAdapter {
6
6
 
7
7
  private const val PROP_AUTO = "startsAutomatically"
8
+ private const val PROP_REPARENT = "reparentPip"
8
9
 
9
10
  fun fromProps(configProps: ReadableMap?): PipConfig {
10
11
  return PipConfig(
11
- if (configProps?.hasKey(PROP_AUTO) == true) configProps.getBoolean(PROP_AUTO) else false
12
+ reparentPip = if (configProps?.hasKey(PROP_REPARENT) == true)
13
+ configProps.getBoolean(PROP_REPARENT)
14
+ else false,
15
+ startsAutomatically = if (configProps?.hasKey(PROP_AUTO) == true)
16
+ configProps.getBoolean(PROP_AUTO)
17
+ else false
12
18
  )
13
19
  }
14
20
  }
@@ -149,7 +149,7 @@ class PresentationManager(
149
149
  try {
150
150
  pipUtils.enable()
151
151
  reactContext.currentActivity?.enterPictureInPictureMode(pipUtils.getPipParams())
152
- if (BuildConfig.REPARENT_ON_PIP) {
152
+ if (BuildConfig.REPARENT_ON_PIP && pipConfig.reparentPip == true) {
153
153
  reparentPlayerToRoot()
154
154
  }
155
155
  } catch (_: Exception) {
@@ -228,10 +228,7 @@ class PresentationManager(
228
228
  hide(WindowInsetsCompat.Type.systemBars())
229
229
  }
230
230
 
231
- // Delay the event making sure it does not arrive before animations ended.
232
- viewCtx.playerView.postOnAnimation {
233
- updatePresentationMode(PresentationMode.FULLSCREEN)
234
- }
231
+ updatePresentationMode(PresentationMode.FULLSCREEN)
235
232
 
236
233
  if (BuildConfig.REPARENT_ON_FULLSCREEN) {
237
234
  reparentPlayerToRoot()
@@ -12,7 +12,9 @@ private const val PROP_FONT_FAMILY = "fontFamily"
12
12
  private const val PROP_FONT_SIZE = "fontSize"
13
13
  private const val PROP_WINDOW_COLOR = "windowColor"
14
14
  private const val PROP_MARGIN_LEFT = "marginLeft"
15
+ private const val PROP_MARGIN_RIGHT = "marginRight"
15
16
  private const val PROP_MARGIN_TOP = "marginTop"
17
+ private const val PROP_MARGIN_BOTTOM = "marginBottom"
16
18
  private const val PROP_COLOR_R = "r"
17
19
  private const val PROP_COLOR_G = "g"
18
20
  private const val PROP_COLOR_B = "b"
@@ -54,9 +56,15 @@ object TextTrackStyleAdapter {
54
56
  if (props.hasKey(PROP_MARGIN_TOP)) {
55
57
  style.marginTop = props.getInt(PROP_MARGIN_TOP)
56
58
  }
59
+ if (props.hasKey(PROP_MARGIN_BOTTOM)) {
60
+ style.marginBottom = props.getInt(PROP_MARGIN_BOTTOM)
61
+ }
57
62
  if (props.hasKey(PROP_MARGIN_LEFT)) {
58
63
  style.marginLeft = props.getInt(PROP_MARGIN_LEFT)
59
64
  }
65
+ if (props.hasKey(PROP_MARGIN_RIGHT)) {
66
+ style.marginRight = props.getInt(PROP_MARGIN_RIGHT)
67
+ }
60
68
  }
61
69
 
62
70
  private fun edgeStyleFromProps(style: String?): TextTrackStyle.EdgeType {
package/app.plugin.js CHANGED
@@ -4,52 +4,8 @@
4
4
  * Example:
5
5
  * "plugins": [
6
6
  * ["react-native-theoplayer", {
7
- * "extensions": ["ima", "dai", "cast"]
7
+ * "extensions": ["ima", "dai", "cast", "theoads", "millicast"]
8
8
  * }]
9
9
  * ]
10
10
  */
11
- const { withProjectBuildGradle, withGradleProperties } = require('@expo/config-plugins');
12
-
13
- function mapAndroidExtensionKey(ext) {
14
- switch (ext) {
15
- case 'ima':
16
- return 'THEOplayer_extensionGoogleIMA';
17
- case 'dai':
18
- return 'THEOplayer_extensionGoogleDAI';
19
- case 'cast':
20
- return 'THEOplayer_extensionCast';
21
- default:
22
- return undefined;
23
- }
24
- }
25
-
26
- const applyAndroidExtensions = (config, extensions) => {
27
- return withGradleProperties(config, (config) => {
28
- extensions?.forEach((ext) => {
29
- const key = mapAndroidExtensionKey(ext);
30
- if (key) {
31
- config.modResults.push({ type: 'property', key, value: true });
32
- }
33
- });
34
- return config;
35
- });
36
- };
37
-
38
- const withAndroidTHEOplayer = (config, props) => {
39
- // Apply Android extensions
40
- const { extensions } = props | {};
41
- config = applyAndroidExtensions(config, extensions);
42
-
43
- // Add THEOplayer and local Maven repos to the project's repositories
44
- return withProjectBuildGradle(config, (config) => {
45
- const localMaven = 'maven { url("$rootDir/../node_modules/react-native-theoplayer/android/local") }';
46
- const THEOplayerMaven = 'maven { url("https://maven.theoplayer.com/releases") }';
47
- config.modResults.contents = config.modResults.contents.replace(/allprojects\s*\{\s*repositories\s*\{/, `$&\n\t\t${localMaven}\n\t\t${THEOplayerMaven}`);
48
- return config;
49
- });
50
- };
51
-
52
- module.exports = (config, props) => {
53
- // Apply Android modifications
54
- return withAndroidTHEOplayer(config, props);
55
- };
11
+ module.exports = require('./lib/commonjs/plugins/expo/withTHEOplayer')
@@ -10,6 +10,7 @@ exports.ABRStrategyType = void 0;
10
10
  * <br/> - `'quality'`: The player will optimize ABR behavior to focus displaying the best visual quality to the end-user. This strategy initiates playback with the highest bit rate suitable for the device.
11
11
  * <br/> - `'bandwidth'`: The player will optimize the ABR behavior to focus on displaying the most optimal quality based on historic data of available bandwidth and knowledge of the network conditions.
12
12
  *
13
+ * @category ABR
13
14
  * @public
14
15
  */
15
16
  let ABRStrategyType = exports.ABRStrategyType = /*#__PURE__*/function (ABRStrategyType) {
@@ -21,21 +22,25 @@ let ABRStrategyType = exports.ABRStrategyType = /*#__PURE__*/function (ABRStrate
21
22
  /**
22
23
  * Describes the metadata of the adaptive bitrate strategy.
23
24
  *
25
+ * @category ABR
24
26
  * @public
25
27
  */
26
28
  /**
27
29
  * Describes the configuration of the adaptive bitrate strategy.
28
30
  *
31
+ * @category ABR
29
32
  * @public
30
33
  */
31
34
  /**
32
35
  * The adaptive bitrate stratey.
33
36
  *
37
+ * @category ABR
34
38
  * @public
35
39
  */
36
40
  /**
37
41
  * Describes the adaptive bitrate configuration.
38
42
  *
43
+ * @category ABR
39
44
  * @public
40
45
  */
41
46
  //# sourceMappingURL=ABRConfiguration.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["ABRStrategyType","exports"],"sourceRoot":"../../../../src","sources":["api/abr/ABRConfiguration.ts"],"mappings":";;;;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAPA,IAQYA,eAAe,GAAAC,OAAA,CAAAD,eAAA,0BAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAA,OAAfA,eAAe;AAAA;AAM3B;AACA;AACA;AACA;AACA;AAUA;AACA;AACA;AACA;AACA;AAeA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA","ignoreList":[]}
1
+ {"version":3,"names":["ABRStrategyType","exports"],"sourceRoot":"../../../../src","sources":["api/abr/ABRConfiguration.ts"],"mappings":";;;;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AARA,IASYA,eAAe,GAAAC,OAAA,CAAAD,eAAA,0BAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAA,OAAfA,eAAe;AAAA;AAM3B;AACA;AACA;AACA;AACA;AACA;AAUA;AACA;AACA;AACA;AACA;AACA;AAeA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
@@ -4,6 +4,12 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.OmidFriendlyObstructionPurpose = void 0;
7
+ /**
8
+ * The list of reasons for which an obstruction would be registered as friendly.
9
+ *
10
+ * @category Ads
11
+ * @public
12
+ */
7
13
  let OmidFriendlyObstructionPurpose = exports.OmidFriendlyObstructionPurpose = /*#__PURE__*/function (OmidFriendlyObstructionPurpose) {
8
14
  OmidFriendlyObstructionPurpose["VIDEO_CONTROLS"] = "videoControls";
9
15
  OmidFriendlyObstructionPurpose["CLOSE_AD"] = "closeAd";
@@ -11,7 +17,16 @@ let OmidFriendlyObstructionPurpose = exports.OmidFriendlyObstructionPurpose = /*
11
17
  OmidFriendlyObstructionPurpose["OTHER"] = "other";
12
18
  return OmidFriendlyObstructionPurpose;
13
19
  }({});
20
+ /**
21
+ * Represents a friendly obstruction instance for OMID.
22
+ *
23
+ * @category Ads
24
+ * @public
25
+ */
14
26
  /**
15
27
  * The Omid API, which can be used to add as well as remove friendly video controls overlay obstructions.
28
+ *
29
+ * @category Ads
30
+ * @public
16
31
  */
17
32
  //# sourceMappingURL=Omid.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["OmidFriendlyObstructionPurpose","exports"],"sourceRoot":"../../../../src","sources":["api/ads/Omid.ts"],"mappings":";;;;;;IAEYA,8BAA8B,GAAAC,OAAA,CAAAD,8BAAA,0BAA9BA,8BAA8B;EAA9BA,8BAA8B;EAA9BA,8BAA8B;EAA9BA,8BAA8B;EAA9BA,8BAA8B;EAAA,OAA9BA,8BAA8B;AAAA;AAyC1C;AACA;AACA","ignoreList":[]}
1
+ {"version":3,"names":["OmidFriendlyObstructionPurpose","exports"],"sourceRoot":"../../../../src","sources":["api/ads/Omid.ts"],"mappings":";;;;;;AAEA;AACA;AACA;AACA;AACA;AACA;AALA,IAMYA,8BAA8B,GAAAC,OAAA,CAAAD,8BAAA,0BAA9BA,8BAA8B;EAA9BA,8BAA8B;EAA9BA,8BAA8B;EAA9BA,8BAA8B;EAA9BA,8BAA8B;EAAA,OAA9BA,8BAA8B;AAAA;AAsB1C;AACA;AACA;AACA;AACA;AACA;AAoBA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"names":["AudioSessionMode","exports"],"sourceRoot":"../../../../src","sources":["api/backgroundAudio/BackgroundAudioConfiguration.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AAJA,IA8BYA,gBAAgB,GAAAC,OAAA,CAAAD,gBAAA,0BAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAA,OAAhBA,gBAAgB;AAAA","ignoreList":[]}
1
+ {"version":3,"names":["AudioSessionMode","exports"],"sourceRoot":"../../../../src","sources":["api/backgroundAudio/BackgroundAudioConfiguration.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AAJA,IAgCYA,gBAAgB,GAAAC,OAAA,CAAAD,gBAAA,0BAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAhBA,gBAAgB;EAAA,OAAhBA,gBAAgB;AAAA","ignoreList":[]}
@@ -12,6 +12,7 @@ exports.CacheTaskStatus = void 0;
12
12
  * <br/> - `'error'`: The task has encountered an error while downloading or evicting content.
13
13
  * <br/> - `'evicted'`: All data associated with the task has been removed because the task expired or the user invoked the {@link CachingTask.remove|remove} method.
14
14
  *
15
+ * @category Caching
15
16
  * @public
16
17
  */
17
18
  let CacheTaskStatus = exports.CacheTaskStatus = /*#__PURE__*/function (CacheTaskStatus) {
@@ -25,6 +26,7 @@ let CacheTaskStatus = exports.CacheTaskStatus = /*#__PURE__*/function (CacheTask
25
26
  /**
26
27
  * Represents a caching task.
27
28
  *
29
+ * @category Caching
28
30
  * @public
29
31
  */
30
32
  //# sourceMappingURL=CachingTask.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["CacheTaskStatus","exports"],"sourceRoot":"../../../../src","sources":["api/cache/CachingTask.ts"],"mappings":";;;;;;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AATA,IAUYA,eAAe,GAAAC,OAAA,CAAAD,eAAA,0BAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAA,OAAfA,eAAe;AAAA;AAQ3B;AACA;AACA;AACA;AACA","ignoreList":[]}
1
+ {"version":3,"names":["CacheTaskStatus","exports"],"sourceRoot":"../../../../src","sources":["api/cache/CachingTask.ts"],"mappings":";;;;;;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAVA,IAWYA,eAAe,GAAAC,OAAA,CAAAD,eAAA,0BAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAfA,eAAe;EAAA,OAAfA,eAAe;AAAA;AAQ3B;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
@@ -7,8 +7,9 @@ exports.StorageType = void 0;
7
7
  /**
8
8
  * The types of cache storage supported by THEOplayer.
9
9
  *
10
- * @remarks
11
- * <br/> - Available only on Android.
10
+ * @platform android
11
+ * @category Caching
12
+ * @public
12
13
  */
13
14
  let StorageType = exports.StorageType = /*#__PURE__*/function (StorageType) {
14
15
  StorageType["LEGACY"] = "legacy";
@@ -18,6 +19,7 @@ let StorageType = exports.StorageType = /*#__PURE__*/function (StorageType) {
18
19
  /**
19
20
  * Describes the configuration of a caching task.
20
21
  *
22
+ * @category Caching
21
23
  * @public
22
24
  */
23
25
  //# sourceMappingURL=CachingTaskParameters.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["StorageType","exports"],"sourceRoot":"../../../../src","sources":["api/cache/CachingTaskParameters.ts"],"mappings":";;;;;;AAEA;AACA;AACA;AACA;AACA;AACA;AALA,IAMYA,WAAW,GAAAC,OAAA,CAAAD,WAAA,0BAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAA,OAAXA,WAAW;AAAA;AAqBvB;AACA;AACA;AACA;AACA","ignoreList":[]}
1
+ {"version":3,"names":["StorageType","exports"],"sourceRoot":"../../../../src","sources":["api/cache/CachingTaskParameters.ts"],"mappings":";;;;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AANA,IAOYA,WAAW,GAAAC,OAAA,CAAAD,WAAA,0BAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAA,OAAXA,WAAW;AAAA;AAqBvB;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
@@ -9,6 +9,7 @@ exports.CacheStatus = void 0;
9
9
  * <br/> - `'uninitialised'`: Previously stored caching tasks are unavailable.
10
10
  * <br/> - `'initialised'`: Previously stored caching tasks are now available.
11
11
  *
12
+ * @category Caching
12
13
  * @public
13
14
  */
14
15
  let CacheStatus = exports.CacheStatus = /*#__PURE__*/function (CacheStatus) {
@@ -19,6 +20,7 @@ let CacheStatus = exports.CacheStatus = /*#__PURE__*/function (CacheStatus) {
19
20
  /**
20
21
  * The media cache API.
21
22
  *
23
+ * @category Caching
22
24
  * @public
23
25
  */
24
26
  //# sourceMappingURL=MediaCacheAPI.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["CacheStatus","exports"],"sourceRoot":"../../../../src","sources":["api/cache/MediaCacheAPI.ts"],"mappings":";;;;;;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AANA,IAOYA,WAAW,GAAAC,OAAA,CAAAD,WAAA,0BAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAA,OAAXA,WAAW;AAAA;AAKvB;AACA;AACA;AACA;AACA","ignoreList":[]}
1
+ {"version":3,"names":["CacheStatus","exports"],"sourceRoot":"../../../../src","sources":["api/cache/MediaCacheAPI.ts"],"mappings":";;;;;;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AAPA,IAQYA,WAAW,GAAAC,OAAA,CAAAD,WAAA,0BAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAA,OAAXA,WAAW;AAAA;AAKvB;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
@@ -4,6 +4,13 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.CacheEventType = void 0;
7
+ /**
8
+ * The event types dispatched by the {@link MediaCacheAPI | cache API}.
9
+ *
10
+ * @category Caching
11
+ * @category Events
12
+ * @public
13
+ */
7
14
  let CacheEventType = exports.CacheEventType = /*#__PURE__*/function (CacheEventType) {
8
15
  CacheEventType["statechange"] = "statechange";
9
16
  CacheEventType["addtask"] = "addtask";
@@ -13,16 +20,26 @@ let CacheEventType = exports.CacheEventType = /*#__PURE__*/function (CacheEventT
13
20
  /**
14
21
  * The events dispatched by the {@link MediaCacheAPI | cache API}.
15
22
  *
23
+ * @category Caching
24
+ * @category Events
25
+ * @public
26
+ */
27
+ /**
28
+ * CacheStatusChangeEvent is dispatched when the status of a caching task is updated.
29
+ *
30
+ * @category Caching
16
31
  * @public
17
32
  */
18
33
  /**
19
- * Dispatched when a caching task is added.
34
+ * AddCachingTaskEvent is dispatched when a caching task is added.
20
35
  *
36
+ * @category Caching
21
37
  * @public
22
38
  */
23
39
  /**
24
- * Dispatched when a caching task is removed.
40
+ * RemoveCachingTaskEvent is dispatched when a caching task is removed.
25
41
  *
42
+ * @category Caching
26
43
  * @public
27
44
  */
28
45
  //# sourceMappingURL=CacheEvent.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["CacheEventType","exports"],"sourceRoot":"../../../../../src","sources":["api/cache/events/CacheEvent.ts"],"mappings":";;;;;;IAIYA,cAAc,GAAAC,OAAA,CAAAD,cAAA,0BAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAA,OAAdA,cAAc;AAAA;AAM1B;AACA;AACA;AACA;AACA;AAyBA;AACA;AACA;AACA;AACA;AAQA;AACA;AACA;AACA;AACA","ignoreList":[]}
1
+ {"version":3,"names":["CacheEventType","exports"],"sourceRoot":"../../../../../src","sources":["api/cache/events/CacheEvent.ts"],"mappings":";;;;;;AAIA;AACA;AACA;AACA;AACA;AACA;AACA;AANA,IAOYA,cAAc,GAAAC,OAAA,CAAAD,cAAA,0BAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAdA,cAAc;EAAA,OAAdA,cAAc;AAAA;AAM1B;AACA;AACA;AACA;AACA;AACA;AACA;AAkBA;AACA;AACA;AACA;AACA;AACA;AAQA;AACA;AACA;AACA;AACA;AACA;AAQA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
@@ -4,6 +4,13 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.CachingTaskEventType = void 0;
7
+ /**
8
+ * The events types dispatched by the {@link CachingTask}.
9
+ *
10
+ * @category Caching
11
+ * @category Events
12
+ * @public
13
+ */
7
14
  let CachingTaskEventType = exports.CachingTaskEventType = /*#__PURE__*/function (CachingTaskEventType) {
8
15
  CachingTaskEventType["progress"] = "progress";
9
16
  CachingTaskEventType["statechange"] = "statechange";
@@ -12,6 +19,22 @@ let CachingTaskEventType = exports.CachingTaskEventType = /*#__PURE__*/function
12
19
  /**
13
20
  * The events dispatched by the {@link CachingTask}.
14
21
  *
22
+ * @category Caching
23
+ * @category Events
24
+ * @public
25
+ */
26
+ /**
27
+ * Dispatched when the progress of a caching task is updated.
28
+ *
29
+ * @category Caching
30
+ * @category Events
31
+ * @public
32
+ */
33
+ /**
34
+ * Dispatched when the status of a caching task is changed.
35
+ *
36
+ * @category Caching
37
+ * @category Events
15
38
  * @public
16
39
  */
17
40
  //# sourceMappingURL=CachingTaskEvent.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["CachingTaskEventType","exports"],"sourceRoot":"../../../../../src","sources":["api/cache/events/CachingTaskEvent.ts"],"mappings":";;;;;;IAEYA,oBAAoB,GAAAC,OAAA,CAAAD,oBAAA,0BAApBA,oBAAoB;EAApBA,oBAAoB;EAApBA,oBAAoB;EAAA,OAApBA,oBAAoB;AAAA;AAKhC;AACA;AACA;AACA;AACA","ignoreList":[]}
1
+ {"version":3,"names":["CachingTaskEventType","exports"],"sourceRoot":"../../../../../src","sources":["api/cache/events/CachingTaskEvent.ts"],"mappings":";;;;;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AANA,IAOYA,oBAAoB,GAAAC,OAAA,CAAAD,oBAAA,0BAApBA,oBAAoB;EAApBA,oBAAoB;EAApBA,oBAAoB;EAAA,OAApBA,oBAAoB;AAAA;AAKhC;AACA;AACA;AACA;AACA;AACA;AACA;AAaA;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}
@@ -6,6 +6,12 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.useCachingTaskList = void 0;
7
7
  var _reactNativeTheoplayer = require("react-native-theoplayer");
8
8
  var _react = require("react");
9
+ /**
10
+ * A convenience hook that keeps a list of all caching tasks.
11
+ *
12
+ * @category Caching
13
+ * @public
14
+ */
9
15
  const useCachingTaskList = (debug = false) => {
10
16
  const [tasks, setTasks] = (0, _react.useState)([..._reactNativeTheoplayer.MediaCache.tasks]);
11
17
  (0, _react.useEffect)(() => {
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNativeTheoplayer","require","_react","useCachingTaskList","debug","tasks","setTasks","useState","MediaCache","useEffect","taskListChangeListener","console","log","addEventListener","CacheEventType","addtask","removetask","statechange","removeEventListener","exports"],"sourceRoot":"../../../../../src","sources":["api/cache/hooks/useCachingTaskList.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAEO,MAAME,kBAAkB,GAAGA,CAACC,KAAK,GAAG,KAAK,KAAK;EACnD,MAAM,CAACC,KAAK,EAAEC,QAAQ,CAAC,GAAG,IAAAC,eAAQ,EAAC,CAAC,GAAGC,iCAAU,CAACH,KAAK,CAAC,CAAC;EACzD,IAAAI,gBAAS,EAAC,MAAM;IACd,MAAMC,sBAAsB,GAAGA,CAAA,KAAM;MACnC,IAAIN,KAAK,EAAE;QACTO,OAAO,CAACC,GAAG,CAAC,kCAAkC,EAAEJ,iCAAU,CAACH,KAAK,CAAC;MACnE;MACAC,QAAQ,CAAC,CAAC,GAAGE,iCAAU,CAACH,KAAK,CAAC,CAAC;IACjC,CAAC;IACDG,iCAAU,CAACK,gBAAgB,CAACC,qCAAc,CAACC,OAAO,EAAEL,sBAAsB,CAAC;IAC3EF,iCAAU,CAACK,gBAAgB,CAACC,qCAAc,CAACE,UAAU,EAAEN,sBAAsB,CAAC;IAC9EF,iCAAU,CAACK,gBAAgB,CAACC,qCAAc,CAACG,WAAW,EAAEP,sBAAsB,CAAC;IAC/E,OAAO,MAAM;MACXF,iCAAU,CAACU,mBAAmB,CAACJ,qCAAc,CAACC,OAAO,EAAEL,sBAAsB,CAAC;MAC9EF,iCAAU,CAACU,mBAAmB,CAACJ,qCAAc,CAACE,UAAU,EAAEN,sBAAsB,CAAC;MACjFF,iCAAU,CAACK,gBAAgB,CAACC,qCAAc,CAACG,WAAW,EAAEP,sBAAsB,CAAC;IACjF,CAAC;EACH,CAAC,EAAE,EAAE,CAAC;EACN,OAAOL,KAAK;AACd,CAAC;AAACc,OAAA,CAAAhB,kBAAA,GAAAA,kBAAA","ignoreList":[]}
1
+ {"version":3,"names":["_reactNativeTheoplayer","require","_react","useCachingTaskList","debug","tasks","setTasks","useState","MediaCache","useEffect","taskListChangeListener","console","log","addEventListener","CacheEventType","addtask","removetask","statechange","removeEventListener","exports"],"sourceRoot":"../../../../../src","sources":["api/cache/hooks/useCachingTaskList.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACO,MAAME,kBAAkB,GAAGA,CAACC,KAAK,GAAG,KAAK,KAAK;EACnD,MAAM,CAACC,KAAK,EAAEC,QAAQ,CAAC,GAAG,IAAAC,eAAQ,EAAC,CAAC,GAAGC,iCAAU,CAACH,KAAK,CAAC,CAAC;EACzD,IAAAI,gBAAS,EAAC,MAAM;IACd,MAAMC,sBAAsB,GAAGA,CAAA,KAAM;MACnC,IAAIN,KAAK,EAAE;QACTO,OAAO,CAACC,GAAG,CAAC,kCAAkC,EAAEJ,iCAAU,CAACH,KAAK,CAAC;MACnE;MACAC,QAAQ,CAAC,CAAC,GAAGE,iCAAU,CAACH,KAAK,CAAC,CAAC;IACjC,CAAC;IACDG,iCAAU,CAACK,gBAAgB,CAACC,qCAAc,CAACC,OAAO,EAAEL,sBAAsB,CAAC;IAC3EF,iCAAU,CAACK,gBAAgB,CAACC,qCAAc,CAACE,UAAU,EAAEN,sBAAsB,CAAC;IAC9EF,iCAAU,CAACK,gBAAgB,CAACC,qCAAc,CAACG,WAAW,EAAEP,sBAAsB,CAAC;IAC/E,OAAO,MAAM;MACXF,iCAAU,CAACU,mBAAmB,CAACJ,qCAAc,CAACC,OAAO,EAAEL,sBAAsB,CAAC;MAC9EF,iCAAU,CAACU,mBAAmB,CAACJ,qCAAc,CAACE,UAAU,EAAEN,sBAAsB,CAAC;MACjFF,iCAAU,CAACK,gBAAgB,CAACC,qCAAc,CAACG,WAAW,EAAEP,sBAAsB,CAAC;IACjF,CAAC;EACH,CAAC,EAAE,EAAE,CAAC;EACN,OAAOL,KAAK;AACd,CAAC;AAACc,OAAA,CAAAhB,kBAAA,GAAAA,kBAAA","ignoreList":[]}
@@ -6,6 +6,12 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.useCachingTaskProgress = void 0;
7
7
  var _reactNativeTheoplayer = require("react-native-theoplayer");
8
8
  var _react = require("react");
9
+ /**
10
+ * A convenience hook that keeps the progress value of a caching task.
11
+ *
12
+ * @category Caching
13
+ * @public
14
+ */
9
15
  const useCachingTaskProgress = (task, debug = true) => {
10
16
  const [progress, setProgress] = (0, _react.useState)(task.percentageCached);
11
17
  (0, _react.useEffect)(() => {
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNativeTheoplayer","require","_react","useCachingTaskProgress","task","debug","progress","setProgress","useState","percentageCached","useEffect","onProgress","console","log","addEventListener","CachingTaskEventType","removeEventListener","exports"],"sourceRoot":"../../../../../src","sources":["api/cache/hooks/useCachingTaskProgress.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAEO,MAAME,sBAAsB,GAAGA,CAACC,IAAiB,EAAEC,KAAK,GAAG,IAAI,KAAK;EACzE,MAAM,CAACC,QAAQ,EAAEC,WAAW,CAAC,GAAG,IAAAC,eAAQ,EAAqBJ,IAAI,CAACK,gBAAgB,CAAC;EACnF,IAAAC,gBAAS,EAAC,MAAM;IACd,MAAMC,UAAU,GAAGA,CAAA,KAAM;MACvB,MAAMF,gBAAgB,GAAGL,IAAI,CAACK,gBAAgB;MAC9C,IAAIJ,KAAK,EAAE;QACTO,OAAO,CAACC,GAAG,CAAC,8BAA8B,EAAEJ,gBAAgB,CAAC;MAC/D;MACAF,WAAW,CAACE,gBAAgB,CAAC;IAC/B,CAAC;IACDL,IAAI,CAACU,gBAAgB,CAACC,2CAAoB,CAACT,QAAQ,EAAEK,UAAU,CAAC;IAChE,OAAO,MAAM;MACXP,IAAI,CAACY,mBAAmB,CAACD,2CAAoB,CAACT,QAAQ,EAAEK,UAAU,CAAC;IACrE,CAAC;EACH,CAAC,EAAE,EAAE,CAAC;EACN,OAAOL,QAAQ;AACjB,CAAC;AAACW,OAAA,CAAAd,sBAAA,GAAAA,sBAAA","ignoreList":[]}
1
+ {"version":3,"names":["_reactNativeTheoplayer","require","_react","useCachingTaskProgress","task","debug","progress","setProgress","useState","percentageCached","useEffect","onProgress","console","log","addEventListener","CachingTaskEventType","removeEventListener","exports"],"sourceRoot":"../../../../../src","sources":["api/cache/hooks/useCachingTaskProgress.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACO,MAAME,sBAAsB,GAAGA,CAACC,IAAiB,EAAEC,KAAK,GAAG,IAAI,KAAK;EACzE,MAAM,CAACC,QAAQ,EAAEC,WAAW,CAAC,GAAG,IAAAC,eAAQ,EAAqBJ,IAAI,CAACK,gBAAgB,CAAC;EACnF,IAAAC,gBAAS,EAAC,MAAM;IACd,MAAMC,UAAU,GAAGA,CAAA,KAAM;MACvB,MAAMF,gBAAgB,GAAGL,IAAI,CAACK,gBAAgB;MAC9C,IAAIJ,KAAK,EAAE;QACTO,OAAO,CAACC,GAAG,CAAC,8BAA8B,EAAEJ,gBAAgB,CAAC;MAC/D;MACAF,WAAW,CAACE,gBAAgB,CAAC;IAC/B,CAAC;IACDL,IAAI,CAACU,gBAAgB,CAACC,2CAAoB,CAACT,QAAQ,EAAEK,UAAU,CAAC;IAChE,OAAO,MAAM;MACXP,IAAI,CAACY,mBAAmB,CAACD,2CAAoB,CAACT,QAAQ,EAAEK,UAAU,CAAC;IACrE,CAAC;EACH,CAAC,EAAE,EAAE,CAAC;EACN,OAAOL,QAAQ;AACjB,CAAC;AAACW,OAAA,CAAAd,sBAAA,GAAAA,sBAAA","ignoreList":[]}
@@ -6,6 +6,12 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.useCachingTaskStatus = void 0;
7
7
  var _reactNativeTheoplayer = require("react-native-theoplayer");
8
8
  var _react = require("react");
9
+ /**
10
+ * A convenience hook that keeps the current status of a caching task.
11
+ *
12
+ * @category Caching
13
+ * @public
14
+ */
9
15
  const useCachingTaskStatus = (task, debug = false) => {
10
16
  const [status, setStatus] = (0, _react.useState)(task.status);
11
17
  (0, _react.useEffect)(() => {
@@ -1 +1 @@
1
- {"version":3,"names":["_reactNativeTheoplayer","require","_react","useCachingTaskStatus","task","debug","status","setStatus","useState","useEffect","onStateChange","console","log","addEventListener","CachingTaskEventType","statechange","removeEventListener","exports"],"sourceRoot":"../../../../../src","sources":["api/cache/hooks/useCachingTaskStatus.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAEO,MAAME,oBAAoB,GAAGA,CAACC,IAAiB,EAAEC,KAAK,GAAG,KAAK,KAAK;EACxE,MAAM,CAACC,MAAM,EAAEC,SAAS,CAAC,GAAG,IAAAC,eAAQ,EAA8BJ,IAAI,CAACE,MAAM,CAAC;EAC9E,IAAAG,gBAAS,EAAC,MAAM;IACd,MAAMC,aAAa,GAAGA,CAAA,KAAM;MAC1B,MAAMJ,MAAM,GAAGF,IAAI,CAACE,MAAM;MAC1B,IAAID,KAAK,EAAE;QACTM,OAAO,CAACC,GAAG,CAAC,2BAA2B,EAAEN,MAAM,CAAC;MAClD;MACAC,SAAS,CAACD,MAAM,CAAC;IACnB,CAAC;IACDF,IAAI,CAACS,gBAAgB,CAACC,2CAAoB,CAACC,WAAW,EAAEL,aAAa,CAAC;IACtE,OAAO,MAAM;MACXN,IAAI,CAACY,mBAAmB,CAACF,2CAAoB,CAACC,WAAW,EAAEL,aAAa,CAAC;IAC3E,CAAC;EACH,CAAC,EAAE,EAAE,CAAC;EACN,OAAOJ,MAAM;AACf,CAAC;AAACW,OAAA,CAAAd,oBAAA,GAAAA,oBAAA","ignoreList":[]}
1
+ {"version":3,"names":["_reactNativeTheoplayer","require","_react","useCachingTaskStatus","task","debug","status","setStatus","useState","useEffect","onStateChange","console","log","addEventListener","CachingTaskEventType","statechange","removeEventListener","exports"],"sourceRoot":"../../../../../src","sources":["api/cache/hooks/useCachingTaskStatus.ts"],"mappings":";;;;;;AAAA,IAAAA,sBAAA,GAAAC,OAAA;AACA,IAAAC,MAAA,GAAAD,OAAA;AAEA;AACA;AACA;AACA;AACA;AACA;AACO,MAAME,oBAAoB,GAAGA,CAACC,IAAiB,EAAEC,KAAK,GAAG,KAAK,KAAK;EACxE,MAAM,CAACC,MAAM,EAAEC,SAAS,CAAC,GAAG,IAAAC,eAAQ,EAA8BJ,IAAI,CAACE,MAAM,CAAC;EAC9E,IAAAG,gBAAS,EAAC,MAAM;IACd,MAAMC,aAAa,GAAGA,CAAA,KAAM;MAC1B,MAAMJ,MAAM,GAAGF,IAAI,CAACE,MAAM;MAC1B,IAAID,KAAK,EAAE;QACTM,OAAO,CAACC,GAAG,CAAC,2BAA2B,EAAEN,MAAM,CAAC;MAClD;MACAC,SAAS,CAACD,MAAM,CAAC;IACnB,CAAC;IACDF,IAAI,CAACS,gBAAgB,CAACC,2CAAoB,CAACC,WAAW,EAAEL,aAAa,CAAC;IACtE,OAAO,MAAM;MACXN,IAAI,CAACY,mBAAmB,CAACF,2CAAoB,CAACC,WAAW,EAAEL,aAAa,CAAC;IAC3E,CAAC;EACH,CAAC,EAAE,EAAE,CAAC;EACN,OAAOJ,MAAM;AACf,CAAC;AAACW,OAAA,CAAAd,oBAAA,GAAAA,oBAAA","ignoreList":[]}
@@ -11,6 +11,7 @@ exports.CastState = void 0;
11
11
  * <br/> - `'connecting'`: Cast device available and the player is connecting.
12
12
  * <br/> - `'connected'`: Cast device available and the player is connected.
13
13
  *
14
+ * @category Casting
14
15
  * @public
15
16
  */
16
17
  let CastState = exports.CastState = /*#__PURE__*/function (CastState) {
@@ -1 +1 @@
1
- {"version":3,"names":["CastState","exports"],"sourceRoot":"../../../../src","sources":["api/cast/CastState.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AARA,IASYA,SAAS,GAAAC,OAAA,CAAAD,SAAA,0BAATA,SAAS;EAATA,SAAS;EAATA,SAAS;EAATA,SAAS;EAATA,SAAS;EAAA,OAATA,SAAS;AAAA","ignoreList":[]}
1
+ {"version":3,"names":["CastState","exports"],"sourceRoot":"../../../../src","sources":["api/cast/CastState.ts"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AATA,IAUYA,SAAS,GAAAC,OAAA,CAAAD,SAAA,0BAATA,SAAS;EAATA,SAAS;EAATA,SAAS;EAATA,SAAS;EAATA,SAAS;EAAA,OAATA,SAAS;AAAA","ignoreList":[]}
@@ -4,6 +4,20 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.AdEventType = void 0;
7
+ /**
8
+ * The events dispatched by the {@link AdsAPI | Ads API}.
9
+ *
10
+ * @category Ads
11
+ * @category Events
12
+ * @public
13
+ */
14
+ /**
15
+ * The event types dispatched by the {@link AdsAPI | Ads API}.
16
+ *
17
+ * @category Ads
18
+ * @category Events
19
+ * @public
20
+ */
7
21
  let AdEventType = exports.AdEventType = /*#__PURE__*/function (AdEventType) {
8
22
  AdEventType["ADD_AD_BREAK"] = "addadbreak";
9
23
  AdEventType["REMOVE_AD_BREAK"] = "removeadbreak";
@@ -1 +1 @@
1
- {"version":3,"names":["AdEventType","exports"],"sourceRoot":"../../../../src","sources":["api/event/AdEvent.ts"],"mappings":";;;;;;IAeYA,WAAW,GAAAC,OAAA,CAAAD,WAAA,0BAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAA,OAAXA,WAAW;AAAA","ignoreList":[]}
1
+ {"version":3,"names":["AdEventType","exports"],"sourceRoot":"../../../../src","sources":["api/event/AdEvent.ts"],"mappings":";;;;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AAaA;AACA;AACA;AACA;AACA;AACA;AACA;AANA,IAOYA,WAAW,GAAAC,OAAA,CAAAD,WAAA,0BAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAXA,WAAW;EAAA,OAAXA,WAAW;AAAA","ignoreList":[]}
@@ -4,10 +4,45 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.CastEventType = void 0;
7
+ /**
8
+ * The event types dispatched by the {@link CastAPI | Cast API}.
9
+ *
10
+ * @category Events
11
+ * @category Casting
12
+ * @public
13
+ */
7
14
  let CastEventType = exports.CastEventType = /*#__PURE__*/function (CastEventType) {
8
15
  CastEventType["CHROMECAST_STATE_CHANGE"] = "chromecaststatechange";
9
16
  CastEventType["AIRPLAY_STATE_CHANGE"] = "airplaystatechange";
10
17
  CastEventType["CHROMECAST_ERROR"] = "chromecasterror";
11
18
  return CastEventType;
12
19
  }({});
20
+ /**
21
+ * The event dispatched by the {@link CastAPI | Cast API}.
22
+ *
23
+ * @category Events
24
+ * @category Casting
25
+ * @public
26
+ */
27
+ /**
28
+ * Dispatched when the chromecast state changes.
29
+ *
30
+ * @category Events
31
+ * @category Casting
32
+ * @public
33
+ */
34
+ /**
35
+ * Dispatched when the airplay state changes.
36
+ *
37
+ * @category Events
38
+ * @category Casting
39
+ * @public
40
+ */
41
+ /**
42
+ * Dispatched when a chromecast error occurs.
43
+ *
44
+ * @category Events
45
+ * @category Casting
46
+ * @public
47
+ */
13
48
  //# sourceMappingURL=CastEvent.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["CastEventType","exports"],"sourceRoot":"../../../../src","sources":["api/event/CastEvent.ts"],"mappings":";;;;;;IAGYA,aAAa,GAAAC,OAAA,CAAAD,aAAA,0BAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAA,OAAbA,aAAa;AAAA","ignoreList":[]}
1
+ {"version":3,"names":["CastEventType","exports"],"sourceRoot":"../../../../src","sources":["api/event/CastEvent.ts"],"mappings":";;;;;;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AANA,IAOYA,aAAa,GAAAC,OAAA,CAAAD,aAAA,0BAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAbA,aAAa;EAAA,OAAbA,aAAa;AAAA;AAiBzB;AACA;AACA;AACA;AACA;AACA;AACA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA;AAOA;AACA;AACA;AACA;AACA;AACA;AACA;AAOA;AACA;AACA;AACA;AACA;AACA;AACA","ignoreList":[]}