@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,60 @@
1
+ ///
2
+ /// NativeDrmParams.kt
3
+ /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
+ /// https://github.com/mrousavy/nitro
5
+ /// Copyright © 2025 Marc Rousavy @ Margelo
6
+ ///
7
+
8
+ package com.margelo.nitro.video
9
+
10
+ import androidx.annotation.Keep
11
+ import com.facebook.proguard.annotations.DoNotStrip
12
+ import com.margelo.nitro.core.Promise
13
+
14
+ /**
15
+ * Represents the JavaScript object/struct "NativeDrmParams".
16
+ */
17
+ @DoNotStrip
18
+ @Keep
19
+ data class NativeDrmParams(
20
+ @DoNotStrip
21
+ @Keep
22
+ val type: String?,
23
+ @DoNotStrip
24
+ @Keep
25
+ val licenseUrl: String?,
26
+ @DoNotStrip
27
+ @Keep
28
+ val certificateUrl: String?,
29
+ @DoNotStrip
30
+ @Keep
31
+ val contentId: String?,
32
+ @DoNotStrip
33
+ @Keep
34
+ val licenseHeaders: Map<String, String>?,
35
+ @DoNotStrip
36
+ @Keep
37
+ val multiSession: Boolean?,
38
+ @DoNotStrip
39
+ @Keep
40
+ val getLicense: Func_std__shared_ptr_Promise_std__shared_ptr_Promise_std__string_____OnGetLicensePayload?
41
+ ) {
42
+ /**
43
+ * Create a new instance of NativeDrmParams from Kotlin
44
+ */
45
+ constructor(type: String?, licenseUrl: String?, certificateUrl: String?, contentId: String?, licenseHeaders: Map<String, String>?, multiSession: Boolean?, getLicense: ((payload: OnGetLicensePayload) -> Promise<Promise<String>>)?):
46
+ this(type, licenseUrl, certificateUrl, contentId, licenseHeaders, multiSession, getLicense?.let { Func_std__shared_ptr_Promise_std__shared_ptr_Promise_std__string_____OnGetLicensePayload_java(it) })
47
+
48
+ private companion object {
49
+ /**
50
+ * Constructor called from C++
51
+ */
52
+ @DoNotStrip
53
+ @Keep
54
+ @Suppress("unused")
55
+ @JvmStatic
56
+ private fun fromCpp(type: String?, licenseUrl: String?, certificateUrl: String?, contentId: String?, licenseHeaders: Map<String, String>?, multiSession: Boolean?, getLicense: Func_std__shared_ptr_Promise_std__shared_ptr_Promise_std__string_____OnGetLicensePayload?): NativeDrmParams {
57
+ return NativeDrmParams(type, licenseUrl, certificateUrl, contentId, licenseHeaders, multiSession, getLicense)
58
+ }
59
+ }
60
+ }
@@ -0,0 +1,47 @@
1
+ ///
2
+ /// NativeExternalSubtitle.kt
3
+ /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
+ /// https://github.com/mrousavy/nitro
5
+ /// Copyright © 2025 Marc Rousavy @ Margelo
6
+ ///
7
+
8
+ package com.margelo.nitro.video
9
+
10
+ import androidx.annotation.Keep
11
+ import com.facebook.proguard.annotations.DoNotStrip
12
+
13
+
14
+ /**
15
+ * Represents the JavaScript object/struct "NativeExternalSubtitle".
16
+ */
17
+ @DoNotStrip
18
+ @Keep
19
+ data class NativeExternalSubtitle(
20
+ @DoNotStrip
21
+ @Keep
22
+ val uri: String,
23
+ @DoNotStrip
24
+ @Keep
25
+ val label: String,
26
+ @DoNotStrip
27
+ @Keep
28
+ val type: SubtitleType,
29
+ @DoNotStrip
30
+ @Keep
31
+ val language: String
32
+ ) {
33
+ /* primary constructor */
34
+
35
+ private companion object {
36
+ /**
37
+ * Constructor called from C++
38
+ */
39
+ @DoNotStrip
40
+ @Keep
41
+ @Suppress("unused")
42
+ @JvmStatic
43
+ private fun fromCpp(uri: String, label: String, type: SubtitleType, language: String): NativeExternalSubtitle {
44
+ return NativeExternalSubtitle(uri, label, type, language)
45
+ }
46
+ }
47
+ }
@@ -0,0 +1,71 @@
1
+ ///
2
+ /// NativeVideoConfig.kt
3
+ /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
+ /// https://github.com/mrousavy/nitro
5
+ /// Copyright © 2025 Marc Rousavy @ Margelo
6
+ ///
7
+
8
+ package com.margelo.nitro.video
9
+
10
+ import androidx.annotation.Keep
11
+ import com.facebook.proguard.annotations.DoNotStrip
12
+
13
+
14
+ /**
15
+ * Represents the JavaScript object/struct "NativeVideoConfig".
16
+ */
17
+ @DoNotStrip
18
+ @Keep
19
+ data class NativeVideoConfig(
20
+ @DoNotStrip
21
+ @Keep
22
+ val uri: String,
23
+ @DoNotStrip
24
+ @Keep
25
+ val externalSubtitles: Array<NativeExternalSubtitle>?,
26
+ @DoNotStrip
27
+ @Keep
28
+ val drm: NativeDrmParams?,
29
+ @DoNotStrip
30
+ @Keep
31
+ val headers: Map<String, String>?,
32
+ @DoNotStrip
33
+ @Keep
34
+ val bufferConfig: BufferConfig?,
35
+ @DoNotStrip
36
+ @Keep
37
+ val metadata: CustomVideoMetadata?,
38
+ @DoNotStrip
39
+ @Keep
40
+ val externalAudios: Array<ExternalAudio>?,
41
+ @DoNotStrip
42
+ @Keep
43
+ val initialSubtitleDelay: Long?,
44
+ @DoNotStrip
45
+ @Keep
46
+ val forceOkhttp: Boolean?,
47
+ @DoNotStrip
48
+ @Keep
49
+ val startPosition: Long?,
50
+ @DoNotStrip
51
+ @Keep
52
+ val initializeOnCreation: Boolean?,
53
+ @DoNotStrip
54
+ @Keep
55
+ val forceType: ExternalForcedType?
56
+ ) {
57
+ /* primary constructor */
58
+
59
+ private companion object {
60
+ /**
61
+ * Constructor called from C++
62
+ */
63
+ @DoNotStrip
64
+ @Keep
65
+ @Suppress("unused")
66
+ @JvmStatic
67
+ private fun fromCpp(uri: String, externalSubtitles: Array<NativeExternalSubtitle>?, drm: NativeDrmParams?, headers: Map<String, String>?, bufferConfig: BufferConfig?, metadata: CustomVideoMetadata?, externalAudios: Array<ExternalAudio>?, initialSubtitleDelay: Long?, forceOkhttp: Boolean?, startPosition: Long?, initializeOnCreation: Boolean?, forceType: ExternalForcedType?): NativeVideoConfig {
68
+ return NativeVideoConfig(uri, externalSubtitles, drm, headers, bufferConfig, metadata, externalAudios, initialSubtitleDelay, forceOkhttp, startPosition, initializeOnCreation, forceType)
69
+ }
70
+ }
71
+ }
@@ -0,0 +1,47 @@
1
+ ///
2
+ /// OnGetLicensePayload.kt
3
+ /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
+ /// https://github.com/mrousavy/nitro
5
+ /// Copyright © 2025 Marc Rousavy @ Margelo
6
+ ///
7
+
8
+ package com.margelo.nitro.video
9
+
10
+ import androidx.annotation.Keep
11
+ import com.facebook.proguard.annotations.DoNotStrip
12
+
13
+
14
+ /**
15
+ * Represents the JavaScript object/struct "OnGetLicensePayload".
16
+ */
17
+ @DoNotStrip
18
+ @Keep
19
+ data class OnGetLicensePayload(
20
+ @DoNotStrip
21
+ @Keep
22
+ val contentId: String,
23
+ @DoNotStrip
24
+ @Keep
25
+ val licenseUrl: String,
26
+ @DoNotStrip
27
+ @Keep
28
+ val keyUrl: String,
29
+ @DoNotStrip
30
+ @Keep
31
+ val spc: String
32
+ ) {
33
+ /* primary constructor */
34
+
35
+ private companion object {
36
+ /**
37
+ * Constructor called from C++
38
+ */
39
+ @DoNotStrip
40
+ @Keep
41
+ @Suppress("unused")
42
+ @JvmStatic
43
+ private fun fromCpp(contentId: String, licenseUrl: String, keyUrl: String, spc: String): OnGetLicensePayload {
44
+ return OnGetLicensePayload(contentId, licenseUrl, keyUrl, spc)
45
+ }
46
+ }
47
+ }
@@ -0,0 +1,47 @@
1
+ ///
2
+ /// PlayerTrack.kt
3
+ /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
+ /// https://github.com/mrousavy/nitro
5
+ /// Copyright © 2025 Marc Rousavy @ Margelo
6
+ ///
7
+
8
+ package com.margelo.nitro.video
9
+
10
+ import androidx.annotation.Keep
11
+ import com.facebook.proguard.annotations.DoNotStrip
12
+
13
+
14
+ /**
15
+ * Represents the JavaScript object/struct "PlayerTrack".
16
+ */
17
+ @DoNotStrip
18
+ @Keep
19
+ data class PlayerTrack(
20
+ @DoNotStrip
21
+ @Keep
22
+ val id: String,
23
+ @DoNotStrip
24
+ @Keep
25
+ val label: String,
26
+ @DoNotStrip
27
+ @Keep
28
+ val language: String?,
29
+ @DoNotStrip
30
+ @Keep
31
+ val selected: Boolean
32
+ ) {
33
+ /* primary constructor */
34
+
35
+ private companion object {
36
+ /**
37
+ * Constructor called from C++
38
+ */
39
+ @DoNotStrip
40
+ @Keep
41
+ @Suppress("unused")
42
+ @JvmStatic
43
+ private fun fromCpp(id: String, label: String, language: String?, selected: Boolean): PlayerTrack {
44
+ return PlayerTrack(id, label, language, selected)
45
+ }
46
+ }
47
+ }
@@ -0,0 +1,35 @@
1
+ ///
2
+ /// ReactNativeVideoOnLoad.kt
3
+ /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
+ /// https://github.com/mrousavy/nitro
5
+ /// Copyright © 2025 Marc Rousavy @ Margelo
6
+ ///
7
+
8
+ package com.margelo.nitro.video
9
+
10
+ import android.util.Log
11
+
12
+ internal class ReactNativeVideoOnLoad {
13
+ companion object {
14
+ private const val TAG = "ReactNativeVideoOnLoad"
15
+ private var didLoad = false
16
+ /**
17
+ * Initializes the native part of "ReactNativeVideo".
18
+ * This method is idempotent and can be called more than once.
19
+ */
20
+ @JvmStatic
21
+ fun initializeNative() {
22
+ if (didLoad) return
23
+ try {
24
+ Log.i(TAG, "Loading ReactNativeVideo C++ library...")
25
+ System.loadLibrary("ReactNativeVideo")
26
+ Log.i(TAG, "Successfully loaded ReactNativeVideo C++ library!")
27
+ didLoad = true
28
+ } catch (e: Error) {
29
+ Log.e(TAG, "Failed to load ReactNativeVideo C++ library! Is it properly installed and linked? " +
30
+ "Is the name correct? (see `CMakeLists.txt`, at `add_library(...)`)", e)
31
+ throw e
32
+ }
33
+ }
34
+ }
35
+ }
@@ -0,0 +1,23 @@
1
+ ///
2
+ /// ResizeMode.kt
3
+ /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
+ /// https://github.com/mrousavy/nitro
5
+ /// Copyright © 2025 Marc Rousavy @ Margelo
6
+ ///
7
+
8
+ package com.margelo.nitro.video
9
+
10
+ import androidx.annotation.Keep
11
+ import com.facebook.proguard.annotations.DoNotStrip
12
+
13
+ /**
14
+ * Represents the JavaScript enum/union "ResizeMode".
15
+ */
16
+ @DoNotStrip
17
+ @Keep
18
+ enum class ResizeMode(@DoNotStrip @Keep val value: Int) {
19
+ CONTAIN(0),
20
+ COVER(1),
21
+ STRETCH(2),
22
+ NONE(3);
23
+ }
@@ -0,0 +1,41 @@
1
+ ///
2
+ /// Resolution.kt
3
+ /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
+ /// https://github.com/mrousavy/nitro
5
+ /// Copyright © 2025 Marc Rousavy @ Margelo
6
+ ///
7
+
8
+ package com.margelo.nitro.video
9
+
10
+ import androidx.annotation.Keep
11
+ import com.facebook.proguard.annotations.DoNotStrip
12
+
13
+
14
+ /**
15
+ * Represents the JavaScript object/struct "Resolution".
16
+ */
17
+ @DoNotStrip
18
+ @Keep
19
+ data class Resolution(
20
+ @DoNotStrip
21
+ @Keep
22
+ val width: Double,
23
+ @DoNotStrip
24
+ @Keep
25
+ val height: Double
26
+ ) {
27
+ /* primary constructor */
28
+
29
+ private companion object {
30
+ /**
31
+ * Constructor called from C++
32
+ */
33
+ @DoNotStrip
34
+ @Keep
35
+ @Suppress("unused")
36
+ @JvmStatic
37
+ private fun fromCpp(width: Double, height: Double): Resolution {
38
+ return Resolution(width, height)
39
+ }
40
+ }
41
+ }
@@ -0,0 +1,21 @@
1
+ ///
2
+ /// SourceType.kt
3
+ /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
+ /// https://github.com/mrousavy/nitro
5
+ /// Copyright © 2025 Marc Rousavy @ Margelo
6
+ ///
7
+
8
+ package com.margelo.nitro.video
9
+
10
+ import androidx.annotation.Keep
11
+ import com.facebook.proguard.annotations.DoNotStrip
12
+
13
+ /**
14
+ * Represents the JavaScript enum/union "SourceType".
15
+ */
16
+ @DoNotStrip
17
+ @Keep
18
+ enum class SourceType(@DoNotStrip @Keep val value: Int) {
19
+ LOCAL(0),
20
+ NETWORK(1);
21
+ }
@@ -0,0 +1,24 @@
1
+ ///
2
+ /// SubtitleType.kt
3
+ /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
+ /// https://github.com/mrousavy/nitro
5
+ /// Copyright © 2025 Marc Rousavy @ Margelo
6
+ ///
7
+
8
+ package com.margelo.nitro.video
9
+
10
+ import androidx.annotation.Keep
11
+ import com.facebook.proguard.annotations.DoNotStrip
12
+
13
+ /**
14
+ * Represents the JavaScript enum/union "SubtitleType".
15
+ */
16
+ @DoNotStrip
17
+ @Keep
18
+ enum class SubtitleType(@DoNotStrip @Keep val value: Int) {
19
+ AUTO(0),
20
+ VTT(1),
21
+ SRT(2),
22
+ SSA(3),
23
+ ASS(4);
24
+ }
@@ -0,0 +1,21 @@
1
+ ///
2
+ /// SurfaceType.kt
3
+ /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
+ /// https://github.com/mrousavy/nitro
5
+ /// Copyright © 2025 Marc Rousavy @ Margelo
6
+ ///
7
+
8
+ package com.margelo.nitro.video
9
+
10
+ import androidx.annotation.Keep
11
+ import com.facebook.proguard.annotations.DoNotStrip
12
+
13
+ /**
14
+ * Represents the JavaScript enum/union "SurfaceType".
15
+ */
16
+ @DoNotStrip
17
+ @Keep
18
+ enum class SurfaceType(@DoNotStrip @Keep val value: Int) {
19
+ SURFACE(0),
20
+ TEXTURE(1);
21
+ }
@@ -0,0 +1,38 @@
1
+ ///
2
+ /// TimedMetadata.kt
3
+ /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
+ /// https://github.com/mrousavy/nitro
5
+ /// Copyright © 2025 Marc Rousavy @ Margelo
6
+ ///
7
+
8
+ package com.margelo.nitro.video
9
+
10
+ import androidx.annotation.Keep
11
+ import com.facebook.proguard.annotations.DoNotStrip
12
+
13
+
14
+ /**
15
+ * Represents the JavaScript object/struct "TimedMetadata".
16
+ */
17
+ @DoNotStrip
18
+ @Keep
19
+ data class TimedMetadata(
20
+ @DoNotStrip
21
+ @Keep
22
+ val metadata: Array<TimedMetadataObject>
23
+ ) {
24
+ /* primary constructor */
25
+
26
+ private companion object {
27
+ /**
28
+ * Constructor called from C++
29
+ */
30
+ @DoNotStrip
31
+ @Keep
32
+ @Suppress("unused")
33
+ @JvmStatic
34
+ private fun fromCpp(metadata: Array<TimedMetadataObject>): TimedMetadata {
35
+ return TimedMetadata(metadata)
36
+ }
37
+ }
38
+ }
@@ -0,0 +1,41 @@
1
+ ///
2
+ /// TimedMetadataObject.kt
3
+ /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
+ /// https://github.com/mrousavy/nitro
5
+ /// Copyright © 2025 Marc Rousavy @ Margelo
6
+ ///
7
+
8
+ package com.margelo.nitro.video
9
+
10
+ import androidx.annotation.Keep
11
+ import com.facebook.proguard.annotations.DoNotStrip
12
+
13
+
14
+ /**
15
+ * Represents the JavaScript object/struct "TimedMetadataObject".
16
+ */
17
+ @DoNotStrip
18
+ @Keep
19
+ data class TimedMetadataObject(
20
+ @DoNotStrip
21
+ @Keep
22
+ val value: String,
23
+ @DoNotStrip
24
+ @Keep
25
+ val identifier: String
26
+ ) {
27
+ /* primary constructor */
28
+
29
+ private companion object {
30
+ /**
31
+ * Constructor called from C++
32
+ */
33
+ @DoNotStrip
34
+ @Keep
35
+ @Suppress("unused")
36
+ @JvmStatic
37
+ private fun fromCpp(value: String, identifier: String): TimedMetadataObject {
38
+ return TimedMetadataObject(value, identifier)
39
+ }
40
+ }
41
+ }
@@ -0,0 +1,22 @@
1
+ ///
2
+ /// TrackType.kt
3
+ /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
+ /// https://github.com/mrousavy/nitro
5
+ /// Copyright © 2025 Marc Rousavy @ Margelo
6
+ ///
7
+
8
+ package com.margelo.nitro.video
9
+
10
+ import androidx.annotation.Keep
11
+ import com.facebook.proguard.annotations.DoNotStrip
12
+
13
+ /**
14
+ * Represents the JavaScript enum/union "TrackType".
15
+ */
16
+ @DoNotStrip
17
+ @Keep
18
+ enum class TrackType(@DoNotStrip @Keep val value: Int) {
19
+ AUDIO(1),
20
+ VIDEO(2),
21
+ TEXT(3);
22
+ }
@@ -0,0 +1,59 @@
1
+ ///
2
+ /// Variant_NullType_HybridVideoPlayerSourceSpec.kt
3
+ /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
+ /// https://github.com/mrousavy/nitro
5
+ /// Copyright © 2025 Marc Rousavy @ Margelo
6
+ ///
7
+
8
+ package com.margelo.nitro.video
9
+
10
+ import com.facebook.proguard.annotations.DoNotStrip
11
+ import com.margelo.nitro.core.NullType
12
+
13
+ /**
14
+ * Represents the TypeScript variant "NullType | HybridVideoPlayerSourceSpec".
15
+ */
16
+ @Suppress("ClassName")
17
+ @DoNotStrip
18
+ sealed class Variant_NullType_HybridVideoPlayerSourceSpec {
19
+ @DoNotStrip
20
+ data class First(@DoNotStrip val value: NullType): Variant_NullType_HybridVideoPlayerSourceSpec()
21
+ @DoNotStrip
22
+ data class Second(@DoNotStrip val value: HybridVideoPlayerSourceSpec): Variant_NullType_HybridVideoPlayerSourceSpec()
23
+
24
+ @Deprecated("getAs() is not type-safe. Use fold/asFirstOrNull/asSecondOrNull instead.", level = DeprecationLevel.ERROR)
25
+ inline fun <reified T> getAs(): T? = when (this) {
26
+ is First -> value as? T
27
+ is Second -> value as? T
28
+ }
29
+
30
+ val isFirst: Boolean
31
+ get() = this is First
32
+ val isSecond: Boolean
33
+ get() = this is Second
34
+
35
+ fun asFirstOrNull(): NullType? {
36
+ val value = (this as? First)?.value ?: return null
37
+ return value
38
+ }
39
+ fun asSecondOrNull(): HybridVideoPlayerSourceSpec? {
40
+ val value = (this as? Second)?.value ?: return null
41
+ return value
42
+ }
43
+
44
+ inline fun <R> match(first: (NullType) -> R, second: (HybridVideoPlayerSourceSpec) -> R): R {
45
+ return when (this) {
46
+ is First -> first(value)
47
+ is Second -> second(value)
48
+ }
49
+ }
50
+
51
+ companion object {
52
+ @JvmStatic
53
+ @DoNotStrip
54
+ fun create(value: NullType): Variant_NullType_HybridVideoPlayerSourceSpec = First(value)
55
+ @JvmStatic
56
+ @DoNotStrip
57
+ fun create(value: HybridVideoPlayerSourceSpec): Variant_NullType_HybridVideoPlayerSourceSpec = Second(value)
58
+ }
59
+ }
@@ -0,0 +1,59 @@
1
+ ///
2
+ /// VideoInformation.kt
3
+ /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
+ /// https://github.com/mrousavy/nitro
5
+ /// Copyright © 2025 Marc Rousavy @ Margelo
6
+ ///
7
+
8
+ package com.margelo.nitro.video
9
+
10
+ import androidx.annotation.Keep
11
+ import com.facebook.proguard.annotations.DoNotStrip
12
+
13
+
14
+ /**
15
+ * Represents the JavaScript object/struct "VideoInformation".
16
+ */
17
+ @DoNotStrip
18
+ @Keep
19
+ data class VideoInformation(
20
+ @DoNotStrip
21
+ @Keep
22
+ val bitrate: Double,
23
+ @DoNotStrip
24
+ @Keep
25
+ val width: Double,
26
+ @DoNotStrip
27
+ @Keep
28
+ val height: Double,
29
+ @DoNotStrip
30
+ @Keep
31
+ val duration: Long,
32
+ @DoNotStrip
33
+ @Keep
34
+ val fileSize: Long,
35
+ @DoNotStrip
36
+ @Keep
37
+ val isHDR: Boolean,
38
+ @DoNotStrip
39
+ @Keep
40
+ val isLive: Boolean,
41
+ @DoNotStrip
42
+ @Keep
43
+ val orientation: VideoOrientation
44
+ ) {
45
+ /* primary constructor */
46
+
47
+ private companion object {
48
+ /**
49
+ * Constructor called from C++
50
+ */
51
+ @DoNotStrip
52
+ @Keep
53
+ @Suppress("unused")
54
+ @JvmStatic
55
+ private fun fromCpp(bitrate: Double, width: Double, height: Double, duration: Long, fileSize: Long, isHDR: Boolean, isLive: Boolean, orientation: VideoOrientation): VideoInformation {
56
+ return VideoInformation(bitrate, width, height, duration, fileSize, isHDR, isLive, orientation)
57
+ }
58
+ }
59
+ }
@@ -0,0 +1,26 @@
1
+ ///
2
+ /// VideoOrientation.kt
3
+ /// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
4
+ /// https://github.com/mrousavy/nitro
5
+ /// Copyright © 2025 Marc Rousavy @ Margelo
6
+ ///
7
+
8
+ package com.margelo.nitro.video
9
+
10
+ import androidx.annotation.Keep
11
+ import com.facebook.proguard.annotations.DoNotStrip
12
+
13
+ /**
14
+ * Represents the JavaScript enum/union "VideoOrientation".
15
+ */
16
+ @DoNotStrip
17
+ @Keep
18
+ enum class VideoOrientation(@DoNotStrip @Keep val value: Int) {
19
+ PORTRAIT(0),
20
+ LANDSCAPE(1),
21
+ PORTRAIT_UPSIDE_DOWN(2),
22
+ LANDSCAPE_LEFT(3),
23
+ LANDSCAPE_RIGHT(4),
24
+ SQUARE(5),
25
+ UNKNOWN(6);
26
+ }