remotion 4.0.0-fastlambda.8 → 4.0.0-july8th.12

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 (268) hide show
  1. package/.turbo/turbo-build.log +5 -5
  2. package/README.md +1 -1
  3. package/dist/AbsoluteFill.d.ts +6 -1
  4. package/dist/AbsoluteFill.d.ts.map +1 -1
  5. package/dist/AbsoluteFill.js +5 -1
  6. package/dist/AbsoluteFill.js.map +1 -1
  7. package/dist/Composition.d.ts +3 -6
  8. package/dist/Composition.d.ts.map +1 -1
  9. package/dist/Composition.js +30 -27
  10. package/dist/Composition.js.map +1 -1
  11. package/dist/CompositionManager.d.ts +4 -6
  12. package/dist/CompositionManager.d.ts.map +1 -1
  13. package/dist/CompositionManager.js +6 -2
  14. package/dist/CompositionManager.js.map +1 -1
  15. package/dist/Folder.d.ts +15 -0
  16. package/dist/Folder.js +33 -0
  17. package/dist/IFrame.d.ts.map +1 -1
  18. package/dist/IFrame.js +1 -1
  19. package/dist/IFrame.js.map +1 -1
  20. package/dist/Img.d.ts.map +1 -1
  21. package/dist/Img.js +26 -21
  22. package/dist/Img.js.map +1 -1
  23. package/dist/RemotionRoot.d.ts.map +1 -1
  24. package/dist/RemotionRoot.js +1 -1
  25. package/dist/RemotionRoot.js.map +1 -1
  26. package/dist/Sequence.d.ts +25 -0
  27. package/dist/Sequence.js +127 -0
  28. package/dist/Still.d.ts +1 -2
  29. package/dist/Still.d.ts.map +1 -1
  30. package/dist/Still.js +1 -1
  31. package/dist/Still.js.map +1 -1
  32. package/dist/any-component.d.ts +4 -0
  33. package/dist/any-component.d.ts.map +1 -0
  34. package/dist/any-component.js +3 -0
  35. package/dist/any-component.js.map +1 -0
  36. package/dist/asset-types.d.ts +1 -4
  37. package/dist/asset-types.d.ts.map +1 -1
  38. package/dist/audio/Audio.d.ts +2 -2
  39. package/dist/audio/Audio.d.ts.map +1 -1
  40. package/dist/audio/Audio.js +4 -4
  41. package/dist/audio/Audio.js.map +1 -1
  42. package/dist/audio/AudioForDevelopment.d.ts +1 -1
  43. package/dist/audio/AudioForDevelopment.d.ts.map +1 -1
  44. package/dist/audio/AudioForDevelopment.js +2 -1
  45. package/dist/audio/AudioForDevelopment.js.map +1 -1
  46. package/dist/audio/AudioForRendering.d.ts +2 -2
  47. package/dist/audio/AudioForRendering.d.ts.map +1 -1
  48. package/dist/audio/AudioForRendering.js +6 -6
  49. package/dist/audio/AudioForRendering.js.map +1 -1
  50. package/dist/audio/index.js +5 -1
  51. package/dist/audio/props.d.ts +1 -1
  52. package/dist/audio/props.d.ts.map +1 -1
  53. package/dist/audio/shared-audio-tags.d.ts +1 -1
  54. package/dist/audio/shared-audio-tags.d.ts.map +1 -1
  55. package/dist/audio/shared-audio-tags.js +6 -2
  56. package/dist/audio/shared-audio-tags.js.map +1 -1
  57. package/dist/audio/use-audio-frame.js +4 -4
  58. package/dist/compress-assets.d.ts +1 -1
  59. package/dist/config/chromium-flags.d.ts +2 -2
  60. package/dist/config/codec.d.ts +1 -2
  61. package/dist/config/codec.d.ts.map +1 -1
  62. package/dist/config/codec.js +2 -3
  63. package/dist/config/codec.js.map +1 -1
  64. package/dist/config/crf.d.ts +1 -1
  65. package/dist/config/crf.d.ts.map +1 -1
  66. package/dist/config/crf.js.map +1 -1
  67. package/dist/config/ffmpeg-executable.d.ts +2 -0
  68. package/dist/config/ffmpeg-executable.js +10 -1
  69. package/dist/config/frame-range.js.map +1 -1
  70. package/dist/config/frames-per-lambda.d.ts +3 -0
  71. package/dist/config/frames-per-lambda.d.ts.map +1 -0
  72. package/dist/config/frames-per-lambda.js +13 -0
  73. package/dist/config/frames-per-lambda.js.map +1 -0
  74. package/dist/config/image-format.d.ts +1 -1
  75. package/dist/config/image-format.d.ts.map +1 -1
  76. package/dist/config/image-format.js.map +1 -1
  77. package/dist/config/image-sequence.d.ts +1 -1
  78. package/dist/config/index.d.ts +19 -14
  79. package/dist/config/index.d.ts.map +1 -1
  80. package/dist/config/index.js +7 -2
  81. package/dist/config/index.js.map +1 -1
  82. package/dist/config/input-props.d.ts.map +1 -1
  83. package/dist/config/input-props.js +12 -14
  84. package/dist/config/input-props.js.map +1 -1
  85. package/dist/config/log.d.ts +1 -1
  86. package/dist/config/log.d.ts.map +1 -1
  87. package/dist/config/log.js.map +1 -1
  88. package/dist/config/override-webpack.d.ts +2 -8
  89. package/dist/config/override-webpack.d.ts.map +1 -1
  90. package/dist/config/override-webpack.js.map +1 -1
  91. package/dist/config/overwrite.d.ts.map +1 -1
  92. package/dist/config/overwrite.js.map +1 -1
  93. package/dist/config/pixel-format.d.ts +1 -1
  94. package/dist/config/pixel-format.d.ts.map +1 -1
  95. package/dist/config/pixel-format.js.map +1 -1
  96. package/dist/config/prores-profile.d.ts +1 -1
  97. package/dist/config/quality.d.ts.map +1 -1
  98. package/dist/config/quality.js.map +1 -1
  99. package/dist/default-css.d.ts +1 -0
  100. package/dist/default-css.d.ts.map +1 -1
  101. package/dist/default-css.js +9 -2
  102. package/dist/default-css.js.map +1 -1
  103. package/dist/delay-render.d.ts +1 -1
  104. package/dist/freeze.d.ts +2 -2
  105. package/dist/freeze.d.ts.map +1 -1
  106. package/dist/freeze.js +2 -2
  107. package/dist/freeze.js.map +1 -1
  108. package/dist/get-asset-file-name.d.ts.map +1 -1
  109. package/dist/get-asset-file-name.js.map +1 -1
  110. package/dist/get-environment.d.ts.map +1 -1
  111. package/dist/get-environment.js.map +1 -1
  112. package/dist/get-timeline-clip-name.js.map +1 -1
  113. package/dist/index.d.ts +10 -6
  114. package/dist/index.d.ts.map +1 -1
  115. package/dist/index.js +13 -7
  116. package/dist/index.js.map +1 -1
  117. package/dist/initial-frame.d.ts +1 -0
  118. package/dist/initial-frame.js +1 -0
  119. package/dist/internals.d.ts +19 -18
  120. package/dist/internals.d.ts.map +1 -1
  121. package/dist/internals.js +15 -6
  122. package/dist/internals.js.map +1 -1
  123. package/dist/interpolate-colors.d.ts +5 -0
  124. package/dist/interpolate-colors.js +401 -0
  125. package/dist/interpolate.d.ts.map +1 -1
  126. package/dist/interpolate.js.map +1 -1
  127. package/dist/interpolateColors.d.ts.map +1 -1
  128. package/dist/interpolateColors.js.map +1 -1
  129. package/dist/is-audio-codec.d.ts +1 -1
  130. package/dist/is-remote-asset.d.ts +2 -0
  131. package/dist/is-remote-asset.d.ts.map +1 -0
  132. package/dist/is-remote-asset.js +6 -0
  133. package/dist/is-remote-asset.js.map +1 -0
  134. package/dist/loading-indicator.d.ts +2 -0
  135. package/dist/loading-indicator.js +35 -0
  136. package/dist/loop/index.d.ts.map +1 -1
  137. package/dist/loop/index.js +1 -1
  138. package/dist/loop/index.js.map +1 -1
  139. package/dist/perf/index.d.ts +1 -1
  140. package/dist/perf/index.js +2 -0
  141. package/dist/perf/index.js.map +1 -1
  142. package/dist/play-and-handle-not-allowed-error.d.ts +1 -1
  143. package/dist/portal-node.d.ts +1 -0
  144. package/dist/portal-node.js +23 -0
  145. package/dist/ready-manager.d.ts +3 -0
  146. package/dist/ready-manager.d.ts.map +1 -0
  147. package/dist/ready-manager.js +42 -0
  148. package/dist/ready-manager.js.map +1 -0
  149. package/dist/register-root.d.ts +2 -1
  150. package/dist/register-root.d.ts.map +1 -1
  151. package/dist/register-root.js +20 -5
  152. package/dist/register-root.js.map +1 -1
  153. package/dist/sequencing/index.d.ts.map +1 -1
  154. package/dist/sequencing/index.js +1 -1
  155. package/dist/sequencing/index.js.map +1 -1
  156. package/dist/series/index.d.ts +2 -2
  157. package/dist/series/index.d.ts.map +1 -1
  158. package/dist/series/index.js +4 -4
  159. package/dist/series/index.js.map +1 -1
  160. package/dist/setup-env-variables.d.ts.map +1 -1
  161. package/dist/setup-env-variables.js.map +1 -1
  162. package/dist/spring/index.d.ts +8 -4
  163. package/dist/spring/index.d.ts.map +1 -1
  164. package/dist/spring/index.js +21 -6
  165. package/dist/spring/index.js.map +1 -1
  166. package/dist/spring/measure-spring.d.ts +1 -1
  167. package/dist/spring/measure-spring.js.map +1 -1
  168. package/dist/timeline-inout-position-state.d.ts +1 -1
  169. package/dist/timeline-inout-position-state.d.ts.map +1 -1
  170. package/dist/timeline-inout-position-state.js.map +1 -1
  171. package/dist/timeline-position-state.d.ts +1 -1
  172. package/dist/timeline-position-state.d.ts.map +1 -1
  173. package/dist/timeline-position-state.js.map +1 -1
  174. package/dist/use-current-frame.d.ts +7 -0
  175. package/dist/use-current-frame.js +25 -0
  176. package/dist/use-frame.d.ts.map +1 -1
  177. package/dist/use-frame.js.map +1 -1
  178. package/dist/use-lazy-component.d.ts +3 -3
  179. package/dist/use-lazy-component.d.ts.map +1 -1
  180. package/dist/use-lazy-component.js +5 -1
  181. package/dist/use-lazy-component.js.map +1 -1
  182. package/dist/use-media-in-timeline.d.ts +2 -2
  183. package/dist/use-media-in-timeline.d.ts.map +1 -1
  184. package/dist/use-media-in-timeline.js +2 -2
  185. package/dist/use-media-in-timeline.js.map +1 -1
  186. package/dist/use-media-playback.d.ts +3 -2
  187. package/dist/use-media-playback.d.ts.map +1 -1
  188. package/dist/use-media-playback.js +8 -6
  189. package/dist/use-media-playback.js.map +1 -1
  190. package/dist/use-media-tag-volume.d.ts +1 -1
  191. package/dist/use-sync-volume-with-media-tag.d.ts +2 -2
  192. package/dist/use-unsafe-video-config.d.ts +1 -1
  193. package/dist/use-unsafe-video-config.d.ts.map +1 -1
  194. package/dist/use-unsafe-video-config.js +2 -2
  195. package/dist/use-unsafe-video-config.js.map +1 -1
  196. package/dist/use-video-config.d.ts +1 -1
  197. package/dist/use-video-config.d.ts.map +1 -1
  198. package/dist/use-video-config.js.map +1 -1
  199. package/dist/use-video.d.ts.map +1 -1
  200. package/dist/use-video.js.map +1 -1
  201. package/dist/validate-media-props.d.ts +4 -3
  202. package/dist/validation/validate-dimensions.d.ts.map +1 -1
  203. package/dist/validation/validate-dimensions.js.map +1 -1
  204. package/dist/validation/validate-duration-in-frames.d.ts.map +1 -1
  205. package/dist/validation/validate-duration-in-frames.js.map +1 -1
  206. package/dist/validation/validate-fps.d.ts.map +1 -1
  207. package/dist/validation/validate-fps.js.map +1 -1
  208. package/dist/validation/validate-image-format.d.ts +1 -1
  209. package/dist/validation/validate-offthreadvideo-image-format.d.ts +1 -0
  210. package/dist/validation/validate-offthreadvideo-image-format.js +15 -0
  211. package/dist/validation/validate-opengl-renderer.d.ts +1 -1
  212. package/dist/validation/validate-opengl-renderer.js +1 -1
  213. package/dist/validation/validation-spring-duration.d.ts +1 -0
  214. package/dist/validation/validation-spring-duration.js +21 -0
  215. package/dist/video/OffthreadVideo.d.ts +3 -0
  216. package/dist/video/OffthreadVideo.js +27 -0
  217. package/dist/video/OffthreadVideoForRendering.d.ts +3 -0
  218. package/dist/video/OffthreadVideoForRendering.js +95 -0
  219. package/dist/video/Video.d.ts +2 -2
  220. package/dist/video/Video.d.ts.map +1 -1
  221. package/dist/video/Video.js +4 -4
  222. package/dist/video/Video.js.map +1 -1
  223. package/dist/video/VideoForDevelopment.d.ts +6 -2
  224. package/dist/video/VideoForDevelopment.d.ts.map +1 -1
  225. package/dist/video/VideoForDevelopment.js +3 -2
  226. package/dist/video/VideoForDevelopment.js.map +1 -1
  227. package/dist/video/VideoForRendering.d.ts +2 -2
  228. package/dist/video/VideoForRendering.d.ts.map +1 -1
  229. package/dist/video/VideoForRendering.js +13 -7
  230. package/dist/video/VideoForRendering.js.map +1 -1
  231. package/dist/video/get-current-time.d.ts +5 -0
  232. package/dist/video/get-current-time.js +10 -2
  233. package/dist/video/index.d.ts +3 -2
  234. package/dist/video/index.js +5 -12
  235. package/dist/video/props.d.ts +13 -2
  236. package/dist/video/props.d.ts.map +1 -1
  237. package/dist/video-config.d.ts.map +1 -1
  238. package/dist/volume-prop.js +1 -1
  239. package/dist/warn-about-non-seekable-media.d.ts +1 -1
  240. package/dist/warn-about-non-seekable-media.js +14 -2
  241. package/dist/wrap-remotion-context.d.ts +1 -1
  242. package/dist/wrap-remotion-context.js +8 -4
  243. package/dist/wrap-remotion-context.js.map +1 -1
  244. package/package.json +4 -4
  245. package/.turbo/turbo-lint.log +0 -11
  246. package/.turbo/turbo-test.log +0 -78
  247. package/dist/compress-assets.d.ts.map +0 -1
  248. package/dist/compress-assets.js.map +0 -1
  249. package/dist/config/chromium-flags.d.ts.map +0 -1
  250. package/dist/config/chromium-flags.js.map +0 -1
  251. package/dist/config/scale.d.ts.map +0 -1
  252. package/dist/config/scale.js.map +0 -1
  253. package/dist/config/timeout.d.ts.map +0 -1
  254. package/dist/config/timeout.js.map +0 -1
  255. package/dist/delay-render.d.ts.map +0 -1
  256. package/dist/delay-render.js.map +0 -1
  257. package/dist/get-preview-dom-element.d.ts.map +0 -1
  258. package/dist/get-preview-dom-element.js.map +0 -1
  259. package/dist/play-and-handle-not-allowed-error.d.ts.map +0 -1
  260. package/dist/play-and-handle-not-allowed-error.js.map +0 -1
  261. package/dist/static-file.d.ts.map +0 -1
  262. package/dist/static-file.js.map +0 -1
  263. package/dist/timeout.d.ts.map +0 -1
  264. package/dist/timeout.js.map +0 -1
  265. package/dist/validation/validate-folder-name.d.ts.map +0 -1
  266. package/dist/validation/validate-folder-name.js.map +0 -1
  267. package/dist/validation/validate-opengl-renderer.d.ts.map +0 -1
  268. package/dist/validation/validate-opengl-renderer.js.map +0 -1
@@ -0,0 +1,25 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.useCurrentFrame = exports.useAbsoluteCurrentFrame = void 0;
4
+ const react_1 = require("react");
5
+ const Sequence_1 = require("./Sequence");
6
+ const timeline_position_state_1 = require("./timeline-position-state");
7
+ const useAbsoluteCurrentFrame = () => {
8
+ const timelinePosition = (0, timeline_position_state_1.useTimelinePosition)();
9
+ return timelinePosition;
10
+ };
11
+ exports.useAbsoluteCurrentFrame = useAbsoluteCurrentFrame;
12
+ /**
13
+ * Get the current frame of the video.
14
+ * Frames are 0-indexed, meaning the first frame is 0, the last frame is the duration of the composition in frames minus one.
15
+ * @link https://www.remotion.dev/docs/use-current-frame
16
+ */
17
+ const useCurrentFrame = () => {
18
+ const frame = (0, exports.useAbsoluteCurrentFrame)();
19
+ const context = (0, react_1.useContext)(Sequence_1.SequenceContext);
20
+ const contextOffset = context
21
+ ? context.cumulatedFrom + context.relativeFrom
22
+ : 0;
23
+ return frame - contextOffset;
24
+ };
25
+ exports.useCurrentFrame = useCurrentFrame;
@@ -1 +1 @@
1
- {"version":3,"file":"use-frame.d.ts","sourceRoot":"","sources":["../src/use-frame.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,uBAAuB,QAAO,MAI1C,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,eAAe,QAAO,MASlC,CAAC"}
1
+ {"version":3,"file":"use-frame.d.ts","sourceRoot":"","sources":["../src/use-frame.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,uBAAuB,QAAO,MAI1C,CAAC;AAEF,eAAO,MAAM,eAAe,QAAO,MASlC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-frame.js","sourceRoot":"","sources":["../src/use-frame.ts"],"names":[],"mappings":";;;AAAA,iCAAiC;AACjC,6CAA6C;AAC7C,uEAA8D;AAEvD,MAAM,uBAAuB,GAAG,GAAW,EAAE;IACnD,MAAM,gBAAgB,GAAG,IAAA,6CAAmB,GAAE,CAAC;IAE/C,OAAO,gBAAgB,CAAC;AACzB,CAAC,CAAC;AAJW,QAAA,uBAAuB,2BAIlC;AAEF;;;;GAIG;AACI,MAAM,eAAe,GAAG,GAAW,EAAE;IAC3C,MAAM,KAAK,GAAG,IAAA,+BAAuB,GAAE,CAAC;IACxC,MAAM,OAAO,GAAG,IAAA,kBAAU,EAAC,4BAAe,CAAC,CAAC;IAE5C,MAAM,aAAa,GAAG,OAAO;QAC5B,CAAC,CAAC,OAAO,CAAC,aAAa,GAAG,OAAO,CAAC,YAAY;QAC9C,CAAC,CAAC,CAAC,CAAC;IAEL,OAAO,KAAK,GAAG,aAAa,CAAC;AAC9B,CAAC,CAAC;AATW,QAAA,eAAe,mBAS1B"}
1
+ {"version":3,"file":"use-frame.js","sourceRoot":"","sources":["../src/use-frame.ts"],"names":[],"mappings":";;;AAAA,iCAAiC;AACjC,6CAA6C;AAC7C,uEAA8D;AAEvD,MAAM,uBAAuB,GAAG,GAAW,EAAE;IACnD,MAAM,gBAAgB,GAAG,IAAA,6CAAmB,GAAE,CAAC;IAE/C,OAAO,gBAAgB,CAAC;AACzB,CAAC,CAAC;AAJW,QAAA,uBAAuB,2BAIlC;AAEK,MAAM,eAAe,GAAG,GAAW,EAAE;IAC3C,MAAM,KAAK,GAAG,IAAA,+BAAuB,GAAE,CAAC;IACxC,MAAM,OAAO,GAAG,IAAA,kBAAU,EAAC,4BAAe,CAAC,CAAC;IAE5C,MAAM,aAAa,GAAG,OAAO;QAC5B,CAAC,CAAC,OAAO,CAAC,aAAa,GAAG,OAAO,CAAC,YAAY;QAC9C,CAAC,CAAC,CAAC,CAAC;IAEL,OAAO,KAAK,GAAG,aAAa,CAAC;AAC9B,CAAC,CAAC;AATW,QAAA,eAAe,mBAS1B"}
@@ -1,7 +1,7 @@
1
- import React, { ComponentPropsWithRef, ComponentType, ExoticComponent } from 'react';
2
- import { CompProps } from './internals';
1
+ import type { ComponentPropsWithRef, ComponentType, ExoticComponent } from 'react';
2
+ import type { CompProps } from './internals';
3
3
  declare type LazyExoticComponent<T extends ComponentType<any>> = ExoticComponent<ComponentPropsWithRef<T>> & {
4
4
  readonly _result: T;
5
5
  };
6
- export declare const useLazyComponent: <T>(compProps: CompProps<T>) => LazyExoticComponent<React.ComponentType<T>>;
6
+ export declare const useLazyComponent: <T>(compProps: CompProps<T>) => LazyExoticComponent<ComponentType<T>>;
7
7
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"use-lazy-component.d.ts","sourceRoot":"","sources":["../src/use-lazy-component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EACb,qBAAqB,EACrB,aAAa,EACb,eAAe,EAEf,MAAM,OAAO,CAAC;AACf,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AAEtC,aAAK,mBAAmB,CAAC,CAAC,SAAS,aAAa,CAAC,GAAG,CAAC,IAAI,eAAe,CACvE,qBAAqB,CAAC,CAAC,CAAC,CACxB,GAAG;IACH,QAAQ,CAAC,OAAO,EAAE,CAAC,CAAC;CACpB,CAAC;AAGF,eAAO,MAAM,gBAAgB,6EAkC5B,CAAC"}
1
+ {"version":3,"file":"use-lazy-component.d.ts","sourceRoot":"","sources":["../src/use-lazy-component.ts"],"names":[],"mappings":"AAAA,OAAO,KAAgB,MAAM,OAAO,CAAC;AACrC,OAAO,EAAC,iBAAiB,EAAC,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAC,SAAS,EAAC,MAAM,aAAa,CAAC;AAGtC,eAAO,MAAM,gBAAgB,iFAkC5B,CAAC"}
@@ -1,7 +1,11 @@
1
1
  "use strict";
2
2
  var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
3
  if (k2 === undefined) k2 = k;
4
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[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);
5
9
  }) : (function(o, m, k, k2) {
6
10
  if (k2 === undefined) k2 = k;
7
11
  o[k2] = m[k];
@@ -1 +1 @@
1
- {"version":3,"file":"use-lazy-component.js","sourceRoot":"","sources":["../src/use-lazy-component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAAA,+CAKe;AASf,0CAA0C;AACnC,MAAM,gBAAgB,GAAG,CAC/B,SAAuB,EACiB,EAAE;IAC1C,MAAM,IAAI,GAAG,IAAA,eAAO,EAAC,GAAG,EAAE;QACzB,IAAI,eAAe,IAAI,SAAS,EAAE;YACjC,OAAO,eAAK,CAAC,IAAI,CAChB,SAAS,CAAC,aAER,CACF,CAAC;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vE,mEAAmE;QACnE,0CAA0C;QAE1C,mBAAmB;QACnB,uDAAuD;IACxD,CAAC,EAAE,CAAC,SAAS,CAAC,SAAS,EAAE,SAAS,CAAC,aAAa,CAAC,CAAC,CAAC;IACnD,OAAO,IAAI,CAAC;AACb,CAAC,CAAC;AAlCW,QAAA,gBAAgB,oBAkC3B"}
@@ -1,5 +1,5 @@
1
- import { RefObject } from 'react';
2
- import { VolumeProp } from './volume-prop';
1
+ import type { RefObject } from 'react';
2
+ import type { VolumeProp } from './volume-prop';
3
3
  export declare const useMediaInTimeline: ({ volume, mediaVolume, mediaRef, src, mediaType, }: {
4
4
  volume: VolumeProp | undefined;
5
5
  mediaVolume: number;
@@ -1 +1 @@
1
- {"version":3,"file":"use-media-in-timeline.d.ts","sourceRoot":"","sources":["../src/use-media-in-timeline.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAA2C,MAAM,OAAO,CAAC;AAa1E,OAAO,EAAiB,UAAU,EAAC,MAAM,eAAe,CAAC;AAazD,eAAO,MAAM,kBAAkB;YAOtB,UAAU,GAAG,SAAS;iBACjB,MAAM;cACT,UAAU,gBAAgB,GAAG,gBAAgB,CAAC;SACnD,MAAM,GAAG,SAAS;eACZ,OAAO,GAAG,OAAO;UAmH5B,CAAC"}
1
+ {"version":3,"file":"use-media-in-timeline.d.ts","sourceRoot":"","sources":["../src/use-media-in-timeline.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAA2C,MAAM,OAAO,CAAC;AAQ1E,OAAO,EAAiB,UAAU,EAAC,MAAM,eAAe,CAAC;AAEzD,eAAO,MAAM,kBAAkB;YAOtB,UAAU,GAAG,SAAS;iBACjB,MAAM;cACT,UAAU,gBAAgB,GAAG,gBAAgB,CAAC;SACnD,MAAM,GAAG,SAAS;eACZ,OAAO,GAAG,OAAO;UAiF5B,CAAC"}
@@ -7,7 +7,7 @@ const CompositionManager_1 = require("./CompositionManager");
7
7
  const get_asset_file_name_1 = require("./get-asset-file-name");
8
8
  const nonce_1 = require("./nonce");
9
9
  const play_and_handle_not_allowed_error_1 = require("./play-and-handle-not-allowed-error");
10
- const sequencing_1 = require("./sequencing");
10
+ const Sequence_1 = require("./Sequence");
11
11
  const timeline_position_state_1 = require("./timeline-position-state");
12
12
  const use_video_config_1 = require("./use-video-config");
13
13
  const volume_prop_1 = require("./volume-prop");
@@ -22,7 +22,7 @@ const warnOnce = (message) => {
22
22
  const useMediaInTimeline = ({ volume, mediaVolume, mediaRef, src, mediaType, }) => {
23
23
  const videoConfig = (0, use_video_config_1.useVideoConfig)();
24
24
  const { rootId, audioAndVideoTags } = (0, react_1.useContext)(timeline_position_state_1.TimelineContext);
25
- const parentSequence = (0, react_1.useContext)(sequencing_1.SequenceContext);
25
+ const parentSequence = (0, react_1.useContext)(Sequence_1.SequenceContext);
26
26
  const actualFrom = parentSequence
27
27
  ? parentSequence.relativeFrom + parentSequence.cumulatedFrom
28
28
  : 0;
@@ -1 +1 @@
1
- {"version":3,"file":"use-media-in-timeline.js","sourceRoot":"","sources":["../src/use-media-in-timeline.ts"],"names":[],"mappings":";;;AAAA,iCAA0E;AAC1E,6DAAyD;AACzD,6DAAwD;AACxD,+DAA0D;AAC1D,mCAAiC;AACjC,2FAAiF;AACjF,6CAA6C;AAC7C,uEAImC;AACnC,yDAAkD;AAClD,+CAAyD;AAEzD,MAAM,OAAO,GAA6B,EAAE,CAAC;AAE7C,MAAM,QAAQ,GAAG,CAAC,OAAe,EAAE,EAAE;IACpC,IAAI,OAAO,CAAC,OAAO,CAAC,EAAE;QACrB,OAAO;KACP;IAED,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACtB,OAAO,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC;AACzB,CAAC,CAAC;AAEK,MAAM,kBAAkB,GAAG,CAAC,EAClC,MAAM,EACN,WAAW,EACX,QAAQ,EACR,GAAG,EACH,SAAS,GAOT,EAAE,EAAE;IACJ,MAAM,WAAW,GAAG,IAAA,iCA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GAAG,EAAE;YACX,kBAAkB,CAAC,EAAE,CAAC,CAAC;QACxB,CAAC,CAAC;IACH,CAAC,EAAE;QACF,UAAU;QACV,QAAQ;QACR,EAAE;QACF,cAAc;QACd,GAAG;QACH,gBAAgB;QAChB,MAAM;QACN,kBAAkB;QAClB,WAAW;QACX,OAAO;QACP,gBAAgB;QAChB,KAAK;QACL,QAAQ;QACR,SAAS;QACT,QAAQ;KACR,CAAC,CAAC;IAEH,IAAA,iBAAS,EAAC,GAAG,EAAE;QACd,MAAM,GAAG,GAAqB;YAC7B,EAAE;YACF,IAAI,EAAE,GAAG,EAAE;gBACV,IAAI,CAAC,OAAO,EAAE;oBACb,iDAAiD;oBACjD,OAAO;iBACP;gBAED,OAAO,IAAA,gEAA4B,EAAC,QAAQ,EAAE,SAAS,CAAC,CAAC;YAC1D,CAAC;SACD,CAAC;QACF,iBAAiB,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAEpC,OAAO,GAAG,EAAE;YACX,iBAAiB,CAAC,OAAO,GAAG,iBAAiB,CAAC,OAAO,CAAC,MAAM,CAC3D,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,CAClB,CAAC;QACH,CAAC,CAAC;IACH,CAAC,EAAE,CAAC,iBAAiB,EAAE,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC;AAC3D,CAAC,CAAC;AA9HW,QAAA,kBAAkB,sBA8H7B"}
1
+ {"version":3,"file":"use-media-in-timeline.js","sourceRoot":"","sources":["../src/use-media-in-timeline.ts"],"names":[],"mappings":";;;AAAA,iCAA0E;AAC1E,6DAAyD;AACzD,6DAAwD;AACxD,+DAAuD;AACvD,mCAAiC;AACjC,6CAA6C;AAC7C,uEAA0D;AAC1D,yDAAkD;AAClD,+CAAyD;AAElD,MAAM,kBAAkB,GAAG,CAAC,EAClC,MAAM,EACN,WAAW,EACX,QAAQ,EACR,GAAG,EACH,S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src, mediaType, playbackRate: localPlaybackRate, }: {
1
+ import type { RefObject } from 'react';
2
+ export declare const useMediaPlayback: ({ mediaRef, src, mediaType, playbackRate: localPlaybackRate, onlyWarnForMediaSeekingError, }: {
3
3
  mediaRef: RefObject<HTMLVideoElement | HTMLAudioElement>;
4
4
  src: string | undefined;
5
5
  mediaType: 'audio' | 'video';
6
6
  playbackRate: number;
7
+ onlyWarnForMediaSeekingError: boolean;
7
8
  }) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"use-media-playback.d.ts","sourceRoot":"","sources":["../src/use-media-playback.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAwB,MAAM,OAAO,CAAC;AASvD,eAAO,MAAM,gBAAgB;cAMlB,UAAU,gBAAgB,GAAG,gBAAgB,CAAC;SACnD,MAAM,GAAG,SAAS;eACZ,OAAO,GAAG,OAAO;kBACd,MAAM;UA2EpB,CAAC"}
1
+ {"version":3,"file":"use-media-playback.d.ts","sourceRoot":"","sources":["../src/use-media-playback.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAY,MAAM,OAAO,CAAC;AAQ3C,eAAO,MAAM,gBAAgB;cAMlB,UAAU,gBAAgB,GAAG,gBAAgB,CAAC;SACnD,MAAM,GAAG,SAAS;eACZ,OAAO,GAAG,OAAO;kBACd,MAAM;UAmEpB,CAAC"}
@@ -5,14 +5,14 @@ const react_1 = require("react");
5
5
  const use_audio_frame_1 = require("./audio/use-audio-frame");
6
6
  const play_and_handle_not_allowed_error_1 = require("./play-and-handle-not-allowed-error");
7
7
  const timeline_position_state_1 = require("./timeline-position-state");
8
- const use_frame_1 = require("./use-frame");
8
+ const use_current_frame_1 = require("./use-current-frame");
9
9
  const use_video_config_1 = require("./use-video-config");
10
10
  const get_current_time_1 = require("./video/get-current-time");
11
11
  const warn_about_non_seekable_media_1 = require("./warn-about-non-seekable-media");
12
- const useMediaPlayback = ({ mediaRef, src, mediaType, playbackRate: localPlaybackRate, }) => {
12
+ const useMediaPlayback = ({ mediaRef, src, mediaType, playbackRate: localPlaybackRate, onlyWarnForMediaSeekingError, }) => {
13
13
  const { playbackRate: globalPlaybackRate } = (0, react_1.useContext)(timeline_position_state_1.TimelineContext);
14
- const frame = (0, use_frame_1.useCurrentFrame)();
15
- const absoluteFrame = (0, use_frame_1.useAbsoluteCurrentFrame)();
14
+ const frame = (0, use_current_frame_1.useCurrentFrame)();
15
+ const absoluteFrame = (0, use_current_frame_1.useAbsoluteCurrentFrame)();
16
16
  const [playing] = (0, timeline_position_state_1.usePlayingState)();
17
17
  const { fps } = (0, use_video_config_1.useVideoConfig)();
18
18
  const mediaStartsAt = (0, use_audio_frame_1.useMediaStartsAt)();
@@ -42,11 +42,12 @@ const useMediaPlayback = ({ mediaRef, src, mediaType, playbackRate: localPlaybac
42
42
  const isTime = mediaRef.current.currentTime;
43
43
  const timeShift = Math.abs(shouldBeTime - isTime);
44
44
  if (timeShift > 0.45 && !mediaRef.current.ended) {
45
- console.log('Time has shifted by', timeShift, 'sec. Fixing...', `(isTime=${isTime},shouldBeTime=${shouldBeTime})`);
46
45
  // If scrubbing around, adjust timing
47
46
  // or if time shift is bigger than 0.2sec
48
47
  mediaRef.current.currentTime = shouldBeTime;
49
- (0, warn_about_non_seekable_media_1.warnAboutNonSeekableMedia)(mediaRef.current);
48
+ if (!onlyWarnForMediaSeekingError) {
49
+ (0, warn_about_non_seekable_media_1.warnAboutNonSeekableMedia)(mediaRef.current, onlyWarnForMediaSeekingError ? 'console-warning' : 'console-error');
50
+ }
50
51
  }
51
52
  if (!playing || absoluteFrame === 0) {
52
53
  mediaRef.current.currentTime = shouldBeTime;
@@ -67,6 +68,7 @@ const useMediaPlayback = ({ mediaRef, src, mediaType, playbackRate: localPlaybac
67
68
  src,
68
69
  mediaStartsAt,
69
70
  localPlaybackRate,
71
+ onlyWarnForMediaSeekingError,
70
72
  ]);
71
73
  };
72
74
  exports.useMediaPlayback = useMediaPlayback;
@@ -1 +1 @@
1
- {"version":3,"file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2 +1,2 @@
1
- import { RefObject } from 'react';
1
+ import type { RefObject } from 'react';
2
2
  export declare const useMediaTagVolume: (mediaRef: RefObject<HTMLVideoElement | HTMLAudioElement>) => number;
@@ -1,5 +1,5 @@
1
- import { RefObject } from 'react';
2
- import { VolumeProp } from './volume-prop';
1
+ import type { RefObject } from 'react';
2
+ import type { VolumeProp } from './volume-prop';
3
3
  export declare type UseSyncVolumeWithMediaTagOptions = {
4
4
  volumePropFrame: number;
5
5
  actualVolume: number;
@@ -1,2 +1,2 @@
1
- import { VideoConfig } from './video-config';
1
+ import type { VideoConfig } from './video-config';
2
2
  export declare const useUnsafeVideoConfig: () => VideoConfig | null;
@@ -1 +1 @@
1
- {"version":3,"file":"use-unsafe-video-config.d.ts","sourceRoot":"","sources":["../src/use-unsafe-video-config.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAE3C,eAAO,MAAM,oBAAoB,QAAO,WAAW,GAAG,IAqBrD,CAAC"}
1
+ {"version":3,"file":"use-unsafe-video-config.d.ts","sourceRoot":"","sources":["../src/use-unsafe-video-config.ts"],"names":[],"mappings":"AAGA,OAAO,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAE3C,eAAO,MAAM,oBAAoB,QAAO,WAAW,GAAG,IAmBrD,CAAC"}
@@ -2,11 +2,11 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.useUnsafeVideoConfig = void 0;
4
4
  const react_1 = require("react");
5
- const sequencing_1 = require("./sequencing");
5
+ const Sequence_1 = require("./Sequence");
6
6
  const use_video_1 = require("./use-video");
7
7
  const useUnsafeVideoConfig = () => {
8
8
  var _a;
9
- const context = (0, react_1.useContext)(sequencing_1.SequenceContext);
9
+ const context = (0, react_1.useContext)(Sequence_1.SequenceContext);
10
10
  const ctxDuration = (_a = context === null || context === void 0 ? void 0 : context.durationInFrames) !== null && _a !== void 0 ? _a : null;
11
11
  const video = (0, use_video_1.useVideo)();
12
12
  return (0, react_1.useMemo)(() => {
@@ -1 +1 @@
1
- {"version":3,"file":"use-unsafe-video-config.js","sourceRoot":"","sources":["../src/use-unsafe-video-config.ts"],"names":[],"mappings":";;;AAAA,iCAA0C;AAC1C,6CAA6C;AAC7C,2CAAqC;AAG9B,MAAM,oBAAoB,GAAG,GAAuB,EAAE;;IAC5D,MAAM,OAAO,GAAG,IAAA,kBAAU,EAAC,4BAAe,CAAC,CAAC;IAC5C,MAAM,WAAW,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,gBAAgB,mCAAI,IAAI,CAAC;IACtD,MAAM,KAAK,GAAG,IAAA,oBAAQ,GAAE,CAAC;IAEzB,OAAO,IAAA,eAAO,EAAC,GAAG,EAAE;QACnB,IAAI,CAAC,KAAK,EAAE;YACX,OAAO,IAAI,CAAC;SACZ;QAED,MAAM,EAAC,EAAE,EAAE,gBAAgB,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY,EAAC,GAAG,KAAK,CAAC;QAEvE,OAAO;YACN,EAAE;YACF,KAAK;YACL,MAAM;YACN,GAAG;YACH,gBAAgB,EAAE,WAAW,aAAX,WAAW,cAAX,WAAW,GAAI,gBAAgB;YACjD,YAAY;SACZ,CAAC;IACH,CAAC,EAAE,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC,CAAC;AAC1B,CAAC,CAAC;AArBW,QAAA,oBAAoB,wBAqB/B"}
1
+ {"version":3,"file":"use-unsafe-video-config.js","sourceRoot":"","sources":["../src/use-unsafe-video-config.ts"],"names":[],"mappings":";;;AAAA,iCAA0C;AAC1C,6CAA6C;AAC7C,2CAAqC;AAG9B,MAAM,oBAAoB,GAAG,GAAuB,EAAE;;IAC5D,MAAM,OAAO,GAAG,IAAA,kBAAU,EAAC,4BAAe,CAAC,CAAC;IAC5C,MAAM,WAAW,GAAG,MAAA,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,gBAAgB,mCAAI,IAAI,CAAC;IACtD,MAAM,KAAK,GAAG,IAAA,oBAAQ,GAAE,CAAC;IAEzB,OAAO,IAAA,eAAO,EAAC,GAAG,EAAE;QACnB,IAAI,CAAC,KAAK,EAAE;YACX,OAAO,IAAI,CAAC;SACZ;QAED,MAAM,EAAC,gBAAgB,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAC,GAAG,KAAK,CAAC;QAErD,OAAO;YACN,KAAK;YACL,MAAM;YACN,GAAG;YACH,gBAAgB,EAAE,WAAW,aAAX,WAAW,cAAX,WAAW,GAAI,gBAAgB;SACjD,CAAC;IACH,CAAC,EAAE,CAAC,WAAW,EAAE,KAAK,CAAC,CAAC,CAAC;AAC1B,CAAC,CAAC;AAnBW,QAAA,oBAAoB,wBAmB/B"}
@@ -1,4 +1,4 @@
1
- import { VideoConfig } from './video-config';
1
+ import type { VideoConfig } from './video-config';
2
2
  /**
3
3
  * Get some info about the context of the video that you are making.
4
4
  * Returns an object containing `fps`, `width`, `height` and `durationInFrames`, all of type `number`.
@@ -1 +1 @@
1
- {"version":3,"file":"use-video-config.d.ts","sourceRoot":"","sources":["../src/use-video-config.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAE3C;;;;GAIG;AACH,eAAO,MAAM,cAAc,QAAO,WAgBjC,CAAC"}
1
+ {"version":3,"file":"use-video-config.d.ts","sourceRoot":"","sources":["../src/use-video-config.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,WAAW,EAAC,MAAM,gBAAgB,CAAC;AAE3C,eAAO,MAAM,cAAc,QAAO,WAUjC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-video-config.js","sourceRoot":"","sources":["../src/use-video-config.ts"],"names":[],"mappings":";;;AAAA,uEAA+D;AAG/D;;;;GAIG;AACI,MAAM,cAAc,GAAG,GAAgB,EAAE;IAC/C,MAAM,WAAW,GAAG,IAAA,8CAAoB,GAAE,CAAC;IAE3C,IAAI,CAAC,WAAW,EAAE;QACjB,IAAI,OAAO,MAAM,KAAK,WAAW,IAAI,MAAM,CAAC,iBAAiB,EAAE;YAC9D,MAAM,IAAI,KAAK,CACd,6MAA6M,CAC7M,CAAC;SACF;QAED,MAAM,IAAI,KAAK,CACd,sOAAsO,CACtO,CAAC;KACF;IAED,OAAO,WAAW,CAAC;AACpB,CAAC,CAAC;AAhBW,QAAA,cAAc,kBAgBzB"}
1
+ {"version":3,"file":"use-video-config.js","sourceRoot":"","sources":["../src/use-video-config.ts"],"names":[],"mappings":";;;AAAA,uEAA+D;AAGxD,MAAM,cAAc,GAAG,GAAgB,EAAE;IAC/C,MAAM,WAAW,GAAG,IAAA,8CAAoB,GAAE,CAAC;IAE3C,IAAI,CAAC,WAAW,EAAE;QACjB,MAAM,IAAI,KAAK,CACd,sOAAsO,CACtO,CAAC;KACF;IAED,OAAO,WAAW,CAAC;AACpB,CAAC,CAAC;AAVW,QAAA,cAAc,kBAUzB"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-video.d.ts","sourceRoot":"","sources":["../src/use-video.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ,mEASpB,CAAC"}
1
+ {"version":3,"file":"use-video.d.ts","sourceRoot":"","sources":["../src/use-video.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ,mEAOpB,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"use-video.js","sourceRoot":"","sources":["../src/use-video.ts"],"names":[],"mappings":";;;AAAA,iCAA0C;AAC1C,6DAAwD;AAEjD,MAAM,QAAQ,GAAG,GAAG,EAAE;IAC5B,MAAM,OAAO,GAAG,IAAA,kBAAU,EAAC,uCAAkB,CAAC,CAAC;IAC/C,OAAO,IAAA,eAAO,EACb,GAAG,EAAE;;QACJ,OAAA,MAAA,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE;YAC/B,OAAO,CAAC,CAAC,EAAE,KAAK,OAAO,CAAC,kBAAkB,CAAC;QAC5C,CAAC,CAAC,mCAAI,IAAI,CAAA;KAAA,EACX,CAAC,OAAO,CAAC,YAAY,EAAE,OAAO,CAAC,kBAAkB,CAAC,CAClD,CAAC;AACH,CAAC,CAAC;AATW,QAAA,QAAQ,YASnB"}
1
+ {"version":3,"file":"use-video.js","sourceRoot":"","sources":["../src/use-video.ts"],"names":[],"mappings":";;;AAAA,iCAAiC;AACjC,6DAAwD;AAEjD,MAAM,QAAQ,GAAG,GAAG,EAAE;;IAC5B,MAAM,OAAO,GAAG,IAAA,kBAAU,EAAC,uCAAkB,CAAC,CAAC;IAC/C,OAAO,CACN,MAAA,OAAO,CAAC,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE;QAC7B,OAAO,CAAC,CAAC,EAAE,KAAK,OAAO,CAAC,kBAAkB,CAAC;IAC5C,CAAC,CAAC,mCAAI,IAAI,CACV,CAAC;AACH,CAAC,CAAC;AAPW,QAAA,QAAQ,YAOnB"}
@@ -1,3 +1,4 @@
1
- import { RemotionAudioProps } from './audio';
2
- import { RemotionVideoProps } from './video';
3
- export declare const validateMediaProps: (props: RemotionVideoProps | RemotionAudioProps, component: 'Video' | 'Audio') => void;
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 +1 @@
1
- {"version":3,"file":"validate-dimensions.d.ts","sourceRoot":"","sources":["../../src/validation/validate-dimensions.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,WACrB,MAAM,cACF,MAAM,YACR,MAAM,SA+BhB,CAAC"}
1
+ {"version":3,"file":"validate-dimensions.d.ts","sourceRoot":"","sources":["../../src/validation/validate-dimensions.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,WAAY,MAAM,cAAc,MAAM,SA8BnE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"validate-dimensions.js","sourceRoot":"","sources":["../../src/validation/validate-dimensions.ts"],"names":[],"mappings":";;;AAAO,MAAM,iBAAiB,GAAG,CAChC,MAAc,EACd,UAAkB,EAClB,QAAgB,EACf,EAAE;IACH,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE;QAC/B,MAAM,IAAI,KAAK,CACd,QAAQ,UAAU,UAAU,QAAQ,qDAAqD,OAAO,MAAM,EAAE,CACxG,CAAC;KACF;IAED,IAAI,KAAK,CAAC,MAAM,CAAC,EAAE;QAClB,MAAM,IAAI,SAAS,CAClB,QAAQ,UAAU,UAAU,QAAQ,+BAA+B,CACnE,CAAC;KACF;IAED,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE;QAC7B,MAAM,IAAI,SAAS,CAClB,QAAQ,UAAU,UAAU,QAAQ,2BAA2B,MAAM,GAAG,CACxE,CAAC;KACF;IAED,IAAI,MAAM,GAAG,CAAC,KAAK,CAAC,EAAE;QACrB,MAAM,IAAI,SAAS,CAClB,QAAQ,UAAU,UAAU,QAAQ,+BAA+B,MAAM,GAAG,CAC5E,CAAC;KACF;IAED,IAAI,MAAM,IAAI,CAAC,EAAE;QAChB,MAAM,IAAI,SAAS,CAClB,QAAQ,UAAU,UAAU,QAAQ,8BAA8B,MAAM,GAAG,CAC3E,CAAC;KACF;AACF,CAAC,CAAC;AAlCW,QAAA,iBAAiB,qBAkC5B"}
1
+ {"version":3,"file":"validate-dimensions.js","sourceRoot":"","sources":["../../src/validation/validate-dimensions.ts"],"names":[],"mappings":";;;AAAO,MAAM,iBAAiB,GAAG,CAAC,MAAc,EAAE,UAAkB,EAAE,EAAE;IACvE,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE;QAC/B,MAAM,IAAI,KAAK,CACd,QAAQ,UAAU,uEAAuE,OAAO,MAAM,EAAE,CACxG,CAAC;KACF;IAED,IAAI,KAAK,CAAC,MAAM,CAAC,EAAE;QAClB,MAAM,IAAI,SAAS,CAClB,QAAQ,UAAU,iDAAiD,CACnE,CAAC;KACF;IAED,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE;QAC7B,MAAM,IAAI,SAAS,CAClB,QAAQ,UAAU,6CAA6C,MAAM,GAAG,CACxE,CAAC;KACF;IAED,IAAI,MAAM,GAAG,CAAC,KAAK,CAAC,EAAE;QACrB,MAAM,IAAI,SAAS,CAClB,QAAQ,UAAU,iDAAiD,MAAM,GAAG,CAC5E,CAAC;KACF;IAED,IAAI,MAAM,IAAI,CAAC,EAAE;QAChB,MAAM,IAAI,SAAS,CAClB,QAAQ,UAAU,gDAAgD,MAAM,GAAG,CAC3E,CAAC;KACF;AACF,CAAC,CAAC;AA9BW,QAAA,iBAAiB,qBA8B5B"}
@@ -1 +1 @@
1
- {"version":3,"file":"validate-duration-in-frames.d.ts","sourceRoot":"","sources":["../../src/validation/validate-duration-in-frames.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,qBAClB,MAAM,aACb,MAAM,SAmBjB,CAAC"}
1
+ {"version":3,"file":"validate-duration-in-frames.d.ts","sourceRoot":"","sources":["../../src/validation/validate-duration-in-frames.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,wBAAwB,qBAAsB,MAAM,SAkBhE,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"validate-duration-in-frames.js","sourceRoot":"","sources":["../../src/validation/validate-duration-in-frames.ts"],"names":[],"mappings":";;;AAAO,MAAM,wBAAwB,GAAG,CACvC,gBAAwB,EACxB,SAAiB,EAChB,EAAE;IACH,IAAI,OAAO,gBAAgB,KAAK,QAAQ,EAAE;QACzC,MAAM,IAAI,KAAK,CACd,+BAA+B,SAAS,qDAAqD,OAAO,gBAAgB,EAAE,CACtH,CAAC;KACF;IAED,IAAI,gBAAgB,IAAI,CAAC,EAAE;QAC1B,MAAM,IAAI,SAAS,CAClB,+BAA+B,SAAS,8BAA8B,gBAAgB,GAAG,CACzF,CAAC;KACF;IAED,IAAI,gBAAgB,GAAG,CAAC,KAAK,CAAC,EAAE;QAC/B,MAAM,IAAI,SAAS,CAClB,+BAA+B,SAAS,gCAAgC,gBAAgB,GAAG,CAC3F,CAAC;KACF;AACF,CAAC,CAAC;AArBW,QAAA,wBAAwB,4BAqBnC"}
1
+ {"version":3,"file":"validate-duration-in-frames.js","sourceRoot":"","sources":["../../src/validation/validate-duration-in-frames.ts"],"names":[],"mappings":";;;AAAO,MAAM,wBAAwB,GAAG,CAAC,gBAAwB,EAAE,EAAE;IACpE,IAAI,OAAO,gBAAgB,KAAK,QAAQ,EAAE;QACzC,MAAM,IAAI,KAAK,CACd,4FAA4F,OAAO,gBAAgB,EAAE,CACrH,CAAC;KACF;IAED,IAAI,gBAAgB,IAAI,CAAC,EAAE;QAC1B,MAAM,IAAI,SAAS,CAClB,qEAAqE,gBAAgB,GAAG,CACxF,CAAC;KACF;IAED,IAAI,gBAAgB,GAAG,CAAC,KAAK,CAAC,EAAE;QAC/B,MAAM,IAAI,SAAS,CAClB,uEAAuE,gBAAgB,GAAG,CAC1F,CAAC;KACF;AACF,CAAC,CAAC;AAlBW,QAAA,wBAAwB,4BAkBnC"}
@@ -1 +1 @@
1
- {"version":3,"file":"validate-fps.d.ts","sourceRoot":"","sources":["../../src/validation/validate-fps.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,QAAS,MAAM,YAAY,MAAM,SAoBxD,CAAC"}
1
+ {"version":3,"file":"validate-fps.d.ts","sourceRoot":"","sources":["../../src/validation/validate-fps.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,WAAW,QAAS,MAAM,SAkBtC,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"validate-fps.js","sourceRoot":"","sources":["../../src/validation/validate-fps.ts"],"names":[],"mappings":";;;AAAO,MAAM,WAAW,GAAG,CAAC,GAAW,EAAE,QAAgB,EAAE,EAAE;IAC5D,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;QAC5B,MAAM,IAAI,KAAK,CACd,0DAA0D,OAAO,GAAG,IAAI,QAAQ,EAAE,CAClF,CAAC;KACF;IAED,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;QAC1B,MAAM,IAAI,KAAK,CACd,0CAA0C,GAAG,IAAI,QAAQ,EAAE,CAC3D,CAAC;KACF;IAED,IAAI,KAAK,CAAC,GAAG,CAAC,EAAE;QACf,MAAM,IAAI,KAAK,CAAC,kCAAkC,GAAG,IAAI,QAAQ,EAAE,CAAC,CAAC;KACrE;IAED,IAAI,GAAG,IAAI,CAAC,EAAE;QACb,MAAM,IAAI,SAAS,CAAC,mCAAmC,GAAG,IAAI,QAAQ,EAAE,CAAC,CAAC;KAC1E;AACF,CAAC,CAAC;AApBW,QAAA,WAAW,eAoBtB"}
1
+ {"version":3,"file":"validate-fps.js","sourceRoot":"","sources":["../../src/validation/validate-fps.ts"],"names":[],"mappings":";;;AAAO,MAAM,WAAW,GAAG,CAAC,GAAW,EAAE,EAAE;IAC1C,IAAI,OAAO,GAAG,KAAK,QAAQ,EAAE;QAC5B,MAAM,IAAI,KAAK,CACd,0DAA0D,OAAO,GAAG,EAAE,CACtE,CAAC;KACF;IAED,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;QAC1B,MAAM,IAAI,KAAK,CAAC,0CAA0C,GAAG,EAAE,CAAC,CAAC;KACjE;IAED,IAAI,KAAK,CAAC,GAAG,CAAC,EAAE;QACf,MAAM,IAAI,KAAK,CAAC,kCAAkC,GAAG,EAAE,CAAC,CAAC;KACzD;IAED,IAAI,GAAG,IAAI,CAAC,EAAE;QACb,MAAM,IAAI,SAAS,CAAC,mCAAmC,GAAG,GAAG,CAAC,CAAC;KAC/D;AACF,CAAC,CAAC;AAlBW,QAAA,WAAW,eAkBtB"}
@@ -1,2 +1,2 @@
1
- import { ImageFormat } from '../config';
1
+ import type { ImageFormat } from '../config';
2
2
  export declare const validateNonNullImageFormat: (imageFormat: ImageFormat) => void;
@@ -0,0 +1 @@
1
+ export declare const validateOffthreadVideoImageFormat: (input: unknown) => void;
@@ -0,0 +1,15 @@
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;
@@ -1,4 +1,4 @@
1
- declare const validRenderers: readonly ["angle", "egl", "swiftshader"];
1
+ declare const validRenderers: readonly ["swangle", "angle", "egl", "swiftshader"];
2
2
  export declare type OpenGlRenderer = typeof validRenderers[number];
3
3
  export declare const validateOpenGlRenderer: (option: OpenGlRenderer | null) => OpenGlRenderer | null;
4
4
  export {};
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.validateOpenGlRenderer = void 0;
4
- const validRenderers = ['angle', 'egl', 'swiftshader'];
4
+ const validRenderers = ['swangle', 'angle', 'egl', 'swiftshader'];
5
5
  const validateOpenGlRenderer = (option) => {
6
6
  if (option === null) {
7
7
  return null;
@@ -0,0 +1 @@
1
+ export declare const validateSpringDuration: (dur: unknown) => void;
@@ -0,0 +1,21 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.validateSpringDuration = void 0;
4
+ const validateSpringDuration = (dur) => {
5
+ if (typeof dur === 'undefined') {
6
+ return;
7
+ }
8
+ if (typeof dur !== 'number') {
9
+ throw new TypeError(`A "duration" of a spring must be a "number" but is "${typeof dur}"`);
10
+ }
11
+ if (Number.isNaN(dur)) {
12
+ throw new TypeError('A "duration" of a spring is NaN, which it must not be');
13
+ }
14
+ if (!Number.isFinite(dur)) {
15
+ throw new TypeError('A "duration" of a spring must be finite, but is ' + dur);
16
+ }
17
+ if (dur <= 0) {
18
+ throw new TypeError('A "duration" of a spring must be positive, but is ' + dur);
19
+ }
20
+ };
21
+ exports.validateSpringDuration = validateSpringDuration;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import type { OffthreadVideoProps, RemotionMainVideoProps } from './props';
3
+ export declare const OffthreadVideo: React.FC<OffthreadVideoProps & RemotionMainVideoProps>;
@@ -0,0 +1,27 @@
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;
@@ -0,0 +1,3 @@
1
+ import React from 'react';
2
+ import type { OffthreadVideoProps } from './props';
3
+ export declare const OffthreadVideoForRendering: React.FC<OffthreadVideoProps>;
@@ -0,0 +1,95 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.OffthreadVideoForRendering = void 0;
4
+ const jsx_runtime_1 = require("react/jsx-runtime");
5
+ const react_1 = require("react");
6
+ const absolute_src_1 = require("../absolute-src");
7
+ const use_audio_frame_1 = require("../audio/use-audio-frame");
8
+ const CompositionManager_1 = require("../CompositionManager");
9
+ const default_css_1 = require("../default-css");
10
+ const Img_1 = require("../Img");
11
+ const internals_1 = require("../internals");
12
+ const random_1 = require("../random");
13
+ const Sequence_1 = require("../Sequence");
14
+ const use_current_frame_1 = require("../use-current-frame");
15
+ const use_unsafe_video_config_1 = require("../use-unsafe-video-config");
16
+ const volume_prop_1 = require("../volume-prop");
17
+ const get_current_time_1 = require("./get-current-time");
18
+ const DEFAULT_IMAGE_FORMAT = 'jpeg';
19
+ const OffthreadVideoForRendering = ({ onError, volume: volumeProp, playbackRate, src, muted, imageFormat, ...props }) => {
20
+ const absoluteFrame = (0, use_current_frame_1.useAbsoluteCurrentFrame)();
21
+ const frame = (0, use_current_frame_1.useCurrentFrame)();
22
+ const volumePropsFrame = (0, use_audio_frame_1.useFrameForVolumeProp)();
23
+ const videoConfig = (0, use_unsafe_video_config_1.useUnsafeVideoConfig)();
24
+ const sequenceContext = (0, react_1.useContext)(Sequence_1.SequenceContext);
25
+ const mediaStartsAt = (0, use_audio_frame_1.useMediaStartsAt)();
26
+ const { registerAsset, unregisterAsset } = (0, react_1.useContext)(CompositionManager_1.CompositionManager);
27
+ if (!src) {
28
+ throw new TypeError('No `src` was passed to <OffthreadVideo>.');
29
+ }
30
+ // Generate a string that's as unique as possible for this asset
31
+ // but at the same time the same on all threads
32
+ const id = (0, react_1.useMemo)(() => `video-${(0, random_1.random)(src !== null && src !== void 0 ? src : '')}-${sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.cumulatedFrom}-${sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.relativeFrom}-${sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.durationInFrames}-muted:${muted}`, [
33
+ src,
34
+ muted,
35
+ sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.cumulatedFrom,
36
+ sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.relativeFrom,
37
+ sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.durationInFrames,
38
+ ]);
39
+ if (!videoConfig) {
40
+ throw new Error('No video config found');
41
+ }
42
+ const volume = (0, volume_prop_1.evaluateVolume)({
43
+ volume: volumeProp,
44
+ frame: volumePropsFrame,
45
+ mediaVolume: 1,
46
+ });
47
+ (0, react_1.useEffect)(() => {
48
+ if (!src) {
49
+ throw new Error('No src passed');
50
+ }
51
+ if (muted) {
52
+ return;
53
+ }
54
+ registerAsset({
55
+ type: 'video',
56
+ src: (0, absolute_src_1.getAbsoluteSrc)(src),
57
+ id,
58
+ frame: absoluteFrame,
59
+ volume,
60
+ mediaFrame: frame,
61
+ playbackRate: playbackRate !== null && playbackRate !== void 0 ? playbackRate : 1,
62
+ });
63
+ return () => unregisterAsset(id);
64
+ }, [
65
+ muted,
66
+ src,
67
+ registerAsset,
68
+ id,
69
+ unregisterAsset,
70
+ volume,
71
+ frame,
72
+ absoluteFrame,
73
+ playbackRate,
74
+ ]);
75
+ const currentTime = (0, react_1.useMemo)(() => {
76
+ return ((0, get_current_time_1.getExpectedMediaFrameUncorrected)({
77
+ frame,
78
+ playbackRate: playbackRate || 1,
79
+ startFrom: -mediaStartsAt,
80
+ }) / videoConfig.fps);
81
+ }, [frame, mediaStartsAt, playbackRate, videoConfig.fps]);
82
+ const actualSrc = (0, react_1.useMemo)(() => {
83
+ return `http://localhost:${window.remotion_proxyPort}/proxy?src=${encodeURIComponent((0, absolute_src_1.getAbsoluteSrc)(src))}&time=${encodeURIComponent(currentTime)}&imageFormat=${imageFormat !== null && imageFormat !== void 0 ? imageFormat : DEFAULT_IMAGE_FORMAT}`;
84
+ }, [currentTime, imageFormat, src]);
85
+ const onErr = (0, react_1.useCallback)((e) => {
86
+ onError === null || onError === void 0 ? void 0 : onError(e);
87
+ }, [onError]);
88
+ const className = (0, react_1.useMemo)(() => {
89
+ return [default_css_1.OFFTHREAD_VIDEO_CLASS_NAME, props.className]
90
+ .filter(internals_1.Internals.truthy)
91
+ .join(' ');
92
+ }, [props.className]);
93
+ return ((0, jsx_runtime_1.jsx)(Img_1.Img, { src: actualSrc, className: className, ...props, onError: onErr }));
94
+ };
95
+ exports.OffthreadVideoForRendering = OffthreadVideoForRendering;
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
- import { RemotionMainVideoProps } from './props';
2
+ import type { RemotionMainVideoProps } from './props';
3
3
  export declare const Video: React.ForwardRefExoticComponent<Pick<Omit<React.DetailedHTMLProps<React.VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>, "onEnded" | "autoPlay" | "controls" | "loop"> & {
4
4
  volume?: import("../volume-prop").VolumeProp | undefined;
5
5
  playbackRate?: number | undefined;
6
- } & RemotionMainVideoProps, "style" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "height" | "width" | "src" | "volume" | "playbackRate" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "playsInline" | "preload" | "key" | "poster" | "disablePictureInPicture" | "disableRemotePlayback" | keyof RemotionMainVideoProps> & React.RefAttributes<HTMLVideoElement>>;
6
+ } & RemotionMainVideoProps, "style" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "placeholder" | "slot" | "spellCheck" | "tabIndex" | "title" | "translate" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "children" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "height" | "width" | "key" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "playsInline" | "preload" | "src" | "volume" | "playbackRate" | "poster" | "disablePictureInPicture" | "disableRemotePlayback" | keyof RemotionMainVideoProps> & React.RefAttributes<HTMLVideoElement>>;
@@ -1 +1 @@
1
- {"version":3,"file":"Video.d.ts","sourceRoot":"","sources":["../../src/video/Video.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAKxC,OAAO,EAAC,sBAAsB,EAAqB,MAAM,SAAS,CAAC;AAwCnE,eAAO,MAAM,KAAK;;;6xJAAsC,CAAC"}
1
+ {"version":3,"file":"Video.d.ts","sourceRoot":"","sources":["../../src/video/Video.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmB,MAAM,OAAO,CAAC;AAKxC,OAAO,EAAC,sBAAsB,EAAqB,MAAM,SAAS,CAAC;AAwCnE,eAAO,MAAM,KAAK;;;szJAAsC,CAAC"}