@pigeonmal/react-native-video 7.0.0-beta.10

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 (705) hide show
  1. package/LICENSE +20 -0
  2. package/README.md +38 -0
  3. package/ReactNativeVideo.podspec +59 -0
  4. package/android/CMakeLists.txt +29 -0
  5. package/android/build.gradle +255 -0
  6. package/android/fix-prefab.gradle +51 -0
  7. package/android/gradle.properties +13 -0
  8. package/android/media3-ffmpeg-decoder/build.gradle +2 -0
  9. package/android/media3-ffmpeg-decoder/ffmpeg.aar +0 -0
  10. package/android/src/main/AndroidManifest.xml +3 -0
  11. package/android/src/main/AndroidManifestNew.xml +3 -0
  12. package/android/src/main/cpp/cpp-adapter.cpp +6 -0
  13. package/android/src/main/java/com/twg/video/core/AudioFocusManager.kt +233 -0
  14. package/android/src/main/java/com/twg/video/core/VideoError.kt +105 -0
  15. package/android/src/main/java/com/twg/video/core/VideoManager.kt +292 -0
  16. package/android/src/main/java/com/twg/video/core/custom/MyRenderersFactory.java +78 -0
  17. package/android/src/main/java/com/twg/video/core/custom/MyTextRenderer.java +121 -0
  18. package/android/src/main/java/com/twg/video/core/custom/TextFilter.java +6 -0
  19. package/android/src/main/java/com/twg/video/core/custom/TextSynchronizer.java +7 -0
  20. package/android/src/main/java/com/twg/video/core/extensions/ResizeMode+AspectRatioFrameLayout.kt +20 -0
  21. package/android/src/main/java/com/twg/video/core/extensions/SubtitleType+toString.kt +14 -0
  22. package/android/src/main/java/com/twg/video/core/extensions/VideoPlaybackService+ServiceManagment.kt +59 -0
  23. package/android/src/main/java/com/twg/video/core/fragments/FullscreenVideoFragment.kt +265 -0
  24. package/android/src/main/java/com/twg/video/core/fragments/PictureInPictureHelperFragment.kt +85 -0
  25. package/android/src/main/java/com/twg/video/core/player/DRMManagerSpec.kt +23 -0
  26. package/android/src/main/java/com/twg/video/core/player/DataSourceFactoryUtils.kt +80 -0
  27. package/android/src/main/java/com/twg/video/core/player/MediaItemUtils.kt +152 -0
  28. package/android/src/main/java/com/twg/video/core/player/MediaSourceUtils.kt +85 -0
  29. package/android/src/main/java/com/twg/video/core/player/OnAudioFocusChangedListener.kt +25 -0
  30. package/android/src/main/java/com/twg/video/core/plugins/PluginsRegistry.kt +223 -0
  31. package/android/src/main/java/com/twg/video/core/plugins/ReactNativeVideoPlugin.kt +173 -0
  32. package/android/src/main/java/com/twg/video/core/recivers/AudioBecomingNoisyReceiver.kt +38 -0
  33. package/android/src/main/java/com/twg/video/core/services/playback/CustomMediaNotificationProvider.kt +151 -0
  34. package/android/src/main/java/com/twg/video/core/services/playback/VideoPlaybackCallback.kt +96 -0
  35. package/android/src/main/java/com/twg/video/core/services/playback/VideoPlaybackService.kt +219 -0
  36. package/android/src/main/java/com/twg/video/core/services/playback/VideoPlaybackServiceConnection.kt +59 -0
  37. package/android/src/main/java/com/twg/video/core/utils/PictureInPictureUtils.kt +153 -0
  38. package/android/src/main/java/com/twg/video/core/utils/SmallVideoPlayerOptimizer.kt +157 -0
  39. package/android/src/main/java/com/twg/video/core/utils/SourceLoader.kt +48 -0
  40. package/android/src/main/java/com/twg/video/core/utils/Threading.kt +75 -0
  41. package/android/src/main/java/com/twg/video/core/utils/TrackUtils.kt +305 -0
  42. package/android/src/main/java/com/twg/video/core/utils/VideoFileHelper.kt +51 -0
  43. package/android/src/main/java/com/twg/video/core/utils/VideoInformationUtils.kt +67 -0
  44. package/android/src/main/java/com/twg/video/core/utils/VideoOrientationUtils.kt +30 -0
  45. package/android/src/main/java/com/twg/video/hybrids/videoplayer/HybridVideoPlayer.kt +670 -0
  46. package/android/src/main/java/com/twg/video/hybrids/videoplayer/HybridVideoPlayerFactory.kt +16 -0
  47. package/android/src/main/java/com/twg/video/hybrids/videoplayereventemitter/HybridVideoPlayerEventEmitter.kt +168 -0
  48. package/android/src/main/java/com/twg/video/hybrids/videoplayersource/HybridVideoPlayerSource.kt +67 -0
  49. package/android/src/main/java/com/twg/video/hybrids/videoplayersource/HybridVideoPlayerSourceFactory.kt +62 -0
  50. package/android/src/main/java/com/twg/video/hybrids/videoviewviewmanager/HybridVideoViewViewManager.kt +187 -0
  51. package/android/src/main/java/com/twg/video/hybrids/videoviewviewmanager/HybridVideoViewViewManagerFactory.kt +13 -0
  52. package/android/src/main/java/com/twg/video/react/VideoPackage.kt +26 -0
  53. package/android/src/main/java/com/twg/video/react/VideoViewViewManager.kt +78 -0
  54. package/android/src/main/java/com/twg/video/view/VideoView.kt +565 -0
  55. package/android/src/main/res/layout/player_view_surface.xml +14 -0
  56. package/android/src/main/res/layout/player_view_texture.xml +15 -0
  57. package/android/src/paper/java/com/facebook/react/viewmanagers/RNCVideoViewManagerDelegate.java +32 -0
  58. package/android/src/paper/java/com/facebook/react/viewmanagers/RNCVideoViewManagerInterface.java +16 -0
  59. package/android/src/stubs/dash/androidx/media3/exoplayer/dash/DashMediaSource.kt +35 -0
  60. package/android/src/stubs/dash/androidx/media3/exoplayer/dash/DashUtil.kt +11 -0
  61. package/android/src/stubs/dash/androidx/media3/exoplayer/dash/manifest/AdaptationSet.kt +9 -0
  62. package/android/src/stubs/dash/androidx/media3/exoplayer/dash/manifest/DashManifest.kt +10 -0
  63. package/android/src/stubs/dash/androidx/media3/exoplayer/dash/manifest/Period.kt +7 -0
  64. package/android/src/stubs/dash/androidx/media3/exoplayer/dash/manifest/Representation.kt +8 -0
  65. package/android/src/stubs/hls/androidx/media3/exoplayer/hls/HlsMediaSource.kt +33 -0
  66. package/android/src/stubs/subs/androidx/media3/exoplayer/text/NonFinalTextRenderer.java +583 -0
  67. package/app.plugin.js +1 -0
  68. package/ios/Video-Bridging-Header.h +1 -0
  69. package/ios/core/Extensions/AVAsset+estimatedMemoryUsage.swift +51 -0
  70. package/ios/core/Extensions/AVAssetTrack+orientation.swift +41 -0
  71. package/ios/core/Extensions/AVPlayerItem+externalSubtitles.swift +35 -0
  72. package/ios/core/Extensions/AVPlayerItem+getBufferedDurration.swift +34 -0
  73. package/ios/core/Extensions/AVPlayerItem+setBufferConfig.swift +37 -0
  74. package/ios/core/Extensions/AVPlayerViewController+Fullscreen.swift +21 -0
  75. package/ios/core/Extensions/AVPlayerViewController+PictureInPicture.swift +24 -0
  76. package/ios/core/Extensions/AVURLAsset+getAssetInformation.swift +68 -0
  77. package/ios/core/Extensions/NSObject+PerformIfResponds.swift +30 -0
  78. package/ios/core/Extensions/ResizeMode+VideoGravity.swift +24 -0
  79. package/ios/core/HLSSubtitleInjector.swift +381 -0
  80. package/ios/core/NowPlayingInfoCenterManager.swift +323 -0
  81. package/ios/core/Plugins/PluginsRegistry.swift +102 -0
  82. package/ios/core/Plugins/ReactNativeVideoPlugin.swift +91 -0
  83. package/ios/core/Spec/DRMManagerSpec.swift +14 -0
  84. package/ios/core/Spec/NativeVideoPlayerSourceSpec.swift +36 -0
  85. package/ios/core/Spec/NativeVideoPlayerSpec.swift +42 -0
  86. package/ios/core/Utils/ExternalSubtitlesUtils.swift +119 -0
  87. package/ios/core/Utils/HLSManifestParser.swift +170 -0
  88. package/ios/core/Utils/Weak.swift +26 -0
  89. package/ios/core/VideoError.swift +169 -0
  90. package/ios/core/VideoFileHelper.swift +48 -0
  91. package/ios/core/VideoManager.swift +412 -0
  92. package/ios/core/VideoPlayerObserver.swift +294 -0
  93. package/ios/hybrids/VideoPlayer/HybridVideoPlayer+Events.swift +198 -0
  94. package/ios/hybrids/VideoPlayer/HybridVideoPlayer.swift +555 -0
  95. package/ios/hybrids/VideoPlayer/HybridVideoPlayerFactory.swift +15 -0
  96. package/ios/hybrids/VideoPlayerEmitter/HybridVideoPlayerEventEmitter.swift +203 -0
  97. package/ios/hybrids/VideoPlayerSource/HybridVideoPlayerSource.swift +166 -0
  98. package/ios/hybrids/VideoPlayerSource/HybridVideoPlayerSourceFactory.swift +30 -0
  99. package/ios/hybrids/VideoPlayerSource/SourceLoader.swift +83 -0
  100. package/ios/hybrids/VideoViewViewManager/HybridVideoViewViewManager.swift +266 -0
  101. package/ios/hybrids/VideoViewViewManager/HybridVideoViewViewManagerFactory.swift +14 -0
  102. package/ios/view/VideoComponentView.swift +274 -0
  103. package/ios/view/VideoComponentViewObserver.swift +144 -0
  104. package/ios/view/fabric/RCTVideoViewComponentView.h +10 -0
  105. package/ios/view/fabric/RCTVideoViewComponentView.mm +94 -0
  106. package/ios/view/fabric/RCTVideoViewViewManager.mm +14 -0
  107. package/ios/view/paper/RCTVideoViewComponentView.h +9 -0
  108. package/ios/view/paper/RCTVideoViewComponentView.mm +45 -0
  109. package/ios/view/paper/RCTVideoViewViewManager.m +18 -0
  110. package/lib/commonjs/core/VideoPlayer.js +313 -0
  111. package/lib/commonjs/core/VideoPlayer.js.map +1 -0
  112. package/lib/commonjs/core/VideoPlayerEvents.js +87 -0
  113. package/lib/commonjs/core/VideoPlayerEvents.js.map +1 -0
  114. package/lib/commonjs/core/hooks/useEvent.js +24 -0
  115. package/lib/commonjs/core/hooks/useEvent.js.map +1 -0
  116. package/lib/commonjs/core/hooks/useManagedInstance.js +79 -0
  117. package/lib/commonjs/core/hooks/useManagedInstance.js.map +1 -0
  118. package/lib/commonjs/core/hooks/useVideoPlayer.js +62 -0
  119. package/lib/commonjs/core/hooks/useVideoPlayer.js.map +1 -0
  120. package/lib/commonjs/core/types/BufferConfig.js +2 -0
  121. package/lib/commonjs/core/types/BufferConfig.js.map +1 -0
  122. package/lib/commonjs/core/types/DrmParams.js +2 -0
  123. package/lib/commonjs/core/types/DrmParams.js.map +1 -0
  124. package/lib/commonjs/core/types/Events.js +14 -0
  125. package/lib/commonjs/core/types/Events.js.map +1 -0
  126. package/lib/commonjs/core/types/IgnoreSilentSwitchMode.js +2 -0
  127. package/lib/commonjs/core/types/IgnoreSilentSwitchMode.js.map +1 -0
  128. package/lib/commonjs/core/types/MixAudioMode.js +2 -0
  129. package/lib/commonjs/core/types/MixAudioMode.js.map +1 -0
  130. package/lib/commonjs/core/types/PlayerTrack.js +13 -0
  131. package/lib/commonjs/core/types/PlayerTrack.js.map +1 -0
  132. package/lib/commonjs/core/types/ResizeMode.js +2 -0
  133. package/lib/commonjs/core/types/ResizeMode.js.map +1 -0
  134. package/lib/commonjs/core/types/Utils.js +2 -0
  135. package/lib/commonjs/core/types/Utils.js.map +1 -0
  136. package/lib/commonjs/core/types/VideoConfig.js +6 -0
  137. package/lib/commonjs/core/types/VideoConfig.js.map +1 -0
  138. package/lib/commonjs/core/types/VideoError.js +108 -0
  139. package/lib/commonjs/core/types/VideoError.js.map +1 -0
  140. package/lib/commonjs/core/types/VideoInformation.js +6 -0
  141. package/lib/commonjs/core/types/VideoInformation.js.map +1 -0
  142. package/lib/commonjs/core/types/VideoOrientation.js +2 -0
  143. package/lib/commonjs/core/types/VideoOrientation.js.map +1 -0
  144. package/lib/commonjs/core/types/VideoPlayerBase.js +6 -0
  145. package/lib/commonjs/core/types/VideoPlayerBase.js.map +1 -0
  146. package/lib/commonjs/core/types/VideoPlayerSourceBase.js +6 -0
  147. package/lib/commonjs/core/types/VideoPlayerSourceBase.js.map +1 -0
  148. package/lib/commonjs/core/types/VideoPlayerStatus.js +2 -0
  149. package/lib/commonjs/core/types/VideoPlayerStatus.js.map +1 -0
  150. package/lib/commonjs/core/utils/playerFactory.js +27 -0
  151. package/lib/commonjs/core/utils/playerFactory.js.map +1 -0
  152. package/lib/commonjs/core/utils/sourceFactory.js +146 -0
  153. package/lib/commonjs/core/utils/sourceFactory.js.map +1 -0
  154. package/lib/commonjs/core/video-view/NativeVideoView.js +18 -0
  155. package/lib/commonjs/core/video-view/NativeVideoView.js.map +1 -0
  156. package/lib/commonjs/core/video-view/VideoView.js +208 -0
  157. package/lib/commonjs/core/video-view/VideoView.js.map +1 -0
  158. package/lib/commonjs/expo-plugins/@types.js +2 -0
  159. package/lib/commonjs/expo-plugins/@types.js.map +1 -0
  160. package/lib/commonjs/expo-plugins/getPackageInfo.js +27 -0
  161. package/lib/commonjs/expo-plugins/getPackageInfo.js.map +1 -0
  162. package/lib/commonjs/expo-plugins/withAndroidExtensions.js +40 -0
  163. package/lib/commonjs/expo-plugins/withAndroidExtensions.js.map +1 -0
  164. package/lib/commonjs/expo-plugins/withAndroidNotificationControls.js +34 -0
  165. package/lib/commonjs/expo-plugins/withAndroidNotificationControls.js.map +1 -0
  166. package/lib/commonjs/expo-plugins/withAndroidPictureInPicture.js +23 -0
  167. package/lib/commonjs/expo-plugins/withAndroidPictureInPicture.js.map +1 -0
  168. package/lib/commonjs/expo-plugins/withBackgroundAudio.js +26 -0
  169. package/lib/commonjs/expo-plugins/withBackgroundAudio.js.map +1 -0
  170. package/lib/commonjs/expo-plugins/withReactNativeVideo.js +31 -0
  171. package/lib/commonjs/expo-plugins/withReactNativeVideo.js.map +1 -0
  172. package/lib/commonjs/expo-plugins/writeToPodfile.js +59 -0
  173. package/lib/commonjs/expo-plugins/writeToPodfile.js.map +1 -0
  174. package/lib/commonjs/index.js +61 -0
  175. package/lib/commonjs/index.js.map +1 -0
  176. package/lib/commonjs/package.json +1 -0
  177. package/lib/commonjs/spec/fabric/VideoViewNativeComponent.ts +17 -0
  178. package/lib/commonjs/spec/nitro/VideoPlayer.nitro.js +6 -0
  179. package/lib/commonjs/spec/nitro/VideoPlayer.nitro.js.map +1 -0
  180. package/lib/commonjs/spec/nitro/VideoPlayerEventEmitter.nitro.js +6 -0
  181. package/lib/commonjs/spec/nitro/VideoPlayerEventEmitter.nitro.js.map +1 -0
  182. package/lib/commonjs/spec/nitro/VideoPlayerSource.nitro.js +6 -0
  183. package/lib/commonjs/spec/nitro/VideoPlayerSource.nitro.js.map +1 -0
  184. package/lib/commonjs/spec/nitro/VideoViewViewManager.nitro.js +6 -0
  185. package/lib/commonjs/spec/nitro/VideoViewViewManager.nitro.js.map +1 -0
  186. package/lib/module/core/VideoPlayer.js +309 -0
  187. package/lib/module/core/VideoPlayer.js.map +1 -0
  188. package/lib/module/core/VideoPlayerEvents.js +82 -0
  189. package/lib/module/core/VideoPlayerEvents.js.map +1 -0
  190. package/lib/module/core/hooks/useEvent.js +19 -0
  191. package/lib/module/core/hooks/useEvent.js.map +1 -0
  192. package/lib/module/core/hooks/useManagedInstance.js +75 -0
  193. package/lib/module/core/hooks/useManagedInstance.js.map +1 -0
  194. package/lib/module/core/hooks/useVideoPlayer.js +57 -0
  195. package/lib/module/core/hooks/useVideoPlayer.js.map +1 -0
  196. package/lib/module/core/types/BufferConfig.js +2 -0
  197. package/lib/module/core/types/BufferConfig.js.map +1 -0
  198. package/lib/module/core/types/DrmParams.js +2 -0
  199. package/lib/module/core/types/DrmParams.js.map +1 -0
  200. package/lib/module/core/types/Events.js +10 -0
  201. package/lib/module/core/types/Events.js.map +1 -0
  202. package/lib/module/core/types/IgnoreSilentSwitchMode.js +2 -0
  203. package/lib/module/core/types/IgnoreSilentSwitchMode.js.map +1 -0
  204. package/lib/module/core/types/MixAudioMode.js +2 -0
  205. package/lib/module/core/types/MixAudioMode.js.map +1 -0
  206. package/lib/module/core/types/PlayerTrack.js +9 -0
  207. package/lib/module/core/types/PlayerTrack.js.map +1 -0
  208. package/lib/module/core/types/ResizeMode.js +2 -0
  209. package/lib/module/core/types/ResizeMode.js.map +1 -0
  210. package/lib/module/core/types/Utils.js +2 -0
  211. package/lib/module/core/types/Utils.js.map +1 -0
  212. package/lib/module/core/types/VideoConfig.js +4 -0
  213. package/lib/module/core/types/VideoConfig.js.map +1 -0
  214. package/lib/module/core/types/VideoError.js +100 -0
  215. package/lib/module/core/types/VideoError.js.map +1 -0
  216. package/lib/module/core/types/VideoInformation.js +4 -0
  217. package/lib/module/core/types/VideoInformation.js.map +1 -0
  218. package/lib/module/core/types/VideoOrientation.js +2 -0
  219. package/lib/module/core/types/VideoOrientation.js.map +1 -0
  220. package/lib/module/core/types/VideoPlayerBase.js +4 -0
  221. package/lib/module/core/types/VideoPlayerBase.js.map +1 -0
  222. package/lib/module/core/types/VideoPlayerSourceBase.js +4 -0
  223. package/lib/module/core/types/VideoPlayerSourceBase.js.map +1 -0
  224. package/lib/module/core/types/VideoPlayerStatus.js +2 -0
  225. package/lib/module/core/types/VideoPlayerStatus.js.map +1 -0
  226. package/lib/module/core/utils/playerFactory.js +22 -0
  227. package/lib/module/core/utils/playerFactory.js.map +1 -0
  228. package/lib/module/core/utils/sourceFactory.js +138 -0
  229. package/lib/module/core/utils/sourceFactory.js.map +1 -0
  230. package/lib/module/core/video-view/NativeVideoView.js +13 -0
  231. package/lib/module/core/video-view/NativeVideoView.js.map +1 -0
  232. package/lib/module/core/video-view/VideoView.js +203 -0
  233. package/lib/module/core/video-view/VideoView.js.map +1 -0
  234. package/lib/module/expo-plugins/@types.js +2 -0
  235. package/lib/module/expo-plugins/@types.js.map +1 -0
  236. package/lib/module/expo-plugins/getPackageInfo.js +23 -0
  237. package/lib/module/expo-plugins/getPackageInfo.js.map +1 -0
  238. package/lib/module/expo-plugins/withAndroidExtensions.js +35 -0
  239. package/lib/module/expo-plugins/withAndroidExtensions.js.map +1 -0
  240. package/lib/module/expo-plugins/withAndroidNotificationControls.js +29 -0
  241. package/lib/module/expo-plugins/withAndroidNotificationControls.js.map +1 -0
  242. package/lib/module/expo-plugins/withAndroidPictureInPicture.js +18 -0
  243. package/lib/module/expo-plugins/withAndroidPictureInPicture.js.map +1 -0
  244. package/lib/module/expo-plugins/withBackgroundAudio.js +22 -0
  245. package/lib/module/expo-plugins/withBackgroundAudio.js.map +1 -0
  246. package/lib/module/expo-plugins/withReactNativeVideo.js +27 -0
  247. package/lib/module/expo-plugins/withReactNativeVideo.js.map +1 -0
  248. package/lib/module/expo-plugins/writeToPodfile.js +53 -0
  249. package/lib/module/expo-plugins/writeToPodfile.js.map +1 -0
  250. package/lib/module/index.js +9 -0
  251. package/lib/module/index.js.map +1 -0
  252. package/lib/module/package.json +1 -0
  253. package/lib/module/spec/fabric/VideoViewNativeComponent.ts +17 -0
  254. package/lib/module/spec/nitro/VideoPlayer.nitro.js +4 -0
  255. package/lib/module/spec/nitro/VideoPlayer.nitro.js.map +1 -0
  256. package/lib/module/spec/nitro/VideoPlayerEventEmitter.nitro.js +4 -0
  257. package/lib/module/spec/nitro/VideoPlayerEventEmitter.nitro.js.map +1 -0
  258. package/lib/module/spec/nitro/VideoPlayerSource.nitro.js +4 -0
  259. package/lib/module/spec/nitro/VideoPlayerSource.nitro.js.map +1 -0
  260. package/lib/module/spec/nitro/VideoViewViewManager.nitro.js +4 -0
  261. package/lib/module/spec/nitro/VideoViewViewManager.nitro.js.map +1 -0
  262. package/lib/typescript/commonjs/package.json +1 -0
  263. package/lib/typescript/commonjs/src/core/VideoPlayer.d.ts +66 -0
  264. package/lib/typescript/commonjs/src/core/VideoPlayer.d.ts.map +1 -0
  265. package/lib/typescript/commonjs/src/core/VideoPlayerEvents.d.ts +22 -0
  266. package/lib/typescript/commonjs/src/core/VideoPlayerEvents.d.ts.map +1 -0
  267. package/lib/typescript/commonjs/src/core/hooks/useEvent.d.ts +11 -0
  268. package/lib/typescript/commonjs/src/core/hooks/useEvent.d.ts.map +1 -0
  269. package/lib/typescript/commonjs/src/core/hooks/useManagedInstance.d.ts +2 -0
  270. package/lib/typescript/commonjs/src/core/hooks/useManagedInstance.d.ts.map +1 -0
  271. package/lib/typescript/commonjs/src/core/hooks/useVideoPlayer.d.ts +16 -0
  272. package/lib/typescript/commonjs/src/core/hooks/useVideoPlayer.d.ts.map +1 -0
  273. package/lib/typescript/commonjs/src/core/types/BufferConfig.d.ts +97 -0
  274. package/lib/typescript/commonjs/src/core/types/BufferConfig.d.ts.map +1 -0
  275. package/lib/typescript/commonjs/src/core/types/DrmParams.d.ts +64 -0
  276. package/lib/typescript/commonjs/src/core/types/DrmParams.d.ts.map +1 -0
  277. package/lib/typescript/commonjs/src/core/types/Events.d.ts +222 -0
  278. package/lib/typescript/commonjs/src/core/types/Events.d.ts.map +1 -0
  279. package/lib/typescript/commonjs/src/core/types/IgnoreSilentSwitchMode.d.ts +2 -0
  280. package/lib/typescript/commonjs/src/core/types/IgnoreSilentSwitchMode.d.ts.map +1 -0
  281. package/lib/typescript/commonjs/src/core/types/MixAudioMode.d.ts +2 -0
  282. package/lib/typescript/commonjs/src/core/types/MixAudioMode.d.ts.map +1 -0
  283. package/lib/typescript/commonjs/src/core/types/PlayerTrack.d.ts +34 -0
  284. package/lib/typescript/commonjs/src/core/types/PlayerTrack.d.ts.map +1 -0
  285. package/lib/typescript/commonjs/src/core/types/ResizeMode.d.ts +10 -0
  286. package/lib/typescript/commonjs/src/core/types/ResizeMode.d.ts.map +1 -0
  287. package/lib/typescript/commonjs/src/core/types/Utils.d.ts +2 -0
  288. package/lib/typescript/commonjs/src/core/types/Utils.d.ts.map +1 -0
  289. package/lib/typescript/commonjs/src/core/types/VideoConfig.d.ts +138 -0
  290. package/lib/typescript/commonjs/src/core/types/VideoConfig.d.ts.map +1 -0
  291. package/lib/typescript/commonjs/src/core/types/VideoError.d.ts +27 -0
  292. package/lib/typescript/commonjs/src/core/types/VideoError.d.ts.map +1 -0
  293. package/lib/typescript/commonjs/src/core/types/VideoInformation.d.ts +37 -0
  294. package/lib/typescript/commonjs/src/core/types/VideoInformation.d.ts.map +1 -0
  295. package/lib/typescript/commonjs/src/core/types/VideoOrientation.d.ts +2 -0
  296. package/lib/typescript/commonjs/src/core/types/VideoOrientation.d.ts.map +1 -0
  297. package/lib/typescript/commonjs/src/core/types/VideoPlayerBase.d.ts +194 -0
  298. package/lib/typescript/commonjs/src/core/types/VideoPlayerBase.d.ts.map +1 -0
  299. package/lib/typescript/commonjs/src/core/types/VideoPlayerSourceBase.d.ts +17 -0
  300. package/lib/typescript/commonjs/src/core/types/VideoPlayerSourceBase.d.ts.map +1 -0
  301. package/lib/typescript/commonjs/src/core/types/VideoPlayerStatus.d.ts +9 -0
  302. package/lib/typescript/commonjs/src/core/types/VideoPlayerStatus.d.ts.map +1 -0
  303. package/lib/typescript/commonjs/src/core/utils/playerFactory.d.ts +2 -0
  304. package/lib/typescript/commonjs/src/core/utils/playerFactory.d.ts.map +1 -0
  305. package/lib/typescript/commonjs/src/core/utils/sourceFactory.d.ts +29 -0
  306. package/lib/typescript/commonjs/src/core/utils/sourceFactory.d.ts.map +1 -0
  307. package/lib/typescript/commonjs/src/core/video-view/NativeVideoView.d.ts +2 -0
  308. package/lib/typescript/commonjs/src/core/video-view/NativeVideoView.d.ts.map +1 -0
  309. package/lib/typescript/commonjs/src/core/video-view/VideoView.d.ts +85 -0
  310. package/lib/typescript/commonjs/src/core/video-view/VideoView.d.ts.map +1 -0
  311. package/lib/typescript/commonjs/src/expo-plugins/@types.d.ts +34 -0
  312. package/lib/typescript/commonjs/src/expo-plugins/@types.d.ts.map +1 -0
  313. package/lib/typescript/commonjs/src/expo-plugins/getPackageInfo.d.ts +5 -0
  314. package/lib/typescript/commonjs/src/expo-plugins/getPackageInfo.d.ts.map +1 -0
  315. package/lib/typescript/commonjs/src/expo-plugins/withAndroidExtensions.d.ts +8 -0
  316. package/lib/typescript/commonjs/src/expo-plugins/withAndroidExtensions.d.ts.map +1 -0
  317. package/lib/typescript/commonjs/src/expo-plugins/withAndroidNotificationControls.d.ts +3 -0
  318. package/lib/typescript/commonjs/src/expo-plugins/withAndroidNotificationControls.d.ts.map +1 -0
  319. package/lib/typescript/commonjs/src/expo-plugins/withAndroidPictureInPicture.d.ts +3 -0
  320. package/lib/typescript/commonjs/src/expo-plugins/withAndroidPictureInPicture.d.ts.map +1 -0
  321. package/lib/typescript/commonjs/src/expo-plugins/withBackgroundAudio.d.ts +7 -0
  322. package/lib/typescript/commonjs/src/expo-plugins/withBackgroundAudio.d.ts.map +1 -0
  323. package/lib/typescript/commonjs/src/expo-plugins/withReactNativeVideo.d.ts +5 -0
  324. package/lib/typescript/commonjs/src/expo-plugins/withReactNativeVideo.d.ts.map +1 -0
  325. package/lib/typescript/commonjs/src/expo-plugins/writeToPodfile.d.ts +2 -0
  326. package/lib/typescript/commonjs/src/expo-plugins/writeToPodfile.d.ts.map +1 -0
  327. package/lib/typescript/commonjs/src/index.d.ts +15 -0
  328. package/lib/typescript/commonjs/src/index.d.ts.map +1 -0
  329. package/lib/typescript/commonjs/src/spec/fabric/VideoViewNativeComponent.d.ts +12 -0
  330. package/lib/typescript/commonjs/src/spec/fabric/VideoViewNativeComponent.d.ts.map +1 -0
  331. package/lib/typescript/commonjs/src/spec/nitro/VideoPlayer.nitro.d.ts +34 -0
  332. package/lib/typescript/commonjs/src/spec/nitro/VideoPlayer.nitro.d.ts.map +1 -0
  333. package/lib/typescript/commonjs/src/spec/nitro/VideoPlayerEventEmitter.nitro.d.ts +142 -0
  334. package/lib/typescript/commonjs/src/spec/nitro/VideoPlayerEventEmitter.nitro.d.ts.map +1 -0
  335. package/lib/typescript/commonjs/src/spec/nitro/VideoPlayerSource.nitro.d.ts +21 -0
  336. package/lib/typescript/commonjs/src/spec/nitro/VideoPlayerSource.nitro.d.ts.map +1 -0
  337. package/lib/typescript/commonjs/src/spec/nitro/VideoViewViewManager.nitro.d.ts +2 -0
  338. package/lib/typescript/commonjs/src/spec/nitro/VideoViewViewManager.nitro.d.ts.map +1 -0
  339. package/lib/typescript/module/package.json +1 -0
  340. package/lib/typescript/module/src/core/VideoPlayer.d.ts +66 -0
  341. package/lib/typescript/module/src/core/VideoPlayer.d.ts.map +1 -0
  342. package/lib/typescript/module/src/core/VideoPlayerEvents.d.ts +22 -0
  343. package/lib/typescript/module/src/core/VideoPlayerEvents.d.ts.map +1 -0
  344. package/lib/typescript/module/src/core/hooks/useEvent.d.ts +11 -0
  345. package/lib/typescript/module/src/core/hooks/useEvent.d.ts.map +1 -0
  346. package/lib/typescript/module/src/core/hooks/useManagedInstance.d.ts +2 -0
  347. package/lib/typescript/module/src/core/hooks/useManagedInstance.d.ts.map +1 -0
  348. package/lib/typescript/module/src/core/hooks/useVideoPlayer.d.ts +16 -0
  349. package/lib/typescript/module/src/core/hooks/useVideoPlayer.d.ts.map +1 -0
  350. package/lib/typescript/module/src/core/types/BufferConfig.d.ts +97 -0
  351. package/lib/typescript/module/src/core/types/BufferConfig.d.ts.map +1 -0
  352. package/lib/typescript/module/src/core/types/DrmParams.d.ts +64 -0
  353. package/lib/typescript/module/src/core/types/DrmParams.d.ts.map +1 -0
  354. package/lib/typescript/module/src/core/types/Events.d.ts +222 -0
  355. package/lib/typescript/module/src/core/types/Events.d.ts.map +1 -0
  356. package/lib/typescript/module/src/core/types/IgnoreSilentSwitchMode.d.ts +2 -0
  357. package/lib/typescript/module/src/core/types/IgnoreSilentSwitchMode.d.ts.map +1 -0
  358. package/lib/typescript/module/src/core/types/MixAudioMode.d.ts +2 -0
  359. package/lib/typescript/module/src/core/types/MixAudioMode.d.ts.map +1 -0
  360. package/lib/typescript/module/src/core/types/PlayerTrack.d.ts +34 -0
  361. package/lib/typescript/module/src/core/types/PlayerTrack.d.ts.map +1 -0
  362. package/lib/typescript/module/src/core/types/ResizeMode.d.ts +10 -0
  363. package/lib/typescript/module/src/core/types/ResizeMode.d.ts.map +1 -0
  364. package/lib/typescript/module/src/core/types/Utils.d.ts +2 -0
  365. package/lib/typescript/module/src/core/types/Utils.d.ts.map +1 -0
  366. package/lib/typescript/module/src/core/types/VideoConfig.d.ts +138 -0
  367. package/lib/typescript/module/src/core/types/VideoConfig.d.ts.map +1 -0
  368. package/lib/typescript/module/src/core/types/VideoError.d.ts +27 -0
  369. package/lib/typescript/module/src/core/types/VideoError.d.ts.map +1 -0
  370. package/lib/typescript/module/src/core/types/VideoInformation.d.ts +37 -0
  371. package/lib/typescript/module/src/core/types/VideoInformation.d.ts.map +1 -0
  372. package/lib/typescript/module/src/core/types/VideoOrientation.d.ts +2 -0
  373. package/lib/typescript/module/src/core/types/VideoOrientation.d.ts.map +1 -0
  374. package/lib/typescript/module/src/core/types/VideoPlayerBase.d.ts +194 -0
  375. package/lib/typescript/module/src/core/types/VideoPlayerBase.d.ts.map +1 -0
  376. package/lib/typescript/module/src/core/types/VideoPlayerSourceBase.d.ts +17 -0
  377. package/lib/typescript/module/src/core/types/VideoPlayerSourceBase.d.ts.map +1 -0
  378. package/lib/typescript/module/src/core/types/VideoPlayerStatus.d.ts +9 -0
  379. package/lib/typescript/module/src/core/types/VideoPlayerStatus.d.ts.map +1 -0
  380. package/lib/typescript/module/src/core/utils/playerFactory.d.ts +2 -0
  381. package/lib/typescript/module/src/core/utils/playerFactory.d.ts.map +1 -0
  382. package/lib/typescript/module/src/core/utils/sourceFactory.d.ts +29 -0
  383. package/lib/typescript/module/src/core/utils/sourceFactory.d.ts.map +1 -0
  384. package/lib/typescript/module/src/core/video-view/NativeVideoView.d.ts +2 -0
  385. package/lib/typescript/module/src/core/video-view/NativeVideoView.d.ts.map +1 -0
  386. package/lib/typescript/module/src/core/video-view/VideoView.d.ts +85 -0
  387. package/lib/typescript/module/src/core/video-view/VideoView.d.ts.map +1 -0
  388. package/lib/typescript/module/src/expo-plugins/@types.d.ts +34 -0
  389. package/lib/typescript/module/src/expo-plugins/@types.d.ts.map +1 -0
  390. package/lib/typescript/module/src/expo-plugins/getPackageInfo.d.ts +5 -0
  391. package/lib/typescript/module/src/expo-plugins/getPackageInfo.d.ts.map +1 -0
  392. package/lib/typescript/module/src/expo-plugins/withAndroidExtensions.d.ts +8 -0
  393. package/lib/typescript/module/src/expo-plugins/withAndroidExtensions.d.ts.map +1 -0
  394. package/lib/typescript/module/src/expo-plugins/withAndroidNotificationControls.d.ts +3 -0
  395. package/lib/typescript/module/src/expo-plugins/withAndroidNotificationControls.d.ts.map +1 -0
  396. package/lib/typescript/module/src/expo-plugins/withAndroidPictureInPicture.d.ts +3 -0
  397. package/lib/typescript/module/src/expo-plugins/withAndroidPictureInPicture.d.ts.map +1 -0
  398. package/lib/typescript/module/src/expo-plugins/withBackgroundAudio.d.ts +7 -0
  399. package/lib/typescript/module/src/expo-plugins/withBackgroundAudio.d.ts.map +1 -0
  400. package/lib/typescript/module/src/expo-plugins/withReactNativeVideo.d.ts +5 -0
  401. package/lib/typescript/module/src/expo-plugins/withReactNativeVideo.d.ts.map +1 -0
  402. package/lib/typescript/module/src/expo-plugins/writeToPodfile.d.ts +2 -0
  403. package/lib/typescript/module/src/expo-plugins/writeToPodfile.d.ts.map +1 -0
  404. package/lib/typescript/module/src/index.d.ts +15 -0
  405. package/lib/typescript/module/src/index.d.ts.map +1 -0
  406. package/lib/typescript/module/src/spec/fabric/VideoViewNativeComponent.d.ts +12 -0
  407. package/lib/typescript/module/src/spec/fabric/VideoViewNativeComponent.d.ts.map +1 -0
  408. package/lib/typescript/module/src/spec/nitro/VideoPlayer.nitro.d.ts +34 -0
  409. package/lib/typescript/module/src/spec/nitro/VideoPlayer.nitro.d.ts.map +1 -0
  410. package/lib/typescript/module/src/spec/nitro/VideoPlayerEventEmitter.nitro.d.ts +142 -0
  411. package/lib/typescript/module/src/spec/nitro/VideoPlayerEventEmitter.nitro.d.ts.map +1 -0
  412. package/lib/typescript/module/src/spec/nitro/VideoPlayerSource.nitro.d.ts +21 -0
  413. package/lib/typescript/module/src/spec/nitro/VideoPlayerSource.nitro.d.ts.map +1 -0
  414. package/lib/typescript/module/src/spec/nitro/VideoViewViewManager.nitro.d.ts +2 -0
  415. package/lib/typescript/module/src/spec/nitro/VideoViewViewManager.nitro.d.ts.map +1 -0
  416. package/nitro.json +28 -0
  417. package/nitrogen/generated/android/ReactNativeVideo+autolinking.cmake +94 -0
  418. package/nitrogen/generated/android/ReactNativeVideo+autolinking.gradle +27 -0
  419. package/nitrogen/generated/android/ReactNativeVideoOnLoad.cpp +98 -0
  420. package/nitrogen/generated/android/ReactNativeVideoOnLoad.hpp +25 -0
  421. package/nitrogen/generated/android/c++/JAllPlayerTracks.hpp +125 -0
  422. package/nitrogen/generated/android/c++/JBandwidthData.hpp +65 -0
  423. package/nitrogen/generated/android/c++/JBufferConfig.hpp +101 -0
  424. package/nitrogen/generated/android/c++/JCustomVideoMetadata.hpp +74 -0
  425. package/nitrogen/generated/android/c++/JExternalAudio.hpp +80 -0
  426. package/nitrogen/generated/android/c++/JExternalForcedType.hpp +59 -0
  427. package/nitrogen/generated/android/c++/JFunc_std__shared_ptr_Promise_std__shared_ptr_Promise_std__string_____OnGetLicensePayload.hpp +126 -0
  428. package/nitrogen/generated/android/c++/JFunc_void.hpp +75 -0
  429. package/nitrogen/generated/android/c++/JFunc_void_BandwidthData.hpp +78 -0
  430. package/nitrogen/generated/android/c++/JFunc_void_TimedMetadata.hpp +81 -0
  431. package/nitrogen/generated/android/c++/JFunc_void_VideoPlayerStatus.hpp +77 -0
  432. package/nitrogen/generated/android/c++/JFunc_void_bool.hpp +75 -0
  433. package/nitrogen/generated/android/c++/JFunc_void_double.hpp +75 -0
  434. package/nitrogen/generated/android/c++/JFunc_void_onLoadData.hpp +88 -0
  435. package/nitrogen/generated/android/c++/JFunc_void_onLoadStartData.hpp +82 -0
  436. package/nitrogen/generated/android/c++/JFunc_void_onPlaybackStateChangeData.hpp +77 -0
  437. package/nitrogen/generated/android/c++/JFunc_void_onProgressData.hpp +77 -0
  438. package/nitrogen/generated/android/c++/JFunc_void_onVolumeChangeData.hpp +77 -0
  439. package/nitrogen/generated/android/c++/JFunc_void_std__vector_std__string_.hpp +95 -0
  440. package/nitrogen/generated/android/c++/JHybridVideoPlayerEventEmitterSpec.cpp +221 -0
  441. package/nitrogen/generated/android/c++/JHybridVideoPlayerEventEmitterSpec.hpp +83 -0
  442. package/nitrogen/generated/android/c++/JHybridVideoPlayerFactorySpec.cpp +60 -0
  443. package/nitrogen/generated/android/c++/JHybridVideoPlayerFactorySpec.hpp +65 -0
  444. package/nitrogen/generated/android/c++/JHybridVideoPlayerSourceFactorySpec.cpp +113 -0
  445. package/nitrogen/generated/android/c++/JHybridVideoPlayerSourceFactorySpec.hpp +66 -0
  446. package/nitrogen/generated/android/c++/JHybridVideoPlayerSourceSpec.cpp +131 -0
  447. package/nitrogen/generated/android/c++/JHybridVideoPlayerSourceSpec.hpp +66 -0
  448. package/nitrogen/generated/android/c++/JHybridVideoPlayerSpec.cpp +324 -0
  449. package/nitrogen/generated/android/c++/JHybridVideoPlayerSpec.hpp +106 -0
  450. package/nitrogen/generated/android/c++/JHybridVideoViewViewManagerFactorySpec.cpp +55 -0
  451. package/nitrogen/generated/android/c++/JHybridVideoViewViewManagerFactorySpec.hpp +65 -0
  452. package/nitrogen/generated/android/c++/JHybridVideoViewViewManagerSpec.cpp +184 -0
  453. package/nitrogen/generated/android/c++/JHybridVideoViewViewManagerSpec.hpp +89 -0
  454. package/nitrogen/generated/android/c++/JIgnoreSilentSwitchMode.hpp +62 -0
  455. package/nitrogen/generated/android/c++/JListenerSubscription.hpp +67 -0
  456. package/nitrogen/generated/android/c++/JLivePlaybackParams.hpp +73 -0
  457. package/nitrogen/generated/android/c++/JMixAudioMode.hpp +65 -0
  458. package/nitrogen/generated/android/c++/JNativeDrmParams.hpp +111 -0
  459. package/nitrogen/generated/android/c++/JNativeExternalSubtitle.hpp +71 -0
  460. package/nitrogen/generated/android/c++/JNativeVideoConfig.hpp +178 -0
  461. package/nitrogen/generated/android/c++/JOnGetLicensePayload.hpp +69 -0
  462. package/nitrogen/generated/android/c++/JPlayerTrack.hpp +70 -0
  463. package/nitrogen/generated/android/c++/JResizeMode.hpp +65 -0
  464. package/nitrogen/generated/android/c++/JResolution.hpp +61 -0
  465. package/nitrogen/generated/android/c++/JSourceType.hpp +59 -0
  466. package/nitrogen/generated/android/c++/JSubtitleType.hpp +68 -0
  467. package/nitrogen/generated/android/c++/JSurfaceType.hpp +59 -0
  468. package/nitrogen/generated/android/c++/JTimedMetadata.hpp +78 -0
  469. package/nitrogen/generated/android/c++/JTimedMetadataObject.hpp +61 -0
  470. package/nitrogen/generated/android/c++/JTrackType.hpp +62 -0
  471. package/nitrogen/generated/android/c++/JVariant_NullType_HybridVideoPlayerSourceSpec.cpp +26 -0
  472. package/nitrogen/generated/android/c++/JVariant_NullType_HybridVideoPlayerSourceSpec.hpp +72 -0
  473. package/nitrogen/generated/android/c++/JVideoInformation.hpp +86 -0
  474. package/nitrogen/generated/android/c++/JVideoOrientation.hpp +74 -0
  475. package/nitrogen/generated/android/c++/JVideoPlayerStatus.hpp +65 -0
  476. package/nitrogen/generated/android/c++/JVideoPlayerTrack.hpp +78 -0
  477. package/nitrogen/generated/android/c++/JonLoadData.hpp +87 -0
  478. package/nitrogen/generated/android/c++/JonLoadStartData.hpp +65 -0
  479. package/nitrogen/generated/android/c++/JonPlaybackStateChangeData.hpp +61 -0
  480. package/nitrogen/generated/android/c++/JonProgressData.hpp +65 -0
  481. package/nitrogen/generated/android/c++/JonVolumeChangeData.hpp +61 -0
  482. package/nitrogen/generated/android/kotlin/com/margelo/nitro/video/AllPlayerTracks.kt +44 -0
  483. package/nitrogen/generated/android/kotlin/com/margelo/nitro/video/BandwidthData.kt +44 -0
  484. package/nitrogen/generated/android/kotlin/com/margelo/nitro/video/BufferConfig.kt +68 -0
  485. package/nitrogen/generated/android/kotlin/com/margelo/nitro/video/CustomVideoMetadata.kt +50 -0
  486. package/nitrogen/generated/android/kotlin/com/margelo/nitro/video/ExternalAudio.kt +44 -0
  487. package/nitrogen/generated/android/kotlin/com/margelo/nitro/video/ExternalForcedType.kt +21 -0
  488. package/nitrogen/generated/android/kotlin/com/margelo/nitro/video/Func_std__shared_ptr_Promise_std__shared_ptr_Promise_std__string_____OnGetLicensePayload.kt +80 -0
  489. package/nitrogen/generated/android/kotlin/com/margelo/nitro/video/Func_void.kt +80 -0
  490. package/nitrogen/generated/android/kotlin/com/margelo/nitro/video/Func_void_BandwidthData.kt +80 -0
  491. package/nitrogen/generated/android/kotlin/com/margelo/nitro/video/Func_void_TimedMetadata.kt +80 -0
  492. package/nitrogen/generated/android/kotlin/com/margelo/nitro/video/Func_void_VideoPlayerStatus.kt +80 -0
  493. package/nitrogen/generated/android/kotlin/com/margelo/nitro/video/Func_void_bool.kt +80 -0
  494. package/nitrogen/generated/android/kotlin/com/margelo/nitro/video/Func_void_double.kt +80 -0
  495. package/nitrogen/generated/android/kotlin/com/margelo/nitro/video/Func_void_onLoadData.kt +80 -0
  496. package/nitrogen/generated/android/kotlin/com/margelo/nitro/video/Func_void_onLoadStartData.kt +80 -0
  497. package/nitrogen/generated/android/kotlin/com/margelo/nitro/video/Func_void_onPlaybackStateChangeData.kt +80 -0
  498. package/nitrogen/generated/android/kotlin/com/margelo/nitro/video/Func_void_onProgressData.kt +80 -0
  499. package/nitrogen/generated/android/kotlin/com/margelo/nitro/video/Func_void_onVolumeChangeData.kt +80 -0
  500. package/nitrogen/generated/android/kotlin/com/margelo/nitro/video/Func_void_std__vector_std__string_.kt +80 -0
  501. package/nitrogen/generated/android/kotlin/com/margelo/nitro/video/HybridVideoPlayerEventEmitterSpec.kt +219 -0
  502. package/nitrogen/generated/android/kotlin/com/margelo/nitro/video/HybridVideoPlayerFactorySpec.kt +57 -0
  503. package/nitrogen/generated/android/kotlin/com/margelo/nitro/video/HybridVideoPlayerSourceFactorySpec.kt +61 -0
  504. package/nitrogen/generated/android/kotlin/com/margelo/nitro/video/HybridVideoPlayerSourceSpec.kt +64 -0
  505. package/nitrogen/generated/android/kotlin/com/margelo/nitro/video/HybridVideoPlayerSpec.kt +201 -0
  506. package/nitrogen/generated/android/kotlin/com/margelo/nitro/video/HybridVideoViewViewManagerFactorySpec.kt +57 -0
  507. package/nitrogen/generated/android/kotlin/com/margelo/nitro/video/HybridVideoViewViewManagerSpec.kt +171 -0
  508. package/nitrogen/generated/android/kotlin/com/margelo/nitro/video/IgnoreSilentSwitchMode.kt +22 -0
  509. package/nitrogen/generated/android/kotlin/com/margelo/nitro/video/ListenerSubscription.kt +42 -0
  510. package/nitrogen/generated/android/kotlin/com/margelo/nitro/video/LivePlaybackParams.kt +50 -0
  511. package/nitrogen/generated/android/kotlin/com/margelo/nitro/video/MixAudioMode.kt +23 -0
  512. package/nitrogen/generated/android/kotlin/com/margelo/nitro/video/NativeDrmParams.kt +60 -0
  513. package/nitrogen/generated/android/kotlin/com/margelo/nitro/video/NativeExternalSubtitle.kt +47 -0
  514. package/nitrogen/generated/android/kotlin/com/margelo/nitro/video/NativeVideoConfig.kt +71 -0
  515. package/nitrogen/generated/android/kotlin/com/margelo/nitro/video/OnGetLicensePayload.kt +47 -0
  516. package/nitrogen/generated/android/kotlin/com/margelo/nitro/video/PlayerTrack.kt +47 -0
  517. package/nitrogen/generated/android/kotlin/com/margelo/nitro/video/ReactNativeVideoOnLoad.kt +35 -0
  518. package/nitrogen/generated/android/kotlin/com/margelo/nitro/video/ResizeMode.kt +23 -0
  519. package/nitrogen/generated/android/kotlin/com/margelo/nitro/video/Resolution.kt +41 -0
  520. package/nitrogen/generated/android/kotlin/com/margelo/nitro/video/SourceType.kt +21 -0
  521. package/nitrogen/generated/android/kotlin/com/margelo/nitro/video/SubtitleType.kt +24 -0
  522. package/nitrogen/generated/android/kotlin/com/margelo/nitro/video/SurfaceType.kt +21 -0
  523. package/nitrogen/generated/android/kotlin/com/margelo/nitro/video/TimedMetadata.kt +38 -0
  524. package/nitrogen/generated/android/kotlin/com/margelo/nitro/video/TimedMetadataObject.kt +41 -0
  525. package/nitrogen/generated/android/kotlin/com/margelo/nitro/video/TrackType.kt +22 -0
  526. package/nitrogen/generated/android/kotlin/com/margelo/nitro/video/Variant_NullType_HybridVideoPlayerSourceSpec.kt +59 -0
  527. package/nitrogen/generated/android/kotlin/com/margelo/nitro/video/VideoInformation.kt +59 -0
  528. package/nitrogen/generated/android/kotlin/com/margelo/nitro/video/VideoOrientation.kt +26 -0
  529. package/nitrogen/generated/android/kotlin/com/margelo/nitro/video/VideoPlayerStatus.kt +23 -0
  530. package/nitrogen/generated/android/kotlin/com/margelo/nitro/video/VideoPlayerTrack.kt +53 -0
  531. package/nitrogen/generated/android/kotlin/com/margelo/nitro/video/onLoadData.kt +53 -0
  532. package/nitrogen/generated/android/kotlin/com/margelo/nitro/video/onLoadStartData.kt +41 -0
  533. package/nitrogen/generated/android/kotlin/com/margelo/nitro/video/onPlaybackStateChangeData.kt +41 -0
  534. package/nitrogen/generated/android/kotlin/com/margelo/nitro/video/onProgressData.kt +44 -0
  535. package/nitrogen/generated/android/kotlin/com/margelo/nitro/video/onVolumeChangeData.kt +41 -0
  536. package/nitrogen/generated/ios/ReactNativeVideo+autolinking.rb +60 -0
  537. package/nitrogen/generated/ios/ReactNativeVideo-Swift-Cxx-Bridge.cpp +272 -0
  538. package/nitrogen/generated/ios/ReactNativeVideo-Swift-Cxx-Bridge.hpp +1134 -0
  539. package/nitrogen/generated/ios/ReactNativeVideo-Swift-Cxx-Umbrella.hpp +177 -0
  540. package/nitrogen/generated/ios/ReactNativeVideoAutolinking.mm +49 -0
  541. package/nitrogen/generated/ios/ReactNativeVideoAutolinking.swift +55 -0
  542. package/nitrogen/generated/ios/c++/HybridVideoPlayerEventEmitterSpecSwift.cpp +11 -0
  543. package/nitrogen/generated/ios/c++/HybridVideoPlayerEventEmitterSpecSwift.hpp +269 -0
  544. package/nitrogen/generated/ios/c++/HybridVideoPlayerFactorySpecSwift.cpp +11 -0
  545. package/nitrogen/generated/ios/c++/HybridVideoPlayerFactorySpecSwift.hpp +82 -0
  546. package/nitrogen/generated/ios/c++/HybridVideoPlayerSourceFactorySpecSwift.cpp +11 -0
  547. package/nitrogen/generated/ios/c++/HybridVideoPlayerSourceFactorySpecSwift.hpp +125 -0
  548. package/nitrogen/generated/ios/c++/HybridVideoPlayerSourceSpecSwift.cpp +11 -0
  549. package/nitrogen/generated/ios/c++/HybridVideoPlayerSourceSpecSwift.hpp +125 -0
  550. package/nitrogen/generated/ios/c++/HybridVideoPlayerSpecSwift.cpp +11 -0
  551. package/nitrogen/generated/ios/c++/HybridVideoPlayerSpecSwift.hpp +283 -0
  552. package/nitrogen/generated/ios/c++/HybridVideoViewViewManagerFactorySpecSwift.cpp +11 -0
  553. package/nitrogen/generated/ios/c++/HybridVideoViewViewManagerFactorySpecSwift.hpp +78 -0
  554. package/nitrogen/generated/ios/c++/HybridVideoViewViewManagerSpecSwift.cpp +11 -0
  555. package/nitrogen/generated/ios/c++/HybridVideoViewViewManagerSpecSwift.hpp +211 -0
  556. package/nitrogen/generated/ios/swift/AllPlayerTracks.swift +94 -0
  557. package/nitrogen/generated/ios/swift/BandwidthData.swift +82 -0
  558. package/nitrogen/generated/ios/swift/BufferConfig.swift +278 -0
  559. package/nitrogen/generated/ios/swift/CustomVideoMetadata.swift +175 -0
  560. package/nitrogen/generated/ios/swift/ExternalAudio.swift +116 -0
  561. package/nitrogen/generated/ios/swift/ExternalForcedType.swift +40 -0
  562. package/nitrogen/generated/ios/swift/Func_std__shared_ptr_Promise_std__shared_ptr_Promise_std__string_____OnGetLicensePayload.swift +62 -0
  563. package/nitrogen/generated/ios/swift/Func_void.swift +47 -0
  564. package/nitrogen/generated/ios/swift/Func_void_BandwidthData.swift +47 -0
  565. package/nitrogen/generated/ios/swift/Func_void_TimedMetadata.swift +47 -0
  566. package/nitrogen/generated/ios/swift/Func_void_VideoInformation.swift +47 -0
  567. package/nitrogen/generated/ios/swift/Func_void_VideoPlayerStatus.swift +47 -0
  568. package/nitrogen/generated/ios/swift/Func_void_bool.swift +47 -0
  569. package/nitrogen/generated/ios/swift/Func_void_double.swift +47 -0
  570. package/nitrogen/generated/ios/swift/Func_void_onLoadData.swift +47 -0
  571. package/nitrogen/generated/ios/swift/Func_void_onLoadStartData.swift +47 -0
  572. package/nitrogen/generated/ios/swift/Func_void_onPlaybackStateChangeData.swift +47 -0
  573. package/nitrogen/generated/ios/swift/Func_void_onProgressData.swift +47 -0
  574. package/nitrogen/generated/ios/swift/Func_void_onVolumeChangeData.swift +47 -0
  575. package/nitrogen/generated/ios/swift/Func_void_std__exception_ptr.swift +47 -0
  576. package/nitrogen/generated/ios/swift/Func_void_std__shared_ptr_Promise_std__string__.swift +67 -0
  577. package/nitrogen/generated/ios/swift/Func_void_std__string.swift +47 -0
  578. package/nitrogen/generated/ios/swift/Func_void_std__vector_std__string_.swift +47 -0
  579. package/nitrogen/generated/ios/swift/HybridVideoPlayerEventEmitterSpec.swift +74 -0
  580. package/nitrogen/generated/ios/swift/HybridVideoPlayerEventEmitterSpec_cxx.swift +442 -0
  581. package/nitrogen/generated/ios/swift/HybridVideoPlayerFactorySpec.swift +56 -0
  582. package/nitrogen/generated/ios/swift/HybridVideoPlayerFactorySpec_cxx.swift +145 -0
  583. package/nitrogen/generated/ios/swift/HybridVideoPlayerSourceFactorySpec.swift +57 -0
  584. package/nitrogen/generated/ios/swift/HybridVideoPlayerSourceFactorySpec_cxx.swift +149 -0
  585. package/nitrogen/generated/ios/swift/HybridVideoPlayerSourceSpec.swift +57 -0
  586. package/nitrogen/generated/ios/swift/HybridVideoPlayerSourceSpec_cxx.swift +150 -0
  587. package/nitrogen/generated/ios/swift/HybridVideoPlayerSpec.swift +85 -0
  588. package/nitrogen/generated/ios/swift/HybridVideoPlayerSpec_cxx.swift +508 -0
  589. package/nitrogen/generated/ios/swift/HybridVideoViewViewManagerFactorySpec.swift +56 -0
  590. package/nitrogen/generated/ios/swift/HybridVideoViewViewManagerFactorySpec_cxx.swift +134 -0
  591. package/nitrogen/generated/ios/swift/HybridVideoViewViewManagerSpec.swift +73 -0
  592. package/nitrogen/generated/ios/swift/HybridVideoViewViewManagerSpec_cxx.swift +383 -0
  593. package/nitrogen/generated/ios/swift/IgnoreSilentSwitchMode.swift +44 -0
  594. package/nitrogen/generated/ios/swift/ListenerSubscription.swift +47 -0
  595. package/nitrogen/generated/ios/swift/LivePlaybackParams.swift +140 -0
  596. package/nitrogen/generated/ios/swift/MixAudioMode.swift +48 -0
  597. package/nitrogen/generated/ios/swift/NativeDrmParams.swift +287 -0
  598. package/nitrogen/generated/ios/swift/NativeExternalSubtitle.swift +69 -0
  599. package/nitrogen/generated/ios/swift/NativeVideoConfig.swift +368 -0
  600. package/nitrogen/generated/ios/swift/OnGetLicensePayload.swift +69 -0
  601. package/nitrogen/generated/ios/swift/PlayerTrack.swift +88 -0
  602. package/nitrogen/generated/ios/swift/ResizeMode.swift +48 -0
  603. package/nitrogen/generated/ios/swift/Resolution.swift +47 -0
  604. package/nitrogen/generated/ios/swift/SourceType.swift +40 -0
  605. package/nitrogen/generated/ios/swift/SubtitleType.swift +52 -0
  606. package/nitrogen/generated/ios/swift/SurfaceType.swift +40 -0
  607. package/nitrogen/generated/ios/swift/TimedMetadata.swift +48 -0
  608. package/nitrogen/generated/ios/swift/TimedMetadataObject.swift +47 -0
  609. package/nitrogen/generated/ios/swift/TrackType.swift +44 -0
  610. package/nitrogen/generated/ios/swift/Variant_NullType__any_HybridVideoPlayerSourceSpec_.swift +18 -0
  611. package/nitrogen/generated/ios/swift/VideoInformation.swift +113 -0
  612. package/nitrogen/generated/ios/swift/VideoOrientation.swift +60 -0
  613. package/nitrogen/generated/ios/swift/VideoPlayerStatus.swift +48 -0
  614. package/nitrogen/generated/ios/swift/VideoPlayerTrack.swift +110 -0
  615. package/nitrogen/generated/ios/swift/onLoadData.swift +91 -0
  616. package/nitrogen/generated/ios/swift/onLoadStartData.swift +57 -0
  617. package/nitrogen/generated/ios/swift/onPlaybackStateChangeData.swift +47 -0
  618. package/nitrogen/generated/ios/swift/onProgressData.swift +58 -0
  619. package/nitrogen/generated/ios/swift/onVolumeChangeData.swift +47 -0
  620. package/nitrogen/generated/shared/c++/AllPlayerTracks.hpp +88 -0
  621. package/nitrogen/generated/shared/c++/BandwidthData.hpp +83 -0
  622. package/nitrogen/generated/shared/c++/BufferConfig.hpp +120 -0
  623. package/nitrogen/generated/shared/c++/CustomVideoMetadata.hpp +92 -0
  624. package/nitrogen/generated/shared/c++/ExternalAudio.hpp +85 -0
  625. package/nitrogen/generated/shared/c++/ExternalForcedType.hpp +76 -0
  626. package/nitrogen/generated/shared/c++/HybridVideoPlayerEventEmitterSpec.cpp +39 -0
  627. package/nitrogen/generated/shared/c++/HybridVideoPlayerEventEmitterSpec.hpp +108 -0
  628. package/nitrogen/generated/shared/c++/HybridVideoPlayerFactorySpec.cpp +21 -0
  629. package/nitrogen/generated/shared/c++/HybridVideoPlayerFactorySpec.hpp +68 -0
  630. package/nitrogen/generated/shared/c++/HybridVideoPlayerSourceFactorySpec.cpp +22 -0
  631. package/nitrogen/generated/shared/c++/HybridVideoPlayerSourceFactorySpec.hpp +69 -0
  632. package/nitrogen/generated/shared/c++/HybridVideoPlayerSourceSpec.cpp +23 -0
  633. package/nitrogen/generated/shared/c++/HybridVideoPlayerSourceSpec.hpp +69 -0
  634. package/nitrogen/generated/shared/c++/HybridVideoPlayerSpec.cpp +63 -0
  635. package/nitrogen/generated/shared/c++/HybridVideoPlayerSpec.hpp +132 -0
  636. package/nitrogen/generated/shared/c++/HybridVideoViewViewManagerFactorySpec.cpp +21 -0
  637. package/nitrogen/generated/shared/c++/HybridVideoViewViewManagerFactorySpec.hpp +64 -0
  638. package/nitrogen/generated/shared/c++/HybridVideoViewViewManagerSpec.cpp +46 -0
  639. package/nitrogen/generated/shared/c++/HybridVideoViewViewManagerSpec.hpp +99 -0
  640. package/nitrogen/generated/shared/c++/IgnoreSilentSwitchMode.hpp +80 -0
  641. package/nitrogen/generated/shared/c++/ListenerSubscription.hpp +75 -0
  642. package/nitrogen/generated/shared/c++/LivePlaybackParams.hpp +91 -0
  643. package/nitrogen/generated/shared/c++/MixAudioMode.hpp +84 -0
  644. package/nitrogen/generated/shared/c++/NativeDrmParams.hpp +105 -0
  645. package/nitrogen/generated/shared/c++/NativeExternalSubtitle.hpp +89 -0
  646. package/nitrogen/generated/shared/c++/NativeVideoConfig.hpp +139 -0
  647. package/nitrogen/generated/shared/c++/OnGetLicensePayload.hpp +87 -0
  648. package/nitrogen/generated/shared/c++/PlayerTrack.hpp +88 -0
  649. package/nitrogen/generated/shared/c++/ResizeMode.hpp +84 -0
  650. package/nitrogen/generated/shared/c++/Resolution.hpp +79 -0
  651. package/nitrogen/generated/shared/c++/SourceType.hpp +76 -0
  652. package/nitrogen/generated/shared/c++/SubtitleType.hpp +88 -0
  653. package/nitrogen/generated/shared/c++/SurfaceType.hpp +76 -0
  654. package/nitrogen/generated/shared/c++/TimedMetadata.hpp +77 -0
  655. package/nitrogen/generated/shared/c++/TimedMetadataObject.hpp +79 -0
  656. package/nitrogen/generated/shared/c++/TrackType.hpp +63 -0
  657. package/nitrogen/generated/shared/c++/VideoInformation.hpp +104 -0
  658. package/nitrogen/generated/shared/c++/VideoOrientation.hpp +96 -0
  659. package/nitrogen/generated/shared/c++/VideoPlayerStatus.hpp +84 -0
  660. package/nitrogen/generated/shared/c++/VideoPlayerTrack.hpp +96 -0
  661. package/nitrogen/generated/shared/c++/onLoadData.hpp +99 -0
  662. package/nitrogen/generated/shared/c++/onLoadStartData.hpp +84 -0
  663. package/nitrogen/generated/shared/c++/onPlaybackStateChangeData.hpp +79 -0
  664. package/nitrogen/generated/shared/c++/onProgressData.hpp +83 -0
  665. package/nitrogen/generated/shared/c++/onVolumeChangeData.hpp +79 -0
  666. package/package.json +155 -0
  667. package/react-native.config.js +19 -0
  668. package/src/core/VideoPlayer.ts +377 -0
  669. package/src/core/VideoPlayerEvents.ts +142 -0
  670. package/src/core/hooks/useEvent.ts +24 -0
  671. package/src/core/hooks/useManagedInstance.ts +96 -0
  672. package/src/core/hooks/useVideoPlayer.ts +73 -0
  673. package/src/core/types/BufferConfig.ts +103 -0
  674. package/src/core/types/DrmParams.ts +65 -0
  675. package/src/core/types/Events.ts +280 -0
  676. package/src/core/types/IgnoreSilentSwitchMode.ts +1 -0
  677. package/src/core/types/MixAudioMode.ts +1 -0
  678. package/src/core/types/PlayerTrack.ts +39 -0
  679. package/src/core/types/ResizeMode.ts +9 -0
  680. package/src/core/types/Utils.ts +1 -0
  681. package/src/core/types/VideoConfig.ts +166 -0
  682. package/src/core/types/VideoError.ts +174 -0
  683. package/src/core/types/VideoInformation.ts +44 -0
  684. package/src/core/types/VideoOrientation.ts +8 -0
  685. package/src/core/types/VideoPlayerBase.ts +224 -0
  686. package/src/core/types/VideoPlayerSourceBase.ts +19 -0
  687. package/src/core/types/VideoPlayerStatus.ts +8 -0
  688. package/src/core/utils/playerFactory.ts +35 -0
  689. package/src/core/utils/sourceFactory.ts +171 -0
  690. package/src/core/video-view/NativeVideoView.tsx +18 -0
  691. package/src/core/video-view/VideoView.tsx +406 -0
  692. package/src/expo-plugins/@types.ts +37 -0
  693. package/src/expo-plugins/getPackageInfo.ts +23 -0
  694. package/src/expo-plugins/withAndroidExtensions.ts +46 -0
  695. package/src/expo-plugins/withAndroidNotificationControls.ts +43 -0
  696. package/src/expo-plugins/withAndroidPictureInPicture.ts +31 -0
  697. package/src/expo-plugins/withBackgroundAudio.ts +26 -0
  698. package/src/expo-plugins/withReactNativeVideo.ts +32 -0
  699. package/src/expo-plugins/writeToPodfile.ts +74 -0
  700. package/src/index.tsx +34 -0
  701. package/src/spec/fabric/VideoViewNativeComponent.ts +17 -0
  702. package/src/spec/nitro/VideoPlayer.nitro.ts +38 -0
  703. package/src/spec/nitro/VideoPlayerEventEmitter.nitro.ts +196 -0
  704. package/src/spec/nitro/VideoPlayerSource.nitro.ts +18 -0
  705. package/src/spec/nitro/VideoViewViewManager.nitro.ts +92 -0
@@ -0,0 +1,194 @@
1
+ import type { IgnoreSilentSwitchMode } from './IgnoreSilentSwitchMode';
2
+ import type { MixAudioMode } from './MixAudioMode';
3
+ import type { VideoPlayerSourceBase } from './VideoPlayerSourceBase';
4
+ import type { VideoPlayerStatus } from './VideoPlayerStatus';
5
+ import type { AllPlayerTracks, PlayerTrack, TrackType } from './PlayerTrack';
6
+ export interface VideoPlayerBase {
7
+ /**
8
+ * The source of the video.
9
+ * Source is immutable. To change the source, you need to call {@link replaceSourceAsync} method.
10
+ * see {@link VideoPlayerSourceBase}
11
+ */
12
+ readonly source: VideoPlayerSourceBase;
13
+ /**
14
+ * The status of the player.
15
+ * @param idle - The player is idle (source is not loaded)
16
+ * @param loading - The player is loading.
17
+ * @param readyToPlay - The player is ready to play (source is loaded).
18
+ * @param error - The player has an error.
19
+ */
20
+ readonly status: VideoPlayerStatus;
21
+ /**
22
+ * The current time of the video in seconds (1.0 = 1 sec).
23
+ * Returns NaN if the current time is not available.
24
+ */
25
+ readonly duration: number;
26
+ /**
27
+ * The volume of the video (0.0 = 0%, 1.0 = 100%).
28
+ * @note If the player is {@link muted}, the volume will be 0.0.
29
+ */
30
+ volume: number;
31
+ /**
32
+ * The duration of the video in seconds (1.0 = 1 sec).
33
+ * Returns NaN if the duration is not available.
34
+ */
35
+ currentTime: number;
36
+ /**
37
+ * Modify the progress event interval (ms)
38
+ * By default it's 250ms
39
+ */
40
+ progressEventInterval: number;
41
+ /**
42
+ * Subtitle delay (milliseconds) negative or positive number
43
+ */
44
+ subtitleDelay: bigint;
45
+ /**
46
+ * Whether the player is muted.
47
+ */
48
+ muted: boolean;
49
+ /**
50
+ * Whether the player is looped.
51
+ */
52
+ loop: boolean;
53
+ /**
54
+ * Controls the speed at which the player should play.
55
+ * @note if rate is = 0, it will pause video.
56
+ */
57
+ rate: number;
58
+ /**
59
+ * Controls the audio mixing mode of the player.
60
+ *
61
+ * - `mixWithOthers` - Mix with other players.
62
+ * - `doNotMix` - Do not mix with other players.
63
+ * - `duckOthers` - Duck other players.
64
+ * - `auto` - uses default behavior for player.
65
+ *
66
+ * default is `auto`.
67
+ */
68
+ mixAudioMode: MixAudioMode;
69
+ /**
70
+ * Controls the silent switch mode of the player.
71
+ * @note This is only supported on iOS.
72
+ *
73
+ * - `auto` - uses default behavior for player.
74
+ * - `ignore` - ignore the silent switch.
75
+ * - `obey` - obey the silent switch.
76
+ */
77
+ ignoreSilentSwitchMode: IgnoreSilentSwitchMode;
78
+ /**
79
+ * Whether the player should play in background.
80
+ *
81
+ * - `true` - play in background.
82
+ * - `false` - pause in background (default).
83
+ *
84
+ * @note this can override {@link playWhenInactive}.
85
+ */
86
+ playInBackground: boolean;
87
+ /**
88
+ * Whether the player should play when the app is inactive (user opened control center).
89
+ *
90
+ * - `true` - play when the app is inactive.
91
+ * - `false` - pause when the app is inactive (default).
92
+ *
93
+ * @note this can be overridden by {@link playInBackground}.
94
+ * @note This is only supported on iOS.
95
+ */
96
+ playWhenInactive: boolean;
97
+ /**
98
+ * Whether the player is playing.
99
+ * @note This is a read-only property.
100
+ * @note To pause/resume the player, you need to use {@link play} and {@link pause} methods.
101
+ */
102
+ readonly isPlaying: boolean;
103
+ /**
104
+ * Manually initialize the player. You don't need to call this method manually, unless you set `initializeOnCreation` to false in {@link VideoConfig}
105
+ */
106
+ initialize(): Promise<void>;
107
+ /**
108
+ * Preload the video.
109
+ * This is useful to avoid delay when the user plays the video.
110
+ * Preloading too many videos can lead to memory issues or performance issues.
111
+ */
112
+ preload(): Promise<void>;
113
+ /**
114
+ * Start playback of player.
115
+ */
116
+ play(): void;
117
+ /**
118
+ * Pause playback of player.
119
+ */
120
+ pause(): void;
121
+ /**
122
+ * Seek by given time.
123
+ * If the time is negative, it will seek backward.
124
+ * time will be clamped if it is out of range (0 ~ {@link duration}).
125
+ * @param time - The time to seek from current time in seconds.
126
+ */
127
+ seekBy(time: number): void;
128
+ /**
129
+ * Seek to a specific time in the video.
130
+ * @param time - The time to seek to in seconds.
131
+ * @note This have same effect as {@link currentTime} setter.
132
+ * @note time will be clamped if it is out of range (0 ~ {@link duration}).
133
+ */
134
+ seekTo(time: number): void;
135
+ /**
136
+ * Replace the current source of the player.
137
+ * @param source - The new source of the video.
138
+ * @note If you want to clear the source, you can pass null. It has the same effect as {@link release}.
139
+ * see {@link VideoPlayerSourceBase}
140
+ */
141
+ replaceSourceAsync(source: VideoPlayerSourceBase | null): Promise<void>;
142
+ /**
143
+ * Get all available text tracks for the current source.
144
+ * @returns Array of available text tracks
145
+ */
146
+ getAvailableTextTracks(): PlayerTrack[];
147
+ /**
148
+ * Get all tracks (audios, videos, texts) tracks for the current source.
149
+ * @returns All tracks of the player
150
+ */
151
+ getAllPlayerTracks(): AllPlayerTracks;
152
+ /**
153
+ * Select a track (text, audio, video) to display.
154
+ * @param type - TrackType (text, audio, video)
155
+ * @param id - The id of the track to select.
156
+ */
157
+ selectTrackById(type: TrackType, id?: string): void;
158
+ /**
159
+ * Select a track (text, audio, video) to display.
160
+ * @param type - TrackType (text, audio, video)
161
+ * @param index - The index of the track to select.
162
+ */
163
+ selectTrackByIndex(type: TrackType, index?: number): void;
164
+ /**
165
+ * Stops playback and clears all media items so the Player can be safely reused.
166
+ *
167
+ * This function:
168
+ * - Stops playback if currently playing or buffering
169
+ * - Cancels any ongoing loading
170
+ * - Clears the playlist/timeline
171
+ * - Keeps the Player instance and its resources alive
172
+ *
173
+ * After calling this function, the Player will be in [Player.STATE_IDLE]
174
+ * with an empty playlist.
175
+ *
176
+ * Use this when:
177
+ * - Reusing a single Player instance for multiple media items
178
+ * - Switching videos frequently (e.g. feeds, previews, RecyclerView)
179
+ *
180
+ * Do NOT use this when you are done with playback permanently.
181
+ * In that case, call [Player.release] instead.
182
+ */
183
+ resetForReuse(): void;
184
+ /**
185
+ * Get the currently selected text track.
186
+ * @returns The currently selected text track, or undefined if none is selected
187
+ */
188
+ readonly selectedTrack?: PlayerTrack;
189
+ /**
190
+ * Releases the player's native resources and releases native state.
191
+ */
192
+ release(): void;
193
+ }
194
+ //# sourceMappingURL=VideoPlayerBase.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VideoPlayerBase.d.ts","sourceRoot":"","sources":["../../../../../../src/core/types/VideoPlayerBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAC;AACvE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAI7D,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE7E,MAAM,WAAW,eAAe;IAC9B;;;;OAIG;IACH,QAAQ,CAAC,MAAM,EAAE,qBAAqB,CAAC;IAEvC;;;;;;OAMG;IACH,QAAQ,CAAC,MAAM,EAAE,iBAAiB,CAAC;IAEnC;;;OAGG;IACH,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAE1B;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,qBAAqB,EAAE,MAAM,CAAC;IAE9B;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IAEtB;;OAEG;IACH,KAAK,EAAE,OAAO,CAAC;IAEf;;OAEG;IACH,IAAI,EAAE,OAAO,CAAC;IAEd;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;;;;;;;;OASG;IACH,YAAY,EAAE,YAAY,CAAC;IAE3B;;;;;;;OAOG;IACH,sBAAsB,EAAE,sBAAsB,CAAC;IAE/C;;;;;;;OAOG;IACH,gBAAgB,EAAE,OAAO,CAAC;IAE1B;;;;;;;;OAQG;IACH,gBAAgB,EAAE,OAAO,CAAC;IAE1B;;;;OAIG;IACH,QAAQ,CAAC,SAAS,EAAE,OAAO,CAAC;IAE5B;;OAEG;IACH,UAAU,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAE5B;;;;OAIG;IACH,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAEzB;;OAEG;IACH,IAAI,IAAI,IAAI,CAAC;IAEb;;OAEG;IACH,KAAK,IAAI,IAAI,CAAC;IAEd;;;;;OAKG;IACH,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;;;;OAKG;IACH,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IAE3B;;;;;OAKG;IACH,kBAAkB,CAAC,MAAM,EAAE,qBAAqB,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAExE;;;OAGG;IACH,sBAAsB,IAAI,WAAW,EAAE,CAAC;IAExC;;;OAGG;IACH,kBAAkB,IAAI,eAAe,CAAC;IAEtC;;;;OAIG;IACH,eAAe,CAAC,IAAI,EAAE,SAAS,EAAE,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEpD;;;;OAIG;IACH,kBAAkB,CAAC,IAAI,EAAE,SAAS,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE1D;;;;;;;;;;;;;;;;;;OAkBG;IACH,aAAa,IAAI,IAAI,CAAC;IACtB;;;OAGG;IACH,QAAQ,CAAC,aAAa,CAAC,EAAE,WAAW,CAAC;IAErC;;OAEG;IACH,OAAO,IAAI,IAAI,CAAC;CACjB"}
@@ -0,0 +1,17 @@
1
+ import type { NativeVideoConfig } from './VideoConfig';
2
+ import type { VideoInformation } from './VideoInformation';
3
+ export interface VideoPlayerSourceBase {
4
+ /**
5
+ * The URI of the asset.
6
+ */
7
+ readonly uri: string;
8
+ /**
9
+ * The config of the asset.
10
+ */
11
+ readonly config: NativeVideoConfig;
12
+ /**
13
+ * Get the information about the asset.
14
+ */
15
+ getAssetInformationAsync(): Promise<VideoInformation>;
16
+ }
17
+ //# sourceMappingURL=VideoPlayerSourceBase.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VideoPlayerSourceBase.d.ts","sourceRoot":"","sources":["../../../../../../src/core/types/VideoPlayerSourceBase.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAE3D,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,QAAQ,CAAC,MAAM,EAAE,iBAAiB,CAAC;IAEnC;;OAEG;IACH,wBAAwB,IAAI,OAAO,CAAC,gBAAgB,CAAC,CAAC;CACvD"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * The status of the player.
3
+ * @param idle - The player is idle (source is not loaded)
4
+ * @param loading - The player is loading (source is loading).
5
+ * @param readyToPlay - The player is ready to play (source is loaded).
6
+ * @param error - The player has an error (source is not loaded).
7
+ */
8
+ export type VideoPlayerStatus = 'idle' | 'loading' | 'readyToPlay' | 'error';
9
+ //# sourceMappingURL=VideoPlayerStatus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VideoPlayerStatus.d.ts","sourceRoot":"","sources":["../../../../../../src/core/types/VideoPlayerStatus.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,SAAS,GAAG,aAAa,GAAG,OAAO,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=playerFactory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"playerFactory.d.ts","sourceRoot":"","sources":["../../../../../../src/core/utils/playerFactory.ts"],"names":[],"mappings":""}
@@ -0,0 +1,29 @@
1
+ import type { VideoPlayerSource } from '../../spec/nitro/VideoPlayerSource.nitro';
2
+ import type { VideoConfig, VideoSource } from '../types/VideoConfig';
3
+ export declare const isVideoPlayerSource: (obj: any) => obj is VideoPlayerSource;
4
+ /**
5
+ * Creates a `VideoPlayerSource` instance from a URI (string).
6
+ *
7
+ * @param uri - The URI of the video to play
8
+ * @returns The `VideoPlayerSource` instance
9
+ */
10
+ export declare const createSourceFromUri: (uri: string) => VideoPlayerSource;
11
+ /**
12
+ * Creates a `VideoPlayerSource` instance from a `VideoConfig`.
13
+ *
14
+ * @note The `uri` property is required to be a string.
15
+ *
16
+ * @param config - The `VideoConfig` to create the `VideoPlayerSource` from
17
+ * @returns The `VideoPlayerSource` instance
18
+ */
19
+ export declare const createSourceFromVideoConfig: (config: VideoConfig & {
20
+ uri: string;
21
+ }) => VideoPlayerSource;
22
+ /**
23
+ * Creates a `VideoPlayerSource`
24
+ *
25
+ * @param source - The `VideoSource` to create the `VideoPlayerSource` from
26
+ * @returns The `VideoPlayerSource` instance
27
+ */
28
+ export declare const createSource: (source: VideoSource | VideoConfig | VideoPlayerSource) => VideoPlayerSource;
29
+ //# sourceMappingURL=sourceFactory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sourceFactory.d.ts","sourceRoot":"","sources":["../../../../../../src/core/utils/sourceFactory.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,iBAAiB,EAElB,MAAM,0CAA0C,CAAC;AAClD,OAAO,KAAK,EAIV,WAAW,EACX,WAAW,EACZ,MAAM,sBAAsB,CAAC;AAW9B,eAAO,MAAM,mBAAmB,GAAI,KAAK,GAAG,KAAG,GAAG,IAAI,iBAOrD,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,GAAI,KAAK,MAAM,sBAU9C,CAAC;AAEF;;;;;;;GAOG;AACH,eAAO,MAAM,2BAA2B,GACtC,QAAQ,WAAW,GAAG;IAAE,GAAG,EAAE,MAAM,CAAA;CAAE,sBAsCtC,CAAC;AAmBF;;;;;GAKG;AACH,eAAO,MAAM,YAAY,GACvB,QAAQ,WAAW,GAAG,WAAW,GAAG,iBAAiB,KACpD,iBA8CF,CAAC"}
@@ -0,0 +1,2 @@
1
+ export declare const NativeVideoView: import("react-native/Libraries/Utilities/codegenNativeComponent").NativeComponentType<import("../../spec/fabric/VideoViewNativeComponent").ViewViewNativeProps> | (() => never);
2
+ //# sourceMappingURL=NativeVideoView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NativeVideoView.d.ts","sourceRoot":"","sources":["../../../../../../src/core/video-view/NativeVideoView.tsx"],"names":[],"mappings":"AAYA,eAAO,MAAM,eAAe,iLAKrB,CAAC"}
@@ -0,0 +1,85 @@
1
+ import * as React from 'react';
2
+ import type { ViewProps, ViewStyle } from 'react-native';
3
+ import type { ListenerSubscription } from '../../spec/nitro/VideoPlayerEventEmitter.nitro';
4
+ import type { SurfaceType } from '../../spec/nitro/VideoViewViewManager.nitro';
5
+ import { type VideoViewEvents } from '../types/Events';
6
+ import type { ResizeMode } from '../types/ResizeMode';
7
+ import type { VideoPlayer } from '../VideoPlayer';
8
+ export interface VideoViewProps extends Partial<VideoViewEvents>, ViewProps {
9
+ /**
10
+ * The player to play the video - {@link VideoPlayer}
11
+ */
12
+ player: VideoPlayer;
13
+ /**
14
+ * The style of the video view - {@link ViewStyle}
15
+ */
16
+ style?: ViewStyle;
17
+ /**
18
+ * Whether to show the controls. Defaults to false.
19
+ */
20
+ controls?: boolean;
21
+ /**
22
+ * Whether to enable & show the picture in picture button in native controls. Defaults to false.
23
+ */
24
+ pictureInPicture?: boolean;
25
+ /**
26
+ * Whether to automatically enter picture in picture mode when the video is playing. Defaults to false.
27
+ */
28
+ autoEnterPictureInPicture?: boolean;
29
+ /**
30
+ * How the video should be resized to fit the view. Defaults to 'none'.
31
+ * - 'contain': Scale the video uniformly (maintain aspect ratio) so that it fits entirely within the view
32
+ * - 'cover': Scale the video uniformly (maintain aspect ratio) so that it fills the entire view (may crop)
33
+ * - 'stretch': Scale the video to fill the entire view without maintaining aspect ratio
34
+ * - 'none': Do not resize the video
35
+ */
36
+ resizeMode?: ResizeMode;
37
+ /**
38
+ * Whether to keep the screen awake while the video view is mounted. Defaults to true.
39
+ */
40
+ keepScreenAwake?: boolean;
41
+ /**
42
+ * The type of underlying native view. Defaults to 'surface'.
43
+ * - 'surface': Uses a SurfaceView on Android. More performant, but cannot be animated or transformed.
44
+ * - 'texture': Uses a TextureView on Android. Less performant, but can be animated and transformed.
45
+ *
46
+ * Only applicable on Android
47
+ *
48
+ * @default 'surface'
49
+ * @platform android
50
+ */
51
+ surfaceType?: SurfaceType;
52
+ }
53
+ export interface VideoViewRef {
54
+ /**
55
+ * Enter fullscreen mode
56
+ */
57
+ enterFullscreen: () => void;
58
+ /**
59
+ * Exit fullscreen mode
60
+ */
61
+ exitFullscreen: () => void;
62
+ /**
63
+ * Enter picture in picture mode
64
+ */
65
+ enterPictureInPicture: () => void;
66
+ /**
67
+ * Exit picture in picture mode
68
+ */
69
+ exitPictureInPicture: () => void;
70
+ /**
71
+ * Check if picture in picture mode is supported
72
+ * @returns true if picture in picture mode is supported, false otherwise
73
+ */
74
+ canEnterPictureInPicture: () => boolean;
75
+ /**
76
+ * Adds a listener for a view event.
77
+ * @param event - The event to add a listener for.
78
+ * @param callback - The callback to call when the event is triggered.
79
+ * @returns A subscription object that can be used to remove the listener.
80
+ */
81
+ addEventListener: <Event extends keyof VideoViewEvents>(event: Event, callback: VideoViewEvents[Event]) => ListenerSubscription;
82
+ }
83
+ declare const _default: React.MemoExoticComponent<React.ForwardRefExoticComponent<VideoViewProps & React.RefAttributes<VideoViewRef>>>;
84
+ export default _default;
85
+ //# sourceMappingURL=VideoView.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VideoView.d.ts","sourceRoot":"","sources":["../../../../../../src/core/video-view/VideoView.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzD,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,gDAAgD,CAAC;AAC3F,OAAO,KAAK,EACV,WAAW,EAGZ,MAAM,6CAA6C,CAAC;AACrD,OAAO,EAAE,KAAK,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,qBAAqB,CAAC;AAMtD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAGlD,MAAM,WAAW,cAAe,SAAQ,OAAO,CAAC,eAAe,CAAC,EAAE,SAAS;IACzE;;OAEG;IACH,MAAM,EAAE,WAAW,CAAC;IACpB;;OAEG;IACH,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;OAEG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;OAEG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B;;OAEG;IACH,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC;;;;;;OAMG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;;;;;;;;OASG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;CAC3B;AAED,MAAM,WAAW,YAAY;IAC3B;;OAEG;IACH,eAAe,EAAE,MAAM,IAAI,CAAC;IAC5B;;OAEG;IACH,cAAc,EAAE,MAAM,IAAI,CAAC;IAC3B;;OAEG;IACH,qBAAqB,EAAE,MAAM,IAAI,CAAC;IAClC;;OAEG;IACH,oBAAoB,EAAE,MAAM,IAAI,CAAC;IACjC;;;OAGG;IACH,wBAAwB,EAAE,MAAM,OAAO,CAAC;IACxC;;;;;OAKG;IACH,gBAAgB,EAAE,CAAC,KAAK,SAAS,MAAM,eAAe,EACpD,KAAK,EAAE,KAAK,EACZ,QAAQ,EAAE,eAAe,CAAC,KAAK,CAAC,KAC7B,oBAAoB,CAAC;CAC3B;;AAmTD,wBAAqC"}
@@ -0,0 +1,34 @@
1
+ export type ConfigProps = {
2
+ /**
3
+ * Whether to use react-native-test-app compatible mode.
4
+ * @default false
5
+ */
6
+ reactNativeTestApp?: boolean;
7
+ /**
8
+ * Apply configs to be able to use Picture-in-picture on Android.
9
+ * @default false
10
+ */
11
+ enableAndroidPictureInPicture?: boolean;
12
+ /**
13
+ * Whether to enable background audio feature.
14
+ * @default false
15
+ */
16
+ enableBackgroundAudio?: boolean;
17
+ /**
18
+ * Android extensions for ExoPlayer - you can choose which extensions to include in order to reduce the size of the app.
19
+ * @default { useExoplayerDash: true, useExoplayerHls: true }
20
+ */
21
+ androidExtensions?: {
22
+ /**
23
+ * Whether to use ExoPlayer's Dash extension.
24
+ * @default true
25
+ */
26
+ useExoplayerDash?: boolean;
27
+ /**
28
+ * Whether to use ExoPlayer's HLS extension.
29
+ * @default true
30
+ */
31
+ useExoplayerHls?: boolean;
32
+ };
33
+ };
34
+ //# sourceMappingURL=@types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"@types.d.ts","sourceRoot":"","sources":["../../../../../src/expo-plugins/@types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,WAAW,GAAG;IACxB;;;OAGG;IACH,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAE7B;;;OAGG;IACH,6BAA6B,CAAC,EAAE,OAAO,CAAC;IAExC;;;OAGG;IACH,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAEhC;;;OAGG;IACH,iBAAiB,CAAC,EAAE;QAClB;;;WAGG;QACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;QAE3B;;;WAGG;QACH,eAAe,CAAC,EAAE,OAAO,CAAC;KAC3B,CAAC;CACH,CAAC"}
@@ -0,0 +1,5 @@
1
+ export declare function getPackageInfo(): {
2
+ name: string;
3
+ version: string;
4
+ };
5
+ //# sourceMappingURL=getPackageInfo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getPackageInfo.d.ts","sourceRoot":"","sources":["../../../../../src/expo-plugins/getPackageInfo.ts"],"names":[],"mappings":"AAAA,wBAAgB,cAAc,IAAI;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAsBlE"}
@@ -0,0 +1,8 @@
1
+ import { type ConfigPlugin } from '@expo/config-plugins';
2
+ import type { ConfigProps } from './@types';
3
+ /**
4
+ * Sets the Android extensions for ExoPlayer in `gradle.properties`.
5
+ * You can choose which extensions to include in order to reduce the size of the app.
6
+ */
7
+ export declare const withAndroidExtensions: ConfigPlugin<ConfigProps['androidExtensions']>;
8
+ //# sourceMappingURL=withAndroidExtensions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withAndroidExtensions.d.ts","sourceRoot":"","sources":["../../../../../src/expo-plugins/withAndroidExtensions.ts"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAC/E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAE5C;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,YAAY,CAC9C,WAAW,CAAC,mBAAmB,CAAC,CAqCjC,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { type ConfigPlugin } from '@expo/config-plugins';
2
+ export declare const withAndroidNotificationControls: ConfigPlugin;
3
+ //# sourceMappingURL=withAndroidNotificationControls.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withAndroidNotificationControls.d.ts","sourceRoot":"","sources":["../../../../../src/expo-plugins/withAndroidNotificationControls.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,YAAY,EAElB,MAAM,sBAAsB,CAAC;AAE9B,eAAO,MAAM,+BAA+B,EAAE,YAoC7C,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { type ConfigPlugin } from '@expo/config-plugins';
2
+ export declare const withAndroidPictureInPicture: ConfigPlugin<boolean>;
3
+ //# sourceMappingURL=withAndroidPictureInPicture.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withAndroidPictureInPicture.d.ts","sourceRoot":"","sources":["../../../../../src/expo-plugins/withAndroidPictureInPicture.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,YAAY,EAClB,MAAM,sBAAsB,CAAC;AAE9B,eAAO,MAAM,2BAA2B,EAAE,YAAY,CAAC,OAAO,CAwB7D,CAAC"}
@@ -0,0 +1,7 @@
1
+ import { type ConfigPlugin } from '@expo/config-plugins';
2
+ /**
3
+ * Sets `UIBackgroundModes` in `Info.plist` to enable background audio on Apple platforms.
4
+ * This is required for audio to continue playing when the app is in the background.
5
+ */
6
+ export declare const withBackgroundAudio: ConfigPlugin<boolean>;
7
+ //# sourceMappingURL=withBackgroundAudio.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withBackgroundAudio.d.ts","sourceRoot":"","sources":["../../../../../src/expo-plugins/withBackgroundAudio.ts"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAExE;;;GAGG;AACH,eAAO,MAAM,mBAAmB,EAAE,YAAY,CAAC,OAAO,CAmBrD,CAAC"}
@@ -0,0 +1,5 @@
1
+ import { type ConfigPlugin } from '@expo/config-plugins';
2
+ import type { ConfigProps } from './@types';
3
+ declare const _default: ConfigPlugin<ConfigProps>;
4
+ export default _default;
5
+ //# sourceMappingURL=withReactNativeVideo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"withReactNativeVideo.d.ts","sourceRoot":"","sources":["../../../../../src/expo-plugins/withReactNativeVideo.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,YAAY,EAAuB,MAAM,sBAAsB,CAAC;AAC9E,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;;AA8B5C,wBAA+D"}
@@ -0,0 +1,2 @@
1
+ export declare const writeToPodfile: (projectRoot: string, key: string, value: string, testApp?: boolean) => void;
2
+ //# sourceMappingURL=writeToPodfile.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"writeToPodfile.d.ts","sourceRoot":"","sources":["../../../../../src/expo-plugins/writeToPodfile.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,cAAc,GACzB,aAAa,MAAM,EACnB,KAAK,MAAM,EACX,OAAO,MAAM,EACb,UAAS,OAAe,SAiBzB,CAAC"}
@@ -0,0 +1,15 @@
1
+ export { useEvent } from './core/hooks/useEvent';
2
+ export { useVideoPlayer } from './core/hooks/useVideoPlayer';
3
+ export * from './core/types/Events';
4
+ export type { IgnoreSilentSwitchMode } from './core/types/IgnoreSilentSwitchMode';
5
+ export type { MixAudioMode } from './core/types/MixAudioMode';
6
+ export type { ResizeMode } from './core/types/ResizeMode';
7
+ export type { PlayerTrack } from './core/types/PlayerTrack';
8
+ export { TrackType } from './core/types/PlayerTrack';
9
+ export type { VideoConfig, VideoSource, ExternalAudio, ExternalForcedType, ExternalSubtitle, } from './core/types/VideoConfig';
10
+ export type { BufferConfig } from './core/types/BufferConfig';
11
+ export { type LibraryError, type PlayerError, type SourceError, type UnknownError, type VideoComponentError, type VideoError, type VideoErrorCode, type VideoRuntimeError, type VideoViewError, } from './core/types/VideoError';
12
+ export type { VideoPlayerStatus } from './core/types/VideoPlayerStatus';
13
+ export { default as VideoView, type VideoViewProps, type VideoViewRef, } from './core/video-view/VideoView';
14
+ export { VideoPlayer } from './core/VideoPlayer';
15
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,cAAc,EAAE,MAAM,6BAA6B,CAAC;AAC7D,cAAc,qBAAqB,CAAC;AACpC,YAAY,EAAE,sBAAsB,EAAE,MAAM,qCAAqC,CAAC;AAClF,YAAY,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,YAAY,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC1D,YAAY,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AAC5D,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAC;AACrD,YAAY,EACV,WAAW,EACX,WAAW,EACX,aAAa,EACb,kBAAkB,EAClB,gBAAgB,GACjB,MAAM,0BAA0B,CAAC;AAClC,YAAY,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,WAAW,EAChB,KAAK,YAAY,EACjB,KAAK,mBAAmB,EACxB,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,iBAAiB,EACtB,KAAK,cAAc,GACpB,MAAM,yBAAyB,CAAC;AACjC,YAAY,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EACL,OAAO,IAAI,SAAS,EACpB,KAAK,cAAc,EACnB,KAAK,YAAY,GAClB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC"}
@@ -0,0 +1,12 @@
1
+ import type { ViewProps } from 'react-native';
2
+ import type { DirectEventHandler, Int32 } from 'react-native/Libraries/Types/CodegenTypes';
3
+ type OnNitroIdChangeEvent = Readonly<{
4
+ nitroId: Int32;
5
+ }>;
6
+ export interface ViewViewNativeProps extends ViewProps {
7
+ nitroId: Int32;
8
+ onNitroIdChange?: DirectEventHandler<OnNitroIdChangeEvent>;
9
+ }
10
+ declare const _default: import("react-native/Libraries/Utilities/codegenNativeComponent").NativeComponentType<ViewViewNativeProps>;
11
+ export default _default;
12
+ //# sourceMappingURL=VideoViewNativeComponent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VideoViewNativeComponent.d.ts","sourceRoot":"","sources":["../../../../../../src/spec/fabric/VideoViewNativeComponent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,KAAK,EACV,kBAAkB,EAClB,KAAK,EACN,MAAM,2CAA2C,CAAC;AAGnD,KAAK,oBAAoB,GAAG,QAAQ,CAAC;IACnC,OAAO,EAAE,KAAK,CAAC;CAChB,CAAC,CAAC;AAEH,MAAM,WAAW,mBAAoB,SAAQ,SAAS;IACpD,OAAO,EAAE,KAAK,CAAC;IACf,eAAe,CAAC,EAAE,kBAAkB,CAAC,oBAAoB,CAAC,CAAC;CAC5D;;AAED,wBAA2E"}
@@ -0,0 +1,34 @@
1
+ import type { HybridObject } from 'react-native-nitro-modules';
2
+ import type { VideoPlayerBase } from '../../core/types/VideoPlayerBase';
3
+ import type { VideoPlayerEventEmitter } from './VideoPlayerEventEmitter.nitro';
4
+ import type { VideoPlayerSource } from './VideoPlayerSource.nitro';
5
+ import type { PlayerTrack } from '../../core/types/PlayerTrack';
6
+ export interface VideoPlayer extends HybridObject<{
7
+ ios: 'swift';
8
+ android: 'kotlin';
9
+ }>, VideoPlayerBase {
10
+ readonly source: VideoPlayerSource;
11
+ readonly eventEmitter: VideoPlayerEventEmitter;
12
+ /**
13
+ * Show playback controls in the notifications area
14
+ *
15
+ * @note on Android, this can be overridden by {@linkcode VideoPlayer.playInBackground}, as Android requires
16
+ * a foreground service to show notifications while the app is in the background.
17
+ *
18
+ * @default false
19
+ */
20
+ showNotificationControls: boolean;
21
+ replaceSourceAsync(source: VideoPlayerSource | null): Promise<void>;
22
+ /**
23
+ * Get all available text tracks for the current source.
24
+ * @returns Array of available text tracks
25
+ */
26
+ getAvailableTextTracks(): PlayerTrack[];
27
+ }
28
+ export interface VideoPlayerFactory extends HybridObject<{
29
+ ios: 'swift';
30
+ android: 'kotlin';
31
+ }> {
32
+ createPlayer(source?: VideoPlayerSource): VideoPlayer;
33
+ }
34
+ //# sourceMappingURL=VideoPlayer.nitro.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"VideoPlayer.nitro.d.ts","sourceRoot":"","sources":["../../../../../../src/spec/nitro/VideoPlayer.nitro.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACxE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAC;AAC/E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAEhE,MAAM,WAAW,WACf,SAAQ,YAAY,CAAC;IAAE,GAAG,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,QAAQ,CAAA;CAAE,CAAC,EACvD,eAAe;IAEjB,QAAQ,CAAC,MAAM,EAAE,iBAAiB,CAAC;IAGnC,QAAQ,CAAC,YAAY,EAAE,uBAAuB,CAAC;IAE/C;;;;;;;OAOG;IACH,wBAAwB,EAAE,OAAO,CAAC;IAElC,kBAAkB,CAAC,MAAM,EAAE,iBAAiB,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IAEpE;;;OAGG;IACH,sBAAsB,IAAI,WAAW,EAAE,CAAC;CACzC;AAED,MAAM,WAAW,kBACf,SAAQ,YAAY,CAAC;IAAE,GAAG,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,QAAQ,CAAA;CAAE,CAAC;IACzD,YAAY,CAAC,MAAM,CAAC,EAAE,iBAAiB,GAAG,WAAW,CAAC;CACvD"}