remotion 4.0.0-webhook.27 → 4.1.0-alpha1

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 (283) hide show
  1. package/LICENSE.md +8 -8
  2. package/README.md +7 -7
  3. package/dist/{AbsoluteFill.d.ts → cjs/AbsoluteFill.d.ts} +2 -2
  4. package/dist/{AbsoluteFill.js → cjs/AbsoluteFill.js} +2 -2
  5. package/dist/cjs/AssetManager.d.ts +11 -0
  6. package/dist/cjs/AssetManager.js +40 -0
  7. package/dist/{CanUseRemotionHooks.d.ts → cjs/CanUseRemotionHooks.d.ts} +0 -0
  8. package/dist/{CanUseRemotionHooks.js → cjs/CanUseRemotionHooks.js} +0 -0
  9. package/dist/cjs/Clipper.d.ts +7 -0
  10. package/dist/cjs/Clipper.js +24 -0
  11. package/dist/cjs/Composition.d.ts +41 -0
  12. package/dist/cjs/Composition.js +132 -0
  13. package/dist/cjs/CompositionManager.d.ts +75 -0
  14. package/dist/{CompositionManager.js → cjs/CompositionManager.js} +29 -66
  15. package/dist/cjs/CompositionManagerContext.d.ts +18 -0
  16. package/dist/cjs/CompositionManagerContext.js +16 -0
  17. package/dist/cjs/EditorProps.d.ts +15 -0
  18. package/dist/cjs/EditorProps.js +53 -0
  19. package/dist/{Folder.d.ts → cjs/Folder.d.ts} +6 -2
  20. package/dist/{Folder.js → cjs/Folder.js} +10 -6
  21. package/dist/{IFrame.d.ts → cjs/IFrame.d.ts} +4 -0
  22. package/dist/{IFrame.js → cjs/IFrame.js} +8 -4
  23. package/dist/cjs/Img.d.ts +9 -0
  24. package/dist/cjs/Img.js +100 -0
  25. package/dist/cjs/NativeLayers.d.ts +13 -0
  26. package/dist/cjs/NativeLayers.js +29 -0
  27. package/dist/cjs/Null.d.ts +2 -0
  28. package/dist/cjs/Null.js +25 -0
  29. package/dist/{RemotionRoot.d.ts → cjs/RemotionRoot.d.ts} +1 -0
  30. package/dist/cjs/RemotionRoot.js +72 -0
  31. package/dist/cjs/ResolveCompositionConfig.d.ts +24 -0
  32. package/dist/cjs/ResolveCompositionConfig.js +192 -0
  33. package/dist/cjs/Sequence.d.ts +22 -0
  34. package/dist/{Sequence.js → cjs/Sequence.js} +27 -29
  35. package/dist/cjs/SequenceContext.d.ts +9 -0
  36. package/dist/cjs/SequenceContext.js +5 -0
  37. package/dist/cjs/SequenceManager.d.ts +11 -0
  38. package/dist/cjs/SequenceManager.js +57 -0
  39. package/dist/cjs/Still.d.ts +8 -0
  40. package/dist/cjs/Still.js +22 -0
  41. package/dist/{absolute-src.d.ts → cjs/absolute-src.d.ts} +0 -0
  42. package/dist/{absolute-src.js → cjs/absolute-src.js} +0 -0
  43. package/dist/{asset-types.d.ts → cjs/asset-types.d.ts} +0 -0
  44. package/dist/{asset-types.js → cjs/asset-types.js} +0 -0
  45. package/dist/{audio → cjs/audio}/Audio.d.ts +10 -4
  46. package/dist/cjs/audio/Audio.js +58 -0
  47. package/dist/cjs/audio/AudioForDevelopment.d.ts +11 -0
  48. package/dist/cjs/audio/AudioForDevelopment.js +101 -0
  49. package/dist/cjs/audio/AudioForRendering.d.ts +10 -0
  50. package/dist/cjs/audio/AudioForRendering.js +111 -0
  51. package/dist/cjs/audio/index.d.ts +2 -0
  52. package/dist/{audio → cjs/audio}/index.js +2 -2
  53. package/dist/cjs/audio/props.d.ts +12 -0
  54. package/dist/{audio → cjs/audio}/props.js +0 -0
  55. package/dist/{audio → cjs/audio}/shared-audio-tags.d.ts +10 -4
  56. package/dist/{audio → cjs/audio}/shared-audio-tags.js +35 -13
  57. package/dist/{audio → cjs/audio}/use-audio-frame.d.ts +0 -0
  58. package/dist/{audio → cjs/audio}/use-audio-frame.js +4 -4
  59. package/dist/{bezier.d.ts → cjs/bezier.d.ts} +0 -0
  60. package/dist/{bezier.js → cjs/bezier.js} +0 -0
  61. package/dist/cjs/cancel-render.d.ts +5 -0
  62. package/dist/cjs/cancel-render.js +47 -0
  63. package/dist/{config → cjs/config}/input-props.d.ts +0 -0
  64. package/dist/{config → cjs/config}/input-props.js +3 -3
  65. package/dist/{default-css.d.ts → cjs/default-css.d.ts} +0 -0
  66. package/dist/{default-css.js → cjs/default-css.js} +0 -0
  67. package/dist/{delay-render.d.ts → cjs/delay-render.d.ts} +4 -4
  68. package/dist/{delay-render.js → cjs/delay-render.js} +12 -12
  69. package/dist/{easing.d.ts → cjs/easing.d.ts} +4 -0
  70. package/dist/{easing.js → cjs/easing.js} +6 -2
  71. package/dist/cjs/freeze.d.ts +11 -0
  72. package/dist/{freeze.js → cjs/freeze.js} +8 -4
  73. package/dist/{get-asset-file-name.d.ts → cjs/get-asset-file-name.d.ts} +0 -0
  74. package/dist/{get-asset-file-name.js → cjs/get-asset-file-name.js} +0 -0
  75. package/dist/cjs/get-environment.d.ts +3 -0
  76. package/dist/{get-environment.js → cjs/get-environment.js} +14 -2
  77. package/dist/cjs/get-preview-dom-element.d.ts +2 -0
  78. package/dist/cjs/get-preview-dom-element.js +8 -0
  79. package/dist/cjs/get-static-files.d.ts +21 -0
  80. package/dist/cjs/get-static-files.js +35 -0
  81. package/dist/{get-timeline-clip-name.d.ts → cjs/get-timeline-clip-name.d.ts} +0 -0
  82. package/dist/{get-timeline-clip-name.js → cjs/get-timeline-clip-name.js} +0 -0
  83. package/dist/cjs/index.d.ts +102 -0
  84. package/dist/cjs/index.js +105 -0
  85. package/dist/cjs/internals.d.ts +131 -0
  86. package/dist/cjs/internals.js +120 -0
  87. package/dist/{interpolate-colors.d.ts → cjs/interpolate-colors.d.ts} +5 -0
  88. package/dist/{interpolate-colors.js → cjs/interpolate-colors.js} +10 -10
  89. package/dist/{interpolate.d.ts → cjs/interpolate.d.ts} +11 -7
  90. package/dist/{interpolate.js → cjs/interpolate.js} +0 -0
  91. package/dist/{is-approximately-the-same.d.ts → cjs/is-approximately-the-same.d.ts} +0 -0
  92. package/dist/{is-approximately-the-same.js → cjs/is-approximately-the-same.js} +0 -0
  93. package/dist/cjs/is-player.d.ts +3 -0
  94. package/dist/cjs/is-player.js +14 -0
  95. package/dist/{loading-indicator.d.ts → cjs/loading-indicator.d.ts} +0 -0
  96. package/dist/{loading-indicator.js → cjs/loading-indicator.js} +4 -4
  97. package/dist/cjs/loop/index.d.ts +13 -0
  98. package/dist/cjs/loop/index.js +46 -0
  99. package/dist/{multiple-versions-warning.d.ts → cjs/multiple-versions-warning.d.ts} +0 -0
  100. package/dist/{multiple-versions-warning.js → cjs/multiple-versions-warning.js} +11 -6
  101. package/dist/{nonce.d.ts → cjs/nonce.d.ts} +1 -1
  102. package/dist/{nonce.js → cjs/nonce.js} +6 -0
  103. package/dist/{play-and-handle-not-allowed-error.d.ts → cjs/play-and-handle-not-allowed-error.d.ts} +0 -0
  104. package/dist/{play-and-handle-not-allowed-error.js → cjs/play-and-handle-not-allowed-error.js} +4 -0
  105. package/dist/{portal-node.d.ts → cjs/portal-node.d.ts} +0 -0
  106. package/dist/{portal-node.js → cjs/portal-node.js} +0 -0
  107. package/dist/cjs/prefetch-state.d.ts +8 -0
  108. package/dist/cjs/prefetch-state.js +27 -0
  109. package/dist/cjs/prefetch.d.ts +13 -0
  110. package/dist/{prefetch.js → cjs/prefetch.js} +43 -17
  111. package/dist/cjs/props-if-has-props.d.ts +10 -0
  112. package/dist/{video-config.js → cjs/props-if-has-props.js} +0 -0
  113. package/dist/cjs/random.d.ts +6 -0
  114. package/dist/{random.js → cjs/random.js} +3 -3
  115. package/dist/{register-root.d.ts → cjs/register-root.d.ts} +4 -0
  116. package/dist/{register-root.js → cjs/register-root.js} +4 -0
  117. package/dist/cjs/resolve-video-config.d.ts +8 -0
  118. package/dist/cjs/resolve-video-config.js +89 -0
  119. package/dist/cjs/series/flatten-children.d.ts +2 -0
  120. package/dist/{series → cjs/series}/flatten-children.js +0 -0
  121. package/dist/cjs/series/index.d.ts +17 -0
  122. package/dist/{series → cjs/series}/index.js +22 -8
  123. package/dist/cjs/setup-env-variables.d.ts +1 -0
  124. package/dist/{setup-env-variables.js → cjs/setup-env-variables.js} +7 -9
  125. package/dist/{spring → cjs/spring}/index.d.ts +10 -6
  126. package/dist/cjs/spring/index.js +75 -0
  127. package/dist/cjs/spring/measure-spring.d.ts +12 -0
  128. package/dist/{spring → cjs/spring}/measure-spring.js +8 -4
  129. package/dist/{spring → cjs/spring}/spring-utils.d.ts +2 -2
  130. package/dist/{spring → cjs/spring}/spring-utils.js +0 -0
  131. package/dist/cjs/static-file.d.ts +33 -0
  132. package/dist/cjs/static-file.js +87 -0
  133. package/dist/{timeline-position-state.d.ts → cjs/timeline-position-state.d.ts} +4 -4
  134. package/dist/{timeline-position-state.js → cjs/timeline-position-state.js} +9 -1
  135. package/dist/cjs/truthy.d.ts +3 -0
  136. package/dist/{truthy.js → cjs/truthy.js} +0 -0
  137. package/dist/cjs/use-current-frame.d.ts +5 -0
  138. package/dist/{use-current-frame.js → cjs/use-current-frame.js} +8 -9
  139. package/dist/cjs/use-lazy-component.d.ts +7 -0
  140. package/dist/{use-lazy-component.js → cjs/use-lazy-component.js} +0 -0
  141. package/dist/{use-media-in-timeline.d.ts → cjs/use-media-in-timeline.d.ts} +3 -2
  142. package/dist/{use-media-in-timeline.js → cjs/use-media-in-timeline.js} +29 -25
  143. package/dist/{use-media-playback.d.ts → cjs/use-media-playback.d.ts} +3 -1
  144. package/dist/cjs/use-media-playback.js +86 -0
  145. package/dist/{use-media-tag-volume.d.ts → cjs/use-media-tag-volume.d.ts} +0 -0
  146. package/dist/{use-media-tag-volume.js → cjs/use-media-tag-volume.js} +0 -0
  147. package/dist/{use-sync-volume-with-media-tag.d.ts → cjs/use-sync-volume-with-media-tag.d.ts} +2 -2
  148. package/dist/{use-sync-volume-with-media-tag.js → cjs/use-sync-volume-with-media-tag.js} +5 -4
  149. package/dist/{use-unsafe-video-config.d.ts → cjs/use-unsafe-video-config.d.ts} +1 -1
  150. package/dist/{use-unsafe-video-config.js → cjs/use-unsafe-video-config.js} +4 -4
  151. package/dist/cjs/use-video-config.d.ts +8 -0
  152. package/dist/cjs/use-video-config.js +34 -0
  153. package/dist/cjs/use-video.d.ts +7 -0
  154. package/dist/cjs/use-video.js +38 -0
  155. package/dist/cjs/validate-frame.d.ts +5 -0
  156. package/dist/cjs/validate-frame.js +24 -0
  157. package/dist/cjs/validate-media-props.d.ts +4 -0
  158. package/dist/{validate-media-props.js → cjs/validate-media-props.js} +0 -0
  159. package/dist/{validate-start-from-props.d.ts → cjs/validate-start-from-props.d.ts} +0 -0
  160. package/dist/{validate-start-from-props.js → cjs/validate-start-from-props.js} +0 -0
  161. package/dist/{validation → cjs/validation}/validate-composition-id.d.ts +0 -0
  162. package/dist/{validation → cjs/validation}/validate-composition-id.js +0 -0
  163. package/dist/cjs/validation/validate-default-props.d.ts +1 -0
  164. package/dist/cjs/validation/validate-default-props.js +15 -0
  165. package/dist/{validation → cjs/validation}/validate-dimensions.d.ts +0 -0
  166. package/dist/{validation → cjs/validation}/validate-dimensions.js +0 -0
  167. package/dist/cjs/validation/validate-duration-in-frames.d.ts +5 -0
  168. package/dist/{validation → cjs/validation}/validate-duration-in-frames.js +5 -2
  169. package/dist/{validation → cjs/validation}/validate-folder-name.d.ts +0 -0
  170. package/dist/{validation → cjs/validation}/validate-folder-name.js +0 -0
  171. package/dist/{validation → cjs/validation}/validate-fps.d.ts +0 -0
  172. package/dist/{validation → cjs/validation}/validate-fps.js +0 -0
  173. package/dist/{validation → cjs/validation}/validation-spring-duration.d.ts +0 -0
  174. package/dist/{validation → cjs/validation}/validation-spring-duration.js +0 -0
  175. package/dist/cjs/version.d.ts +1 -0
  176. package/dist/{version.js → cjs/version.js} +1 -1
  177. package/dist/cjs/video/OffthreadVideo.d.ts +7 -0
  178. package/dist/cjs/video/OffthreadVideo.js +38 -0
  179. package/dist/{video → cjs/video}/OffthreadVideoForRendering.d.ts +1 -1
  180. package/dist/cjs/video/OffthreadVideoForRendering.js +103 -0
  181. package/dist/cjs/video/Video.d.ts +12 -0
  182. package/dist/cjs/video/Video.js +55 -0
  183. package/dist/{video → cjs/video}/VideoForDevelopment.d.ts +5 -2
  184. package/dist/cjs/video/VideoForDevelopment.js +117 -0
  185. package/dist/cjs/video/VideoForRendering.d.ts +10 -0
  186. package/dist/cjs/video/VideoForRendering.js +208 -0
  187. package/dist/cjs/video/duration-state.d.ts +17 -0
  188. package/dist/cjs/video/duration-state.js +35 -0
  189. package/dist/{video → cjs/video}/get-current-time.d.ts +0 -0
  190. package/dist/{video → cjs/video}/get-current-time.js +12 -11
  191. package/dist/cjs/video/index.d.ts +3 -0
  192. package/dist/{video → cjs/video}/index.js +4 -4
  193. package/dist/cjs/video/props.d.ts +32 -0
  194. package/dist/cjs/video/props.js +2 -0
  195. package/dist/cjs/video/video-fragment.d.ts +12 -0
  196. package/dist/cjs/video/video-fragment.js +60 -0
  197. package/dist/{video-config.d.ts → cjs/video-config.d.ts} +2 -2
  198. package/dist/{video/props.js → cjs/video-config.js} +0 -0
  199. package/dist/{volume-position-state.d.ts → cjs/volume-position-state.d.ts} +4 -4
  200. package/dist/{volume-position-state.js → cjs/volume-position-state.js} +0 -0
  201. package/dist/{volume-prop.d.ts → cjs/volume-prop.d.ts} +3 -2
  202. package/dist/{volume-prop.js → cjs/volume-prop.js} +4 -3
  203. package/dist/{warn-about-non-seekable-media.d.ts → cjs/warn-about-non-seekable-media.d.ts} +0 -0
  204. package/dist/{warn-about-non-seekable-media.js → cjs/warn-about-non-seekable-media.js} +2 -2
  205. package/dist/cjs/wrap-remotion-context.d.ts +31 -0
  206. package/dist/cjs/wrap-remotion-context.js +85 -0
  207. package/dist/esm/index.mjs +4623 -0
  208. package/dist/esm/version.mjs +4 -0
  209. package/package.json +80 -57
  210. package/version.js +2 -1
  211. package/.prettierrc.js +0 -14
  212. package/.turbo/turbo-build.log +0 -5
  213. package/dist/Composition.d.ts +0 -22
  214. package/dist/Composition.js +0 -98
  215. package/dist/CompositionManager.d.ts +0 -79
  216. package/dist/Img.d.ts +0 -2
  217. package/dist/Img.js +0 -51
  218. package/dist/RemotionRoot.js +0 -71
  219. package/dist/Sequence.d.ts +0 -29
  220. package/dist/Still.d.ts +0 -3
  221. package/dist/Still.js +0 -9
  222. package/dist/audio/Audio.js +0 -32
  223. package/dist/audio/AudioForDevelopment.d.ts +0 -8
  224. package/dist/audio/AudioForDevelopment.js +0 -71
  225. package/dist/audio/AudioForRendering.d.ts +0 -6
  226. package/dist/audio/AudioForRendering.js +0 -75
  227. package/dist/audio/index.d.ts +0 -2
  228. package/dist/audio/props.d.ts +0 -10
  229. package/dist/config.d.ts +0 -218
  230. package/dist/config.js +0 -21
  231. package/dist/freeze.d.ts +0 -7
  232. package/dist/get-environment.d.ts +0 -2
  233. package/dist/get-preview-dom-element.d.ts +0 -1
  234. package/dist/get-preview-dom-element.js +0 -7
  235. package/dist/index.d.ts +0 -72
  236. package/dist/index.js +0 -58
  237. package/dist/internals.d.ts +0 -88
  238. package/dist/internals.js +0 -93
  239. package/dist/loop/index.d.ts +0 -9
  240. package/dist/loop/index.js +0 -28
  241. package/dist/prefetch-state.d.ts +0 -13
  242. package/dist/prefetch-state.js +0 -26
  243. package/dist/prefetch.d.ts +0 -7
  244. package/dist/random.d.ts +0 -6
  245. package/dist/series/flatten-children.d.ts +0 -2
  246. package/dist/series/index.d.ts +0 -13
  247. package/dist/setup-env-variables.d.ts +0 -2
  248. package/dist/spring/index.js +0 -51
  249. package/dist/spring/measure-spring.d.ts +0 -8
  250. package/dist/static-file.d.ts +0 -1
  251. package/dist/static-file.js +0 -29
  252. package/dist/truthy.d.ts +0 -3
  253. package/dist/use-current-frame.d.ts +0 -6
  254. package/dist/use-lazy-component.d.ts +0 -7
  255. package/dist/use-media-playback.js +0 -75
  256. package/dist/use-video-config.d.ts +0 -7
  257. package/dist/use-video-config.js +0 -26
  258. package/dist/use-video.d.ts +0 -13
  259. package/dist/use-video.js +0 -28
  260. package/dist/validate-media-props.d.ts +0 -4
  261. package/dist/validation/validate-duration-in-frames.d.ts +0 -1
  262. package/dist/validation/validate-offthreadvideo-image-format.d.ts +0 -1
  263. package/dist/validation/validate-offthreadvideo-image-format.js +0 -15
  264. package/dist/version.d.ts +0 -1
  265. package/dist/video/LoopedVideo.d.ts +0 -3
  266. package/dist/video/LoopedVideo.js +0 -16
  267. package/dist/video/OffthreadVideo.d.ts +0 -3
  268. package/dist/video/OffthreadVideo.js +0 -27
  269. package/dist/video/OffthreadVideoForRendering.js +0 -101
  270. package/dist/video/Video.d.ts +0 -6
  271. package/dist/video/Video.js +0 -29
  272. package/dist/video/VideoForDevelopment.js +0 -69
  273. package/dist/video/VideoForRendering.d.ts +0 -6
  274. package/dist/video/VideoForRendering.js +0 -168
  275. package/dist/video/duration-state.d.ts +0 -8
  276. package/dist/video/duration-state.js +0 -15
  277. package/dist/video/index.d.ts +0 -3
  278. package/dist/video/props.d.ts +0 -21
  279. package/dist/wrap-remotion-context.d.ts +0 -14
  280. package/dist/wrap-remotion-context.js +0 -65
  281. package/ensure-correct-version.js +0 -24
  282. package/tsconfig.json +0 -12
  283. package/version.d.ts +0 -1
package/dist/internals.js DELETED
@@ -1,93 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
- Object.defineProperty(o, "default", { enumerable: true, value: v });
15
- }) : function(o, v) {
16
- o["default"] = v;
17
- });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
25
- Object.defineProperty(exports, "__esModule", { value: true });
26
- exports.Internals = void 0;
27
- const config_1 = require("./config");
28
- const shared_audio_tags_1 = require("./audio/shared-audio-tags");
29
- const CanUseRemotionHooks_1 = require("./CanUseRemotionHooks");
30
- const CompositionManager_1 = require("./CompositionManager");
31
- const CSSUtils = __importStar(require("./default-css"));
32
- const delay_render_1 = require("./delay-render");
33
- const get_environment_1 = require("./get-environment");
34
- const get_preview_dom_element_1 = require("./get-preview-dom-element");
35
- const portal_node_1 = require("./portal-node");
36
- const prefetch_state_1 = require("./prefetch-state");
37
- const register_root_1 = require("./register-root");
38
- const RemotionRoot_1 = require("./RemotionRoot");
39
- const Sequence_1 = require("./Sequence");
40
- const setup_env_variables_1 = require("./setup-env-variables");
41
- const TimelinePosition = __importStar(require("./timeline-position-state"));
42
- const truthy_1 = require("./truthy");
43
- const use_lazy_component_1 = require("./use-lazy-component");
44
- const use_unsafe_video_config_1 = require("./use-unsafe-video-config");
45
- const use_video_1 = require("./use-video");
46
- const validate_composition_id_1 = require("./validation/validate-composition-id");
47
- const validate_dimensions_1 = require("./validation/validate-dimensions");
48
- const validate_duration_in_frames_1 = require("./validation/validate-duration-in-frames");
49
- const validate_fps_1 = require("./validation/validate-fps");
50
- const validate_offthreadvideo_image_format_1 = require("./validation/validate-offthreadvideo-image-format");
51
- const volume_position_state_1 = require("./volume-position-state");
52
- const wrap_remotion_context_1 = require("./wrap-remotion-context");
53
- const Timeline = TimelinePosition;
54
- // Mark them as Internals so use don't assume this is public
55
- // API and are less likely to use it
56
- exports.Internals = {
57
- useUnsafeVideoConfig: use_unsafe_video_config_1.useUnsafeVideoConfig,
58
- Timeline,
59
- CompositionManager: CompositionManager_1.CompositionManager,
60
- RemotionRoot: RemotionRoot_1.RemotionRoot,
61
- useVideo: use_video_1.useVideo,
62
- getRoot: register_root_1.getRoot,
63
- useMediaVolumeState: volume_position_state_1.useMediaVolumeState,
64
- useMediaMutedState: volume_position_state_1.useMediaMutedState,
65
- useLazyComponent: use_lazy_component_1.useLazyComponent,
66
- truthy: truthy_1.truthy,
67
- SequenceContext: Sequence_1.SequenceContext,
68
- useRemotionContexts: wrap_remotion_context_1.useRemotionContexts,
69
- RemotionContextProvider: wrap_remotion_context_1.RemotionContextProvider,
70
- CSSUtils,
71
- setupEnvVariables: setup_env_variables_1.setupEnvVariables,
72
- ENV_VARIABLES_ENV_NAME: setup_env_variables_1.ENV_VARIABLES_ENV_NAME,
73
- MediaVolumeContext: volume_position_state_1.MediaVolumeContext,
74
- SetMediaVolumeContext: volume_position_state_1.SetMediaVolumeContext,
75
- validateDurationInFrames: validate_duration_in_frames_1.validateDurationInFrames,
76
- validateFps: validate_fps_1.validateFps,
77
- validateDimension: validate_dimensions_1.validateDimension,
78
- getRemotionEnvironment: get_environment_1.getRemotionEnvironment,
79
- SharedAudioContext: shared_audio_tags_1.SharedAudioContext,
80
- SharedAudioContextProvider: shared_audio_tags_1.SharedAudioContextProvider,
81
- invalidCompositionErrorMessage: validate_composition_id_1.invalidCompositionErrorMessage,
82
- isCompositionIdValid: validate_composition_id_1.isCompositionIdValid,
83
- getPreviewDomElement: get_preview_dom_element_1.getPreviewDomElement,
84
- compositionsRef: CompositionManager_1.compositionsRef,
85
- DELAY_RENDER_CALLSTACK_TOKEN: delay_render_1.DELAY_RENDER_CALLSTACK_TOKEN,
86
- portalNode: portal_node_1.portalNode,
87
- waitForRoot: register_root_1.waitForRoot,
88
- validateOffthreadVideoImageFormat: validate_offthreadvideo_image_format_1.validateOffthreadVideoImageFormat,
89
- CanUseRemotionHooksProvider: CanUseRemotionHooks_1.CanUseRemotionHooksProvider,
90
- CanUseRemotionHooks: CanUseRemotionHooks_1.CanUseRemotionHooks,
91
- enableLegacyRemotionConfig: config_1.enableLegacyRemotionConfig,
92
- PrefetchProvider: prefetch_state_1.PrefetchProvider,
93
- };
@@ -1,9 +0,0 @@
1
- import React from 'react';
2
- export declare type LoopProps = {
3
- durationInFrames: number;
4
- times?: number;
5
- layout?: 'absolute-fill' | 'none';
6
- name?: string;
7
- children: React.ReactNode;
8
- };
9
- export declare const Loop: React.FC<LoopProps>;
@@ -1,28 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Loop = void 0;
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const Sequence_1 = require("../Sequence");
6
- const use_video_config_1 = require("../use-video-config");
7
- const validate_duration_in_frames_1 = require("../validation/validate-duration-in-frames");
8
- const Loop = ({ durationInFrames, times = Infinity, children, layout, name, }) => {
9
- const { durationInFrames: compDuration } = (0, use_video_config_1.useVideoConfig)();
10
- (0, validate_duration_in_frames_1.validateDurationInFrames)(durationInFrames, 'of the <Loop /> component');
11
- if (typeof times !== 'number') {
12
- throw new TypeError(`You passed to "times" an argument of type ${typeof times}, but it must be a number.`);
13
- }
14
- if (times !== Infinity && times % 1 !== 0) {
15
- throw new TypeError(`The "times" prop of a loop must be an integer, but got ${times}.`);
16
- }
17
- if (times < 0) {
18
- throw new TypeError(`The "times" prop of a loop must be at least 0, but got ${times}`);
19
- }
20
- const maxTimes = Math.ceil(compDuration / durationInFrames);
21
- const actualTimes = Math.min(maxTimes, times);
22
- return ((0, jsx_runtime_1.jsx)(jsx_runtime_1.Fragment, { children: new Array(actualTimes).fill(true).map((_, i) => {
23
- return ((0, jsx_runtime_1.jsx)(Sequence_1.Sequence
24
- // eslint-disable-next-line react/no-array-index-key
25
- , { durationInFrames: durationInFrames, from: i * durationInFrames, layout: layout, name: name, showLoopTimesInTimeline: actualTimes, showInTimeline: i === 0, children: children }, `loop-${i}`));
26
- }) }));
27
- };
28
- exports.Loop = Loop;
@@ -1,13 +0,0 @@
1
- import React from 'react';
2
- declare type Value = {
3
- preloads: Record<string, string>;
4
- setPreloads: React.Dispatch<React.SetStateAction<Record<string, string>>>;
5
- };
6
- export declare const preloadRef: React.RefObject<{
7
- setPreloads: React.Dispatch<React.SetStateAction<Record<string, string>>>;
8
- }>;
9
- export declare const PreloadContext: React.Context<Value>;
10
- export declare const PrefetchProvider: React.FC<{
11
- children: React.ReactNode;
12
- }>;
13
- export {};
@@ -1,26 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.PrefetchProvider = exports.PreloadContext = exports.preloadRef = void 0;
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const react_1 = require("react");
6
- exports.preloadRef = (0, react_1.createRef)();
7
- exports.PreloadContext = (0, react_1.createContext)({
8
- preloads: {},
9
- setPreloads: () => undefined,
10
- });
11
- const PrefetchProvider = ({ children }) => {
12
- const [preloads, setPreloads] = (0, react_1.useState)({});
13
- const value = (0, react_1.useMemo)(() => {
14
- return {
15
- preloads,
16
- setPreloads,
17
- };
18
- }, [preloads]);
19
- (0, react_1.useImperativeHandle)(exports.preloadRef, () => {
20
- return {
21
- setPreloads,
22
- };
23
- }, []);
24
- return ((0, jsx_runtime_1.jsx)(exports.PreloadContext.Provider, { value: value, children: children }));
25
- };
26
- exports.PrefetchProvider = PrefetchProvider;
@@ -1,7 +0,0 @@
1
- export declare const usePreload: (src: string) => string;
2
- declare type FetchAndPreload = {
3
- free: () => void;
4
- waitUntilDone: () => Promise<string>;
5
- };
6
- export declare const prefetch: (src: string) => FetchAndPreload;
7
- export {};
package/dist/random.d.ts DELETED
@@ -1,6 +0,0 @@
1
- /**
2
- * A deterministic pseudo-random number generator.
3
- * Pass in the same seed and get the same pseudorandom number.
4
- * See: https://remotion.dev/docs/random
5
- */
6
- export declare const random: (seed: number | string | null, dummy?: unknown) => number;
@@ -1,2 +0,0 @@
1
- import React from 'react';
2
- export declare const flattenChildren: (children: React.ReactNode) => (React.ReactChild | React.ReactFragment | React.ReactPortal)[];
@@ -1,13 +0,0 @@
1
- import type { FC, PropsWithChildren } from 'react';
2
- import type { SequenceProps } from '../Sequence';
3
- declare type SeriesSequenceProps = PropsWithChildren<{
4
- durationInFrames: number;
5
- offset?: number;
6
- } & Pick<SequenceProps, 'layout' | 'name'>>;
7
- declare const SeriesSequence: ({ children }: SeriesSequenceProps) => JSX.Element;
8
- declare const Series: FC<{
9
- children: React.ReactNode;
10
- }> & {
11
- Sequence: typeof SeriesSequence;
12
- };
13
- export { Series };
@@ -1,2 +0,0 @@
1
- export declare const ENV_VARIABLES_ENV_NAME: "ENV_VARIABLES";
2
- export declare const setupEnvVariables: () => void;
@@ -1,51 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.measureSpring = exports.spring = void 0;
4
- const validation_spring_duration_1 = require("../validation/validation-spring-duration");
5
- const measure_spring_1 = require("./measure-spring");
6
- const spring_utils_1 = require("./spring-utils");
7
- /**
8
- * Calculates a position based on physical parameters, start and end value, and time.
9
- * @link https://www.remotion.dev/docs/spring
10
- * @param {number} frame The current time value. Most of the time you want to pass in the return value of useCurrentFrame.
11
- * @param {number} fps The framerate at which the animation runs. Pass in the value obtained by `useVideoConfig()`.
12
- * @param {?Object} config optional object that allows you to customize the physical properties of the animation.
13
- * @param {number} [config.mass=1] The weight of the spring. If you reduce the mass, the animation becomes faster!
14
- * @param {number} [config.damping=10] How hard the animation decelerates.
15
- * @param {number} [config.stiffness=100] Affects bounciness of the animation.
16
- * @param {boolean} [config.overshootClamping=false] Whether to prevent the animation going beyond the target value.
17
- * @param {?number} [config.from] The initial value of the animation. Default `0`
18
- * @param {?number} [config.to] The end value of the animation. Default `1`
19
- * @param {?number} [config.durationInFrames] Stretch the duration of an animation to a set value.. Default `undefined`
20
- * @param {?number} [config.durationThreshold] How close to the end the animation is considered to be done. Default `0.005`
21
- */
22
- function spring({ frame, fps, config = {}, from = 0, to = 1, durationInFrames, durationRestThreshold, }) {
23
- (0, validation_spring_duration_1.validateSpringDuration)(durationInFrames);
24
- const durationRatio = durationInFrames === undefined
25
- ? 1
26
- : durationInFrames /
27
- (0, measure_spring_1.measureSpring)({
28
- fps,
29
- config,
30
- from,
31
- to,
32
- threshold: durationRestThreshold,
33
- });
34
- const spr = (0, spring_utils_1.springCalculation)({
35
- fps,
36
- frame: frame / durationRatio,
37
- config,
38
- from,
39
- to,
40
- });
41
- if (!config.overshootClamping) {
42
- return spr.current;
43
- }
44
- if (to >= from) {
45
- return Math.min(spr.current, to);
46
- }
47
- return Math.max(spr.current, to);
48
- }
49
- exports.spring = spring;
50
- var measure_spring_2 = require("./measure-spring");
51
- Object.defineProperty(exports, "measureSpring", { enumerable: true, get: function () { return measure_spring_2.measureSpring; } });
@@ -1,8 +0,0 @@
1
- import type { SpringConfig } from './spring-utils';
2
- export declare function measureSpring({ fps, config, threshold, from, to, }: {
3
- fps: number;
4
- config?: Partial<SpringConfig>;
5
- threshold?: number;
6
- from?: number;
7
- to?: number;
8
- }): number;
@@ -1 +0,0 @@
1
- export declare const staticFile: (path: string) => string;
@@ -1,29 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.staticFile = void 0;
4
- const trimLeadingSlash = (path) => {
5
- if (path.startsWith('/')) {
6
- return trimLeadingSlash(path.substr(1));
7
- }
8
- return path;
9
- };
10
- const inner = (path) => {
11
- if (typeof window !== 'undefined' && window.remotion_staticBase) {
12
- return `${window.remotion_staticBase}/${trimLeadingSlash(path)}`;
13
- }
14
- return `/${trimLeadingSlash(path)}`;
15
- };
16
- const staticFile = (path) => {
17
- if (path.startsWith('http://') || path.startsWith('https://')) {
18
- throw new TypeError(`staticFile() does not support remote URLs - got "${path}". Instead, pass the URL without wrapping it in staticFile(). See: https://remotion.dev/docs/staticfile-remote-urls`);
19
- }
20
- if (path.startsWith('..') || path.startsWith('./')) {
21
- throw new TypeError(`staticFile() does not support relative paths - got "${path}". Instead, pass the name of a file that is inside the public/ folder. See: https://remotion.dev/docs/staticfile-relative-paths`);
22
- }
23
- const preparsed = inner(path);
24
- if (!preparsed.startsWith('/')) {
25
- return `/${preparsed}`;
26
- }
27
- return preparsed;
28
- };
29
- exports.staticFile = staticFile;
package/dist/truthy.d.ts DELETED
@@ -1,3 +0,0 @@
1
- declare type Truthy<T> = T extends false | '' | 0 | null | undefined ? never : T;
2
- export declare function truthy<T>(value: T): value is Truthy<T>;
3
- export {};
@@ -1,6 +0,0 @@
1
- /**
2
- * Get the current frame of the video.
3
- * Frames are 0-indexed, meaning the first frame is 0, the last frame is the duration of the composition in frames minus one.
4
- * @link https://www.remotion.dev/docs/use-current-frame
5
- */
6
- export declare const useCurrentFrame: () => number;
@@ -1,7 +0,0 @@
1
- import type { ComponentPropsWithRef, ComponentType, ExoticComponent } from 'react';
2
- import type { CompProps } from './internals';
3
- declare type LazyExoticComponent<T extends ComponentType<any>> = ExoticComponent<ComponentPropsWithRef<T>> & {
4
- readonly _result: T;
5
- };
6
- export declare const useLazyComponent: <T>(compProps: CompProps<T>) => LazyExoticComponent<ComponentType<T>>;
7
- export {};
@@ -1,75 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useMediaPlayback = void 0;
4
- const react_1 = require("react");
5
- const use_audio_frame_1 = require("./audio/use-audio-frame");
6
- const play_and_handle_not_allowed_error_1 = require("./play-and-handle-not-allowed-error");
7
- const timeline_position_state_1 = require("./timeline-position-state");
8
- const use_current_frame_1 = require("./use-current-frame");
9
- const use_video_config_1 = require("./use-video-config");
10
- const get_current_time_1 = require("./video/get-current-time");
11
- const warn_about_non_seekable_media_1 = require("./warn-about-non-seekable-media");
12
- const useMediaPlayback = ({ mediaRef, src, mediaType, playbackRate: localPlaybackRate, onlyWarnForMediaSeekingError, }) => {
13
- const { playbackRate: globalPlaybackRate } = (0, react_1.useContext)(timeline_position_state_1.TimelineContext);
14
- const frame = (0, use_current_frame_1.useCurrentFrame)();
15
- const absoluteFrame = (0, timeline_position_state_1.useTimelinePosition)();
16
- const [playing] = (0, timeline_position_state_1.usePlayingState)();
17
- const { fps } = (0, use_video_config_1.useVideoConfig)();
18
- const mediaStartsAt = (0, use_audio_frame_1.useMediaStartsAt)();
19
- const playbackRate = localPlaybackRate * globalPlaybackRate;
20
- (0, react_1.useEffect)(() => {
21
- var _a;
22
- if (!playing) {
23
- (_a = mediaRef.current) === null || _a === void 0 ? void 0 : _a.pause();
24
- }
25
- }, [mediaRef, mediaType, playing]);
26
- (0, react_1.useEffect)(() => {
27
- const tagName = mediaType === 'audio' ? '<Audio>' : '<Video>';
28
- if (!mediaRef.current) {
29
- throw new Error(`No ${mediaType} ref found`);
30
- }
31
- if (!src) {
32
- throw new Error(`No 'src' attribute was passed to the ${tagName} element.`);
33
- }
34
- mediaRef.current.playbackRate = Math.max(0, playbackRate);
35
- const shouldBeTime = (0, get_current_time_1.getMediaTime)({
36
- fps,
37
- frame,
38
- src,
39
- playbackRate: localPlaybackRate,
40
- startFrom: -mediaStartsAt,
41
- mediaType,
42
- });
43
- const isTime = mediaRef.current.currentTime;
44
- const timeShift = Math.abs(shouldBeTime - isTime);
45
- if (timeShift > 0.45 && !mediaRef.current.ended) {
46
- // If scrubbing around, adjust timing
47
- // or if time shift is bigger than 0.2sec
48
- mediaRef.current.currentTime = shouldBeTime;
49
- if (!onlyWarnForMediaSeekingError) {
50
- (0, warn_about_non_seekable_media_1.warnAboutNonSeekableMedia)(mediaRef.current, onlyWarnForMediaSeekingError ? 'console-warning' : 'console-error');
51
- }
52
- }
53
- if (!playing || absoluteFrame === 0) {
54
- mediaRef.current.currentTime = shouldBeTime;
55
- }
56
- if (mediaRef.current.paused && !mediaRef.current.ended && playing) {
57
- const { current } = mediaRef;
58
- current.currentTime = shouldBeTime;
59
- (0, play_and_handle_not_allowed_error_1.playAndHandleNotAllowedError)(mediaRef, mediaType);
60
- }
61
- }, [
62
- absoluteFrame,
63
- fps,
64
- playbackRate,
65
- frame,
66
- mediaRef,
67
- mediaType,
68
- playing,
69
- src,
70
- mediaStartsAt,
71
- localPlaybackRate,
72
- onlyWarnForMediaSeekingError,
73
- ]);
74
- };
75
- exports.useMediaPlayback = useMediaPlayback;
@@ -1,7 +0,0 @@
1
- import type { VideoConfig } from './video-config';
2
- /**
3
- * Get some info about the context of the video that you are making.
4
- * Returns an object containing `fps`, `width`, `height` and `durationInFrames`, all of type `number`.
5
- * @link https://www.remotion.dev/docs/use-video-config
6
- */
7
- export declare const useVideoConfig: () => VideoConfig;
@@ -1,26 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useVideoConfig = void 0;
4
- const react_1 = require("react");
5
- const CanUseRemotionHooks_1 = require("./CanUseRemotionHooks");
6
- const use_unsafe_video_config_1 = require("./use-unsafe-video-config");
7
- /**
8
- * Get some info about the context of the video that you are making.
9
- * Returns an object containing `fps`, `width`, `height` and `durationInFrames`, all of type `number`.
10
- * @link https://www.remotion.dev/docs/use-video-config
11
- */
12
- const useVideoConfig = () => {
13
- const videoConfig = (0, use_unsafe_video_config_1.useUnsafeVideoConfig)();
14
- const context = (0, react_1.useContext)(CanUseRemotionHooks_1.CanUseRemotionHooks);
15
- if (!videoConfig) {
16
- if (typeof window !== 'undefined' && window.remotion_isPlayer) {
17
- throw new Error('No video config found. You are probably calling useVideoConfig() from outside the component passed to <Player />. See https://www.remotion.dev/docs/player/examples for how to set up the Player correctly.');
18
- }
19
- throw new Error('No video config found. You are probably calling useVideoConfig() from a component which has not been registered as a <Composition />. See https://www.remotion.dev/docs/the-fundamentals#defining-compositions for more information.');
20
- }
21
- if (!context) {
22
- throw new Error('Called useVideoConfig() outside a Remotion composition.');
23
- }
24
- return videoConfig;
25
- };
26
- exports.useVideoConfig = useVideoConfig;
@@ -1,13 +0,0 @@
1
- /// <reference types="react" />
2
- export declare const useVideo: () => {
3
- height: number;
4
- width: number;
5
- fps: number;
6
- durationInFrames: number;
7
- defaultProps: unknown;
8
- id: string;
9
- folderName: string | null;
10
- parentFolderName: string | null;
11
- component: import("react").LazyExoticComponent<import("react").ComponentType<unknown>>;
12
- nonce: number;
13
- } | null;
package/dist/use-video.js DELETED
@@ -1,28 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.useVideo = void 0;
4
- const react_1 = require("react");
5
- const CompositionManager_1 = require("./CompositionManager");
6
- const useVideo = () => {
7
- const context = (0, react_1.useContext)(CompositionManager_1.CompositionManager);
8
- return (0, react_1.useMemo)(() => {
9
- var _a;
10
- const selected = context.compositions.find((c) => {
11
- return c.id === context.currentComposition;
12
- });
13
- if (selected) {
14
- return {
15
- ...selected,
16
- // We override the selected metadata with the metadata that was passed to renderMedia(),
17
- // and don't allow it to be changed during render anymore
18
- ...((_a = context.currentCompositionMetadata) !== null && _a !== void 0 ? _a : {}),
19
- };
20
- }
21
- return null;
22
- }, [
23
- context.compositions,
24
- context.currentComposition,
25
- context.currentCompositionMetadata,
26
- ]);
27
- };
28
- exports.useVideo = useVideo;
@@ -1,4 +0,0 @@
1
- import type { RemotionAudioProps } from './audio';
2
- import type { RemotionVideoProps } from './video';
3
- import type { OffthreadVideoProps } from './video/props';
4
- export declare const validateMediaProps: (props: RemotionVideoProps | RemotionAudioProps | OffthreadVideoProps, component: 'Video' | 'Audio') => void;
@@ -1 +0,0 @@
1
- export declare const validateDurationInFrames: (durationInFrames: number, component: string) => void;
@@ -1 +0,0 @@
1
- export declare const validateOffthreadVideoImageFormat: (input: unknown) => void;
@@ -1,15 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.validateOffthreadVideoImageFormat = void 0;
4
- const validateOffthreadVideoImageFormat = (input) => {
5
- if (typeof input === 'undefined') {
6
- return;
7
- }
8
- if (typeof input !== 'string') {
9
- throw new TypeError(`<OffthreadVideo imageFormat=""> must be a string, but got ${JSON.stringify(input)} instead.`);
10
- }
11
- if (input !== 'png' && input !== 'jpeg') {
12
- throw new TypeError(`<OffthreadVideo imageFormat=""> must be either "png" or "jpeg", but got ${input}`);
13
- }
14
- };
15
- exports.validateOffthreadVideoImageFormat = validateOffthreadVideoImageFormat;
package/dist/version.d.ts DELETED
@@ -1 +0,0 @@
1
- export declare const VERSION = "4.0.0-webhook.27+eb81308ee";
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import type { RemotionMainVideoProps, RemotionVideoProps } from './props';
3
- export declare const LoopedVideo: React.ForwardRefRenderFunction<HTMLVideoElement, RemotionVideoProps & RemotionMainVideoProps>;
@@ -1,16 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LoopedVideo = void 0;
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const react_1 = require("react");
6
- const delay_render_1 = require("../delay-render");
7
- const loop_1 = require("../loop");
8
- const Video_1 = require("./Video");
9
- const LoopedVideo = (props, ref) => {
10
- const [videoDuration, setVideoDuration] = (0, react_1.useState)(null);
11
- (0, react_1.useEffect)(() => {
12
- const newHandle = (0, delay_render_1.delayRender)('Loading <Img> with src=' + props.src);
13
- }, [props.src]);
14
- return ((0, jsx_runtime_1.jsx)(loop_1.Loop, { durationInFrames: Math.round(videoDuration * fps), children: (0, jsx_runtime_1.jsx)(Video_1.Video, { ...props, ref: ref, loop: false }) }));
15
- };
16
- exports.LoopedVideo = LoopedVideo;
@@ -1,3 +0,0 @@
1
- import React from 'react';
2
- import type { OffthreadVideoProps, RemotionMainVideoProps } from './props';
3
- export declare const OffthreadVideo: React.FC<OffthreadVideoProps & RemotionMainVideoProps>;
@@ -1,27 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.OffthreadVideo = void 0;
4
- const jsx_runtime_1 = require("react/jsx-runtime");
5
- const get_environment_1 = require("../get-environment");
6
- const Sequence_1 = require("../Sequence");
7
- const validate_media_props_1 = require("../validate-media-props");
8
- const validate_start_from_props_1 = require("../validate-start-from-props");
9
- const validate_offthreadvideo_image_format_1 = require("../validation/validate-offthreadvideo-image-format");
10
- const OffthreadVideoForRendering_1 = require("./OffthreadVideoForRendering");
11
- const VideoForDevelopment_1 = require("./VideoForDevelopment");
12
- const OffthreadVideo = (props) => {
13
- const { startFrom, endAt, ...otherProps } = props;
14
- if (typeof startFrom !== 'undefined' || typeof endAt !== 'undefined') {
15
- (0, validate_start_from_props_1.validateStartFromProps)(startFrom, endAt);
16
- const startFromFrameNo = startFrom !== null && startFrom !== void 0 ? startFrom : 0;
17
- const endAtFrameNo = endAt !== null && endAt !== void 0 ? endAt : Infinity;
18
- return ((0, jsx_runtime_1.jsx)(Sequence_1.Sequence, { layout: "none", from: 0 - startFromFrameNo, showInTimeline: false, durationInFrames: endAtFrameNo, children: (0, jsx_runtime_1.jsx)(exports.OffthreadVideo, { ...otherProps }) }));
19
- }
20
- (0, validate_media_props_1.validateMediaProps)(props, 'Video');
21
- (0, validate_offthreadvideo_image_format_1.validateOffthreadVideoImageFormat)(props.imageFormat);
22
- if ((0, get_environment_1.getRemotionEnvironment)() === 'rendering') {
23
- return (0, jsx_runtime_1.jsx)(OffthreadVideoForRendering_1.OffthreadVideoForRendering, { ...otherProps });
24
- }
25
- return (0, jsx_runtime_1.jsx)(VideoForDevelopment_1.VideoForDevelopment, { onlyWarnForMediaSeekingError: true, ...otherProps });
26
- };
27
- exports.OffthreadVideo = OffthreadVideo;