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
@@ -4,6 +4,9 @@ import type { ServerSideAdInsertionConfiguration } from './ServerSideAdInsertion
4
4
  /**
5
5
  * The identifier of the Google DAI integration.
6
6
  *
7
+ * @category Ads
8
+ * @category SSAI
9
+ * @category Source
7
10
  * @public
8
11
  */
9
12
  export type GoogleDAISSAIIntegrationID = 'google-dai';
@@ -13,6 +16,9 @@ export type GoogleDAISSAIIntegrationID = 'google-dai';
13
16
  * <br/> - `'live'`: The requested stream is a live stream.
14
17
  * <br/> - `'vod'`: The requested stream is a video-on-demand stream.
15
18
  *
19
+ * @category Ads
20
+ * @category SSAI
21
+ * @category Source
16
22
  * @public
17
23
  */
18
24
  export type DAIAvailabilityType = 'vod' | 'live';
@@ -20,6 +26,9 @@ export type DAIAvailabilityType = 'vod' | 'live';
20
26
  /**
21
27
  * Represents a configuration for server-side ad insertion with the Google DAI pre-integration.
22
28
  *
29
+ * @category Ads
30
+ * @category SSAI
31
+ * @category Source
23
32
  * @public
24
33
  */
25
34
  export interface GoogleDAIConfiguration extends ServerSideAdInsertionConfiguration {
@@ -71,10 +80,11 @@ export interface GoogleDAIConfiguration extends ServerSideAdInsertionConfigurati
71
80
  /**
72
81
  * The network code for the publisher making this stream request.
73
82
  *
83
+ * @platform web
84
+ *
74
85
  * @remarks
75
86
  * <br/> - See {@link https://developers.google.com/ad-manager/dynamic-ad-insertion/sdk/html5/reference/js/StreamRequest#networkCode}
76
87
  * for more information.
77
- * <br/> - Available on Web only.
78
88
  */
79
89
  networkCode?: string;
80
90
  }
@@ -82,6 +92,9 @@ export interface GoogleDAIConfiguration extends ServerSideAdInsertionConfigurati
82
92
  /**
83
93
  * Represents a configuration for server-side ad insertion with the Google DAI pre-integration for a Live media stream.
84
94
  *
95
+ * @category Ads
96
+ * @category SSAI
97
+ * @category Source
85
98
  * @public
86
99
  */
87
100
  export interface GoogleDAILiveConfiguration extends GoogleDAIConfiguration {
@@ -103,6 +116,9 @@ export interface GoogleDAILiveConfiguration extends GoogleDAIConfiguration {
103
116
  /**
104
117
  * Represents a configuration for server-side ad insertion with the Google DAI pre-integration for a VOD media stream.
105
118
  *
119
+ * @category Ads
120
+ * @category SSAI
121
+ * @category Source
106
122
  * @public
107
123
  */
108
124
  export interface GoogleDAIVodConfiguration extends GoogleDAIConfiguration {
@@ -132,6 +148,9 @@ export interface GoogleDAIVodConfiguration extends GoogleDAIConfiguration {
132
148
  /**
133
149
  * Represents a media resource with a Google DAI server-side ad insertion request.
134
150
  *
151
+ * @category Ads
152
+ * @category SSAI
153
+ * @category Source
135
154
  * @public
136
155
  */
137
156
  export interface GoogleDAITypedSource extends TypedSource {
@@ -3,14 +3,26 @@ import type { GoogleDAISSAIIntegrationID } from './GoogleDAIConfiguration';
3
3
  /**
4
4
  * The identifier of a server-side ad insertion pre-integration, represented by a string value.
5
5
  *
6
+ * @category Ads
7
+ * @category SSAI
6
8
  * @public
7
9
  */
8
10
  export type SSAIIntegrationId = GoogleDAISSAIIntegrationID | CustomSSAIIntegrationId;
11
+
12
+ /**
13
+ * The identifier of a custom server-side ad insertion, represented by a string value.
14
+ *
15
+ * @category Ads
16
+ * @category SSAI
17
+ * @public
18
+ */
9
19
  export type CustomSSAIIntegrationId = string;
10
20
 
11
21
  /**
12
22
  * Represents a configuration for server-side ad insertion (SSAI).
13
23
  *
24
+ * @category Ads
25
+ * @category SSAI
14
26
  * @public
15
27
  */
16
28
  export interface ServerSideAdInsertionConfiguration {
@@ -1,6 +1,8 @@
1
1
  /**
2
2
  * Describes the configuration of an analytics integration as part of the SourceDescription.
3
3
  *
4
+ * @category Analytics
5
+ * @category Source
4
6
  * @public
5
7
  */
6
8
  export interface AnalyticsDescription {
@@ -1,21 +1,22 @@
1
1
  /**
2
2
  * The configuration for transmitting information to Content Delivery Networks (CDNs)
3
3
  * through Common Media Client Data (CMCD) (CTA-5004)
4
+ *
5
+ * @category Source
6
+ * @public
4
7
  */
5
8
  export interface CmcdConfiguration {
6
9
  /**
7
10
  * The content ID parameter which should be passed as a CMCD value. If left empty, no content ID will be sent.
8
11
  *
9
- * @remarks
10
- * Web only
12
+ * @platform web
11
13
  */
12
14
  contentID?: string;
13
15
 
14
16
  /**
15
17
  * The session ID parameter which should be passed as a CMCD value. If left empty, a UUIDv4 will be generated when applying the configuration.
16
18
  *
17
- * @remarks
18
- * Web only
19
+ * @platform web
19
20
  */
20
21
  sessionID?: string;
21
22
 
@@ -23,8 +24,7 @@ export interface CmcdConfiguration {
23
24
  * A flag to indicate if request IDs should be sent or not.
24
25
  * When set to a truthy value, a UUIDv4 will be sent as a request id (`rid`) with every request to allow for request tracing.
25
26
  *
26
- * @remarks
27
- * Web only
27
+ * @platform web
28
28
  */
29
29
  sendRequestID?: boolean;
30
30
 
@@ -32,8 +32,7 @@ export interface CmcdConfiguration {
32
32
  * The target URI where client data is to be delivered in case the {@link transmissionMode} is set
33
33
  * to {@link CmcdTransmissionMode.JSON_OBJECT}.
34
34
  *
35
- * @remarks
36
- * Web only
35
+ * @platform web
37
36
  */
38
37
  jsonObjectTargetURI?: string;
39
38
 
@@ -42,8 +41,7 @@ export interface CmcdConfiguration {
42
41
  * Note custom keys MUST carry a hyphenated prefix to ensure that there will not be a namespace collision with future
43
42
  * revisions to the specification. Clients SHOULD use a reverse-DNS syntax when defining their own prefix.
44
43
  *
45
- * @remarks
46
- * Web only
44
+ * @platform web
47
45
  */
48
46
  customKeys?: {
49
47
  [key: string]: string | number | boolean;
@@ -55,6 +53,12 @@ export interface CmcdConfiguration {
55
53
  transmissionMode: CmcdTransmissionMode
56
54
  }
57
55
 
56
+ /**
57
+ * The CMCD transmission mode.
58
+ *
59
+ * @category Source
60
+ * @public
61
+ */
58
62
  export enum CmcdTransmissionMode {
59
63
  /**
60
64
  * Transmit CMCD data as a custom HTTP request header.
@@ -8,6 +8,7 @@
8
8
  * Use this if you notice that the player never preloads the next period, even though you know that the current platform
9
9
  * should support it.
10
10
  *
11
+ * @category Source
11
12
  * @public
12
13
  */
13
14
  export type SeamlessPeriodSwitchStrategy = 'auto' | 'always' | 'never';
@@ -15,17 +16,14 @@ export type SeamlessPeriodSwitchStrategy = 'auto' | 'always' | 'never';
15
16
  /**
16
17
  * Represents a configuration for controlling playback of an MPEG-DASH stream.
17
18
  *
18
- * @remarks
19
- * <br/> - Available since v2.79.0.
20
- *
19
+ * @category Source
21
20
  * @public
22
21
  */
23
22
  export interface DashPlaybackConfiguration {
24
23
  /**
25
24
  * Whether to seamlessly switch between DASH periods.
26
25
  *
27
- * @remarks
28
- * <br/> - Available on Web only.
26
+ * @platform web
29
27
  *
30
28
  * The player supports two strategies for handling a switch between two periods in an MPEG-DASH stream:
31
29
  * <br/> - <strong>Seamless</strong>: Once the player is done buffering the current period, it immediately starts buffering the next period.
@@ -49,9 +47,9 @@ export interface DashPlaybackConfiguration {
49
47
  * (Experimental) Whether the timescales of the media data need to be shifted,
50
48
  * in order to work around platform-specific issues on certain smart TV platforms.
51
49
  *
50
+ * @platform android
51
+ *
52
52
  * @remarks
53
- * <br/> - Available since v4.1.0.
54
- * <br/> - Available on Web only.
55
53
  * <br/> - On certain smart TV platforms (such as Tizen 2), playback issues may arise when
56
54
  * the timescale of the media data changes across periods or discontinuities.
57
55
  * In that case, the player may need to shift all the timescales first,
@@ -66,9 +64,9 @@ export interface DashPlaybackConfiguration {
66
64
  /**
67
65
  * (Experimental) The desired timescale to which the media data should be shifted.
68
66
  *
67
+ * @platform web
68
+ *
69
69
  * @remarks
70
- * <br/> - Available since v4.11.0.
71
- * <br/> - Available on Web only.
72
70
  * <br/> - When specified, if the player decides to shift the timescale (see {@link DashPlaybackConfiguration.needsTimescaleShifting}), the timescale will be set to the
73
71
  * given desired timescale.
74
72
  * <br/> - When not specified, if the player decides to shift timescale, the player will decide the timescale to which it should shift.
@@ -82,8 +80,7 @@ export interface DashPlaybackConfiguration {
82
80
  *
83
81
  * @internal
84
82
  *
85
- * @remarks
86
- * <br/> - Available on Web only.
83
+ * @platform web
87
84
  */
88
85
  forceSeekToSynchronize?: boolean;
89
86
 
@@ -91,9 +88,9 @@ export interface DashPlaybackConfiguration {
91
88
  * (Experimental) Force the player to ignore the availability window of individual segments in the MPD,
92
89
  * and instead consider every listed segment to be immediately available.
93
90
  *
91
+ * @platform web,android
92
+ *
94
93
  * @remarks
95
- * <br/> - Available since v5.2.0.
96
- * <br/> - Available on Web and Android.
97
94
  * <br/> - This only applies to livestreams (with `<MPD type="dynamic">`).
98
95
  * <br/> - This only applies to streams that use `<SegmentTimeline>`.
99
96
  */
@@ -102,10 +99,9 @@ export interface DashPlaybackConfiguration {
102
99
  /**
103
100
  * A flag to indicate whether timestamps of segmented WebVTT subtitles are relative to the segment start time.
104
101
  *
105
- * @remarks
106
- * <br/> - Available on Web only.
102
+ * @platform web
107
103
  *
108
- * @defaultValue `true`
104
+ * @defaultValue `true`
109
105
  */
110
106
  segmentRelativeVttTiming?: boolean;
111
107
  }
@@ -1,6 +1,8 @@
1
1
  /**
2
2
  * Describes the key system configuration.
3
3
  *
4
+ * @category Content Protection
5
+ * @category Source
4
6
  * @public
5
7
  */
6
8
  export interface KeySystemConfiguration {
@@ -99,6 +101,8 @@ export interface KeySystemConfiguration {
99
101
  * <br/> - `'temporary'`
100
102
  * <br/> - `'persistent'`
101
103
  *
104
+ * @category Content Protection
105
+ * @category Source
102
106
  * @public
103
107
  */
104
108
  export type LicenseType = 'temporary' | 'persistent';
@@ -106,6 +110,8 @@ export type LicenseType = 'temporary' | 'persistent';
106
110
  /**
107
111
  * Describes the FairPlay key system configuration.
108
112
  *
113
+ * @category Content Protection
114
+ * @category Source
109
115
  * @public
110
116
  */
111
117
  export interface FairPlayKeySystemConfiguration extends KeySystemConfiguration {
@@ -118,6 +124,8 @@ export interface FairPlayKeySystemConfiguration extends KeySystemConfiguration {
118
124
  /**
119
125
  * Describes the PlayReady key system configuration.
120
126
  *
127
+ * @category Content Protection
128
+ * @category Source
121
129
  * @public
122
130
  */
123
131
  export interface PlayReadyKeySystemConfiguration extends KeySystemConfiguration {
@@ -130,6 +138,8 @@ export interface PlayReadyKeySystemConfiguration extends KeySystemConfiguration
130
138
  /**
131
139
  * Describes the Widevine key system configuration.
132
140
  *
141
+ * @category Content Protection
142
+ * @category Source
133
143
  * @public
134
144
  */
135
145
  export type WidevineKeySystemConfiguration = KeySystemConfiguration;
@@ -137,6 +147,8 @@ export type WidevineKeySystemConfiguration = KeySystemConfiguration;
137
147
  /**
138
148
  * Describes the ClearKey key system configuration.
139
149
  *
150
+ * @category Content Protection
151
+ * @category Source
140
152
  * @public
141
153
  */
142
154
  export interface ClearkeyKeySystemConfiguration extends KeySystemConfiguration {
@@ -149,6 +161,8 @@ export interface ClearkeyKeySystemConfiguration extends KeySystemConfiguration {
149
161
  /**
150
162
  * Describes the ClearKey decryption key.
151
163
  *
164
+ * @category Content Protection
165
+ * @category Source
152
166
  * @public
153
167
  */
154
168
  export interface ClearkeyDecryptionKey {
@@ -174,6 +188,8 @@ export interface ClearkeyDecryptionKey {
174
188
  /**
175
189
  * Describes the AES128 key system configuration.
176
190
  *
191
+ * @category Content Protection
192
+ * @category Source
177
193
  * @public
178
194
  */
179
195
  export interface AES128KeySystemConfiguration {
@@ -191,6 +207,8 @@ export interface AES128KeySystemConfiguration {
191
207
  /**
192
208
  * Describes the configuration of the DRM.
193
209
  *
210
+ * @category Content Protection
211
+ * @category Source
194
212
  * @public
195
213
  */
196
214
  export interface DRMConfiguration {
@@ -247,6 +265,8 @@ export interface DRMConfiguration {
247
265
  /**
248
266
  * The id of a key system. Possible values are 'widevine', 'fairplay' and 'playready'.
249
267
  *
268
+ * @category Content Protection
269
+ * @category Source
250
270
  * @public
251
271
  */
252
272
  export type KeySystemId = 'widevine' | 'fairplay' | 'playready';
@@ -16,6 +16,7 @@
16
16
  * @remarks
17
17
  * <br/> - See {@link HlsPlaybackConfiguration.discontinuityAlignment}.
18
18
  *
19
+ * @category Source
19
20
  * @public
20
21
  */
21
22
  export type HlsDiscontinuityAlignment = 'auto' | 'playlist' | 'media';
@@ -23,9 +24,7 @@ export type HlsDiscontinuityAlignment = 'auto' | 'playlist' | 'media';
23
24
  /**
24
25
  * Represents a configuration for controlling playback of an MPEG-DASH stream.
25
26
  *
26
- * @remarks
27
- * <br/> - Available since v2.82.0.
28
- *
27
+ * @category Source
29
28
  * @public
30
29
  */
31
30
  export interface HlsPlaybackConfiguration {
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * Describes the metadata of a source.
3
3
  *
4
+ * @category Source
4
5
  * @public
5
6
  */
6
7
  export interface MetadataDescription {
@@ -3,9 +3,9 @@ import { Interstitial } from './interstitial/Interstitial';
3
3
  /**
4
4
  * The THEOads API.
5
5
  *
6
- * @remarks
7
- * <br/> - Available since v8.17.0.
6
+ * @since React Native THEOplayer SDK v8.17.0.
8
7
  *
8
+ * @category Ads
9
9
  * @category THEOads
10
10
  * @public
11
11
  */
@@ -4,12 +4,17 @@ import { Interstitial } from './Interstitial';
4
4
 
5
5
  /**
6
6
  * The layout of the THEOad.
7
+ *
8
+ * @category Ads
9
+ * @category THEOads
10
+ * @public
7
11
  */
8
12
  export type TheoAdsLayout = 'single' | 'l-shape' | 'double';
9
13
 
10
14
  /**
11
15
  * The THEOads interstitial that corresponds with ad playback.
12
16
  *
17
+ * @category Ads
13
18
  * @category THEOads
14
19
  * @public
15
20
  */
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * The type of the interstitial.
3
3
  *
4
+ * @category Ads
4
5
  * @category THEOads
5
6
  * @public
6
7
  */
@@ -9,6 +10,7 @@ export type InterstitialType = 'adbreak' | 'overlay';
9
10
  /**
10
11
  * The THEOads interstitial.
11
12
  *
13
+ * @category Ads
12
14
  * @category THEOads
13
15
  * @public
14
16
  */
@@ -3,6 +3,7 @@ import { Interstitial } from './Interstitial';
3
3
  /**
4
4
  * The THEOads interstitial that corresponds with overlay playback.
5
5
  *
6
+ * @category Ads
6
7
  * @category THEOads
7
8
  * @public
8
9
  */
@@ -33,6 +34,7 @@ export interface OverlayInterstitial extends Interstitial {
33
34
  /**
34
35
  * The position information of the overlay.
35
36
  *
37
+ * @category Ads
36
38
  * @category THEOads
37
39
  * @public
38
40
  */
@@ -46,6 +48,7 @@ export interface OverlayPosition {
46
48
  /**
47
49
  * The size information of the overlay.
48
50
  *
51
+ * @category Ads
49
52
  * @category THEOads
50
53
  * @public
51
54
  */
@@ -7,32 +7,28 @@ export interface TheoLiveConfiguration {
7
7
  /**
8
8
  * An id used to report usage analytics, if not explicitly given a random UUID is used.
9
9
  *
10
- * @remarks
11
- * <br/> - Available on Web and Android only.
10
+ * @platform web,android
12
11
  */
13
12
  readonly externalSessionId?: string;
14
13
 
15
14
  /**
16
15
  * Whether this player should fallback or not when it has a fallback configured.
17
16
  *
18
- * @remarks
19
- * <br/> - Available on Web only.
17
+ * @platform web
20
18
  */
21
19
  readonly fallbackEnabled?: boolean;
22
20
 
23
21
  /**
24
22
  * An optional header that can be passed during discovery.
25
23
  *
26
- * @remarks
27
- * <br/> - Available on Web only.
24
+ * @platform web
28
25
  */
29
26
  readonly discoveryHeader?: string;
30
27
 
31
28
  /**
32
29
  * Whether THEOlive analytics should be disabled or not.
33
30
  *
34
- * @remarks
35
- * <br/> - Available on Android only.
31
+ * @platform android
36
32
  *
37
33
  * @defaultValue `false`
38
34
  */
@@ -3,6 +3,7 @@ import type { TextTrackCue } from './TextTrackCue';
3
3
  /**
4
4
  * Represents a cue of a HLS date range metadata text track.
5
5
  *
6
+ * @category Media and Text Tracks
6
7
  * @public
7
8
  */
8
9
  export interface DateRangeCue extends TextTrackCue {
@@ -68,6 +69,9 @@ export interface DateRangeCue extends TextTrackCue {
68
69
 
69
70
  /**
70
71
  * Check whether a text track cue is of type DateRangeCue.
72
+ *
73
+ * @category Media and Text Tracks
74
+ * @public
71
75
  */
72
76
  export function isDateRangeCue(cue: TextTrackCue): cue is DateRangeCue {
73
77
  return (cue as DateRangeCue).customAttributes != undefined;
@@ -1,11 +1,18 @@
1
1
  import type { Track } from './Track';
2
2
  import type { Quality } from './Quality';
3
3
 
4
+ /**
5
+ * Represents the category of a media track (audio or video).
6
+ *
7
+ * @category Media and Text Tracks
8
+ * @public
9
+ */
4
10
  export type MediaTrackKind = 'main' | 'alternative';
5
11
 
6
12
  /**
7
13
  * Represents a media track (audio or video) of a media resource.
8
14
  *
15
+ * @category Media and Text Tracks
9
16
  * @public
10
17
  */
11
18
  export interface MediaTrack extends Track {
@@ -60,14 +67,32 @@ export interface MediaTrack extends Track {
60
67
  readonly enabled: boolean;
61
68
  }
62
69
 
70
+ /**
71
+ * Find a media track by `uid` in a list of media tracks.
72
+ *
73
+ * @category Media and Text Tracks
74
+ * @public
75
+ */
63
76
  export function findMediaTrackByUid(mediaTracks: MediaTrack[], uid: number | undefined): MediaTrack | undefined {
64
77
  return mediaTracks.find((track) => track.uid === uid);
65
78
  }
66
79
 
80
+ /**
81
+ * Find a quality by `uid` in a list of media tracks.
82
+ *
83
+ * @category Media and Text Tracks
84
+ * @public
85
+ */
67
86
  export function findQualityByUid(mediaTrack: MediaTrack, uid: number | undefined): Quality | undefined {
68
87
  return mediaTrack.qualities.find((quality) => quality.uid === uid);
69
88
  }
70
89
 
90
+ /**
91
+ * Find a list of qualities by `uid` in a list of media tracks.
92
+ *
93
+ * @category Media and Text Tracks
94
+ * @public
95
+ */
71
96
  export function findQualitiesByUid(mediaTrack: MediaTrack | undefined, uid: number | number[] | undefined): Quality[] | undefined {
72
97
  if (uid && mediaTrack) {
73
98
  if (Array.isArray(uid)) {
@@ -1,6 +1,7 @@
1
1
  /**
2
2
  * Represents a quality of a media track.
3
3
  *
4
+ * @category Media and Text Tracks
4
5
  * @public
5
6
  */
6
7
  export interface Quality {
@@ -54,6 +55,7 @@ export interface Quality {
54
55
  /**
55
56
  * Represents a quality of a video track.
56
57
  *
58
+ * @category Media and Text Tracks
57
59
  * @public
58
60
  */
59
61
  export interface VideoQuality extends Quality {
@@ -81,6 +83,7 @@ export interface VideoQuality extends Quality {
81
83
  /**
82
84
  * Represents a quality of an audio track.
83
85
  *
86
+ * @category Media and Text Tracks
84
87
  * @public
85
88
  */
86
89
  export interface AudioQuality extends Quality {