remotion 3.0.0-lambda.13 → 3.0.0-lambda.136
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.
- package/coverage/coverage-summary.json +57 -54
- package/dist/RemotionRoot.d.ts.map +1 -1
- package/dist/RemotionRoot.js +6 -1
- package/dist/RemotionRoot.js.map +1 -1
- package/dist/config/concurrent-mode.d.ts +6 -0
- package/dist/config/concurrent-mode.d.ts.map +1 -0
- package/dist/config/concurrent-mode.js +17 -0
- package/dist/config/concurrent-mode.js.map +1 -0
- package/dist/config/ffmpeg-executable.d.ts +4 -0
- package/dist/config/ffmpeg-executable.d.ts.map +1 -0
- package/dist/config/ffmpeg-executable.js +13 -0
- package/dist/config/ffmpeg-executable.js.map +1 -0
- package/dist/config/index.d.ts +7 -1
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/index.js +6 -0
- package/dist/config/index.js.map +1 -1
- package/dist/config/input-props.d.ts.map +1 -1
- package/dist/config/input-props.js +14 -0
- package/dist/config/input-props.js.map +1 -1
- package/dist/config/parallel-encoding.d.ts +3 -0
- package/dist/config/parallel-encoding.d.ts.map +1 -0
- package/dist/config/parallel-encoding.js +14 -0
- package/dist/config/parallel-encoding.js.map +1 -0
- package/dist/internals.d.ts +3 -2
- package/dist/internals.d.ts.map +1 -1
- package/dist/internals.js +2 -0
- package/dist/internals.js.map +1 -1
- package/dist/interpolate.d.ts.map +1 -1
- package/dist/interpolate.js +9 -5
- package/dist/interpolate.js.map +1 -1
- package/dist/timeline-position-state.d.ts +6 -2
- package/dist/timeline-position-state.d.ts.map +1 -1
- package/dist/timeline-position-state.js +9 -2
- package/dist/timeline-position-state.js.map +1 -1
- package/dist/use-media-in-timeline.d.ts.map +1 -1
- package/dist/use-media-in-timeline.js +17 -1
- package/dist/use-media-in-timeline.js.map +1 -1
- package/dist/use-media-playback.d.ts +1 -1
- package/dist/use-media-playback.d.ts.map +1 -1
- package/dist/use-media-playback.js +9 -3
- package/dist/use-media-playback.js.map +1 -1
- package/dist/use-unsafe-video-config.d.ts.map +1 -1
- package/dist/use-unsafe-video-config.js +2 -1
- package/dist/use-unsafe-video-config.js.map +1 -1
- package/dist/video/VideoForRendering.js +1 -1
- package/dist/video-config.d.ts +1 -0
- package/dist/video-config.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -1,96 +1,99 @@
|
|
|
1
|
-
{"total": {"lines":{"total":
|
|
2
|
-
,"/Users/jonathanburger/remotion/packages/core/src/AbsoluteFill.tsx": {"lines":{"total":6,"covered":2,"skipped":0,"pct":33.33},"functions":{"total":2,"covered":0,"skipped":0,"pct":0},"statements":{"total":7,"covered":3,"skipped":0,"pct":42.
|
|
3
|
-
,"/Users/jonathanburger/remotion/packages/core/src/Composition.tsx": {"lines":{"total":28,"covered":27,"skipped":0,"pct":96.
|
|
4
|
-
,"/Users/jonathanburger/remotion/packages/core/src/CompositionManager.tsx": {"lines":{"total":41,"covered":30,"skipped":0,"pct":73.17},"functions":{"total":28,"covered":13,"skipped":0,"pct":46.
|
|
5
|
-
,"/Users/jonathanburger/remotion/packages/core/src/IFrame.tsx": {"lines":{"total":14,"covered":4,"skipped":0,"pct":28.57},"functions":{"total":4,"covered":0,"skipped":0,"pct":0},"statements":{"total":15,"covered":4,"skipped":0,"pct":26.
|
|
1
|
+
{"total": {"lines":{"total":1857,"covered":1402,"skipped":0,"pct":75.49},"statements":{"total":2034,"covered":1560,"skipped":0,"pct":76.69},"functions":{"total":366,"covered":219,"skipped":0,"pct":59.83},"branches":{"total":1061,"covered":752,"skipped":0,"pct":70.87}}
|
|
2
|
+
,"/Users/jonathanburger/remotion/packages/core/src/AbsoluteFill.tsx": {"lines":{"total":6,"covered":2,"skipped":0,"pct":33.33},"functions":{"total":2,"covered":0,"skipped":0,"pct":0},"statements":{"total":7,"covered":3,"skipped":0,"pct":42.85},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
3
|
+
,"/Users/jonathanburger/remotion/packages/core/src/Composition.tsx": {"lines":{"total":28,"covered":27,"skipped":0,"pct":96.42},"functions":{"total":3,"covered":3,"skipped":0,"pct":100},"statements":{"total":29,"covered":28,"skipped":0,"pct":96.55},"branches":{"total":4,"covered":3,"skipped":0,"pct":75}}
|
|
4
|
+
,"/Users/jonathanburger/remotion/packages/core/src/CompositionManager.tsx": {"lines":{"total":41,"covered":30,"skipped":0,"pct":73.17},"functions":{"total":28,"covered":13,"skipped":0,"pct":46.42},"statements":{"total":48,"covered":32,"skipped":0,"pct":66.66},"branches":{"total":4,"covered":3,"skipped":0,"pct":75}}
|
|
5
|
+
,"/Users/jonathanburger/remotion/packages/core/src/IFrame.tsx": {"lines":{"total":14,"covered":4,"skipped":0,"pct":28.57},"functions":{"total":4,"covered":0,"skipped":0,"pct":0},"statements":{"total":15,"covered":4,"skipped":0,"pct":26.66},"branches":{"total":6,"covered":0,"skipped":0,"pct":0}}
|
|
6
6
|
,"/Users/jonathanburger/remotion/packages/core/src/Img.tsx": {"lines":{"total":17,"covered":10,"skipped":0,"pct":58.82},"functions":{"total":5,"covered":3,"skipped":0,"pct":60},"statements":{"total":18,"covered":11,"skipped":0,"pct":61.11},"branches":{"total":10,"covered":3,"skipped":0,"pct":30}}
|
|
7
|
-
,"/Users/jonathanburger/remotion/packages/core/src/RemotionRoot.tsx": {"lines":{"total":
|
|
8
|
-
,"/Users/jonathanburger/remotion/packages/core/src/Still.tsx": {"lines":{"total":3,"covered":2,"skipped":0,"pct":66.
|
|
7
|
+
,"/Users/jonathanburger/remotion/packages/core/src/RemotionRoot.tsx": {"lines":{"total":35,"covered":29,"skipped":0,"pct":82.85},"functions":{"total":12,"covered":8,"skipped":0,"pct":66.66},"statements":{"total":39,"covered":31,"skipped":0,"pct":79.48},"branches":{"total":10,"covered":5,"skipped":0,"pct":50}}
|
|
8
|
+
,"/Users/jonathanburger/remotion/packages/core/src/Still.tsx": {"lines":{"total":3,"covered":2,"skipped":0,"pct":66.66},"functions":{"total":1,"covered":0,"skipped":0,"pct":0},"statements":{"total":4,"covered":3,"skipped":0,"pct":75},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
9
9
|
,"/Users/jonathanburger/remotion/packages/core/src/absolute-src.ts": {"lines":{"total":2,"covered":2,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":3,"covered":3,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
10
10
|
,"/Users/jonathanburger/remotion/packages/core/src/bezier.ts": {"lines":{"total":59,"covered":25,"skipped":0,"pct":42.37},"functions":{"total":10,"covered":6,"skipped":0,"pct":60},"statements":{"total":61,"covered":26,"skipped":0,"pct":42.62},"branches":{"total":32,"covered":18,"skipped":0,"pct":56.25}}
|
|
11
11
|
,"/Users/jonathanburger/remotion/packages/core/src/default-css.ts": {"lines":{"total":15,"covered":3,"skipped":0,"pct":20},"functions":{"total":2,"covered":0,"skipped":0,"pct":0},"statements":{"total":17,"covered":5,"skipped":0,"pct":29.41},"branches":{"total":8,"covered":0,"skipped":0,"pct":0}}
|
|
12
|
-
,"/Users/jonathanburger/remotion/packages/core/src/easing.ts": {"lines":{"total":33,"covered":26,"skipped":0,"pct":78.
|
|
12
|
+
,"/Users/jonathanburger/remotion/packages/core/src/easing.ts": {"lines":{"total":33,"covered":26,"skipped":0,"pct":78.78},"functions":{"total":22,"covered":14,"skipped":0,"pct":63.63},"statements":{"total":36,"covered":27,"skipped":0,"pct":75},"branches":{"total":14,"covered":12,"skipped":0,"pct":85.71}}
|
|
13
13
|
,"/Users/jonathanburger/remotion/packages/core/src/feature-flags.ts": {"lines":{"total":1,"covered":1,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":1,"covered":1,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
14
14
|
,"/Users/jonathanburger/remotion/packages/core/src/freeze.tsx": {"lines":{"total":16,"covered":8,"skipped":0,"pct":50},"functions":{"total":2,"covered":1,"skipped":0,"pct":50},"statements":{"total":16,"covered":8,"skipped":0,"pct":50},"branches":{"total":8,"covered":3,"skipped":0,"pct":37.5}}
|
|
15
15
|
,"/Users/jonathanburger/remotion/packages/core/src/get-asset-file-name.ts": {"lines":{"total":4,"covered":4,"skipped":0,"pct":100},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":5,"covered":5,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
16
|
-
,"/Users/jonathanburger/remotion/packages/core/src/get-environment.ts": {"lines":{"total":10,"covered":8,"skipped":0,"pct":80},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":11,"covered":9,"skipped":0,"pct":81.
|
|
17
|
-
,"/Users/jonathanburger/remotion/packages/core/src/get-timeline-clip-name.ts": {"lines":{"total":13,"covered":10,"skipped":0,"pct":76.92},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":14,"covered":11,"skipped":0,"pct":78.57},"branches":{"total":18,"covered":16,"skipped":0,"pct":88.
|
|
18
|
-
,"/Users/jonathanburger/remotion/packages/core/src/index.ts": {"lines":{"total":
|
|
16
|
+
,"/Users/jonathanburger/remotion/packages/core/src/get-environment.ts": {"lines":{"total":10,"covered":8,"skipped":0,"pct":80},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":11,"covered":9,"skipped":0,"pct":81.81},"branches":{"total":12,"covered":10,"skipped":0,"pct":83.33}}
|
|
17
|
+
,"/Users/jonathanburger/remotion/packages/core/src/get-timeline-clip-name.ts": {"lines":{"total":13,"covered":10,"skipped":0,"pct":76.92},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":14,"covered":11,"skipped":0,"pct":78.57},"branches":{"total":18,"covered":16,"skipped":0,"pct":88.88}}
|
|
18
|
+
,"/Users/jonathanburger/remotion/packages/core/src/index.ts": {"lines":{"total":27,"covered":27,"skipped":0,"pct":100},"functions":{"total":6,"covered":2,"skipped":0,"pct":33.33},"statements":{"total":33,"covered":33,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
19
19
|
,"/Users/jonathanburger/remotion/packages/core/src/initial-frame.ts": {"lines":{"total":6,"covered":3,"skipped":0,"pct":50},"functions":{"total":2,"covered":0,"skipped":0,"pct":0},"statements":{"total":7,"covered":4,"skipped":0,"pct":57.14},"branches":{"total":2,"covered":0,"skipped":0,"pct":0}}
|
|
20
|
-
,"/Users/jonathanburger/remotion/packages/core/src/internals.ts": {"lines":{"total":
|
|
21
|
-
,"/Users/jonathanburger/remotion/packages/core/src/interpolate.ts": {"lines":{"total":
|
|
22
|
-
,"/Users/jonathanburger/remotion/packages/core/src/interpolateColors.ts": {"lines":{"total":115,"covered":105,"skipped":0,"pct":91.3},"functions":{"total":21,"covered":21,"skipped":0,"pct":100},"statements":{"total":117,"covered":107,"skipped":0,"pct":91.45},"branches":{"total":70,"covered":51,"skipped":0,"pct":72.
|
|
20
|
+
,"/Users/jonathanburger/remotion/packages/core/src/internals.ts": {"lines":{"total":51,"covered":51,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":51,"covered":51,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
21
|
+
,"/Users/jonathanburger/remotion/packages/core/src/interpolate.ts": {"lines":{"total":59,"covered":59,"skipped":0,"pct":100},"functions":{"total":6,"covered":6,"skipped":0,"pct":100},"statements":{"total":61,"covered":61,"skipped":0,"pct":100},"branches":{"total":60,"covered":58,"skipped":0,"pct":96.66}}
|
|
22
|
+
,"/Users/jonathanburger/remotion/packages/core/src/interpolateColors.ts": {"lines":{"total":115,"covered":105,"skipped":0,"pct":91.3},"functions":{"total":21,"covered":21,"skipped":0,"pct":100},"statements":{"total":117,"covered":107,"skipped":0,"pct":91.45},"branches":{"total":70,"covered":51,"skipped":0,"pct":72.85}}
|
|
23
23
|
,"/Users/jonathanburger/remotion/packages/core/src/is-approximately-the-same.ts": {"lines":{"total":3,"covered":3,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":4,"covered":4,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
24
24
|
,"/Users/jonathanburger/remotion/packages/core/src/is-audio-codec.ts": {"lines":{"total":2,"covered":2,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":3,"covered":3,"skipped":0,"pct":100},"branches":{"total":3,"covered":3,"skipped":0,"pct":100}}
|
|
25
|
-
,"/Users/jonathanburger/remotion/packages/core/src/
|
|
26
|
-
,"/Users/jonathanburger/remotion/packages/core/src/multiple-versions-warning.ts": {"lines":{"total":6,"covered":4,"skipped":0,"pct":66.67},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":7,"covered":5,"skipped":0,"pct":71.43},"branches":{"total":4,"covered":2,"skipped":0,"pct":50}}
|
|
25
|
+
,"/Users/jonathanburger/remotion/packages/core/src/multiple-versions-warning.ts": {"lines":{"total":6,"covered":4,"skipped":0,"pct":66.66},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":7,"covered":5,"skipped":0,"pct":71.42},"branches":{"total":4,"covered":2,"skipped":0,"pct":50}}
|
|
27
26
|
,"/Users/jonathanburger/remotion/packages/core/src/nonce.ts": {"lines":{"total":9,"covered":9,"skipped":0,"pct":100},"functions":{"total":4,"covered":4,"skipped":0,"pct":100},"statements":{"total":11,"covered":11,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
28
|
-
,"/Users/jonathanburger/remotion/packages/core/src/random.ts": {"lines":{"total":22,"covered":20,"skipped":0,"pct":90.
|
|
29
|
-
,"/Users/jonathanburger/remotion/packages/core/src/ready-manager.ts": {"lines":{"total":24,"covered":23,"skipped":0,"pct":95.83},"functions":{"total":4,"covered":3,"skipped":0,"pct":75},"statements":{"total":26,"covered":25,"skipped":0,"pct":96.15},"branches":{"total":22,"covered":16,"skipped":0,"pct":72.
|
|
27
|
+
,"/Users/jonathanburger/remotion/packages/core/src/random.ts": {"lines":{"total":22,"covered":20,"skipped":0,"pct":90.9},"functions":{"total":3,"covered":3,"skipped":0,"pct":100},"statements":{"total":23,"covered":21,"skipped":0,"pct":91.3},"branches":{"total":8,"covered":6,"skipped":0,"pct":75}}
|
|
28
|
+
,"/Users/jonathanburger/remotion/packages/core/src/ready-manager.ts": {"lines":{"total":24,"covered":23,"skipped":0,"pct":95.83},"functions":{"total":4,"covered":3,"skipped":0,"pct":75},"statements":{"total":26,"covered":25,"skipped":0,"pct":96.15},"branches":{"total":22,"covered":16,"skipped":0,"pct":72.72}}
|
|
30
29
|
,"/Users/jonathanburger/remotion/packages/core/src/register-root.tsx": {"lines":{"total":27,"covered":14,"skipped":0,"pct":51.85},"functions":{"total":10,"covered":2,"skipped":0,"pct":20},"statements":{"total":34,"covered":21,"skipped":0,"pct":61.76},"branches":{"total":8,"covered":1,"skipped":0,"pct":12.5}}
|
|
31
30
|
,"/Users/jonathanburger/remotion/packages/core/src/setup-env-variables.ts": {"lines":{"total":20,"covered":5,"skipped":0,"pct":25},"functions":{"total":3,"covered":0,"skipped":0,"pct":0},"statements":{"total":21,"covered":6,"skipped":0,"pct":28.57},"branches":{"total":10,"covered":0,"skipped":0,"pct":0}}
|
|
32
|
-
,"/Users/jonathanburger/remotion/packages/core/src/timeline-position-state.ts": {"lines":{"total":
|
|
31
|
+
,"/Users/jonathanburger/remotion/packages/core/src/timeline-inout-position-state.ts": {"lines":{"total":10,"covered":5,"skipped":0,"pct":50},"functions":{"total":3,"covered":0,"skipped":0,"pct":0},"statements":{"total":12,"covered":7,"skipped":0,"pct":58.33},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
32
|
+
,"/Users/jonathanburger/remotion/packages/core/src/timeline-position-state.ts": {"lines":{"total":17,"covered":8,"skipped":0,"pct":47.05},"functions":{"total":7,"covered":1,"skipped":0,"pct":14.28},"statements":{"total":20,"covered":11,"skipped":0,"pct":55},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
33
33
|
,"/Users/jonathanburger/remotion/packages/core/src/truthy.ts": {"lines":{"total":2,"covered":2,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":2,"covered":2,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
34
34
|
,"/Users/jonathanburger/remotion/packages/core/src/use-frame.ts": {"lines":{"total":11,"covered":11,"skipped":0,"pct":100},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":13,"covered":13,"skipped":0,"pct":100},"branches":{"total":2,"covered":2,"skipped":0,"pct":100}}
|
|
35
|
-
,"/Users/jonathanburger/remotion/packages/core/src/use-lazy-component.ts": {"lines":{"total":12,"covered":6,"skipped":0,"pct":50},"functions":{"total":3,"covered":2,"skipped":0,"pct":66.
|
|
36
|
-
,"/Users/jonathanburger/remotion/packages/core/src/use-media-in-timeline.ts": {"lines":{"total":
|
|
37
|
-
,"/Users/jonathanburger/remotion/packages/core/src/use-media-playback.ts": {"lines":{"total":
|
|
38
|
-
,"/Users/jonathanburger/remotion/packages/core/src/use-media-tag-volume.ts": {"lines":{"total":18,"covered":15,"skipped":0,"pct":83.33},"functions":{"total":5,"covered":4,"skipped":0,"pct":80},"statements":{"total":20,"covered":17,"skipped":0,"pct":85},"branches":{"total":6,"covered":4,"skipped":0,"pct":66.
|
|
35
|
+
,"/Users/jonathanburger/remotion/packages/core/src/use-lazy-component.ts": {"lines":{"total":12,"covered":6,"skipped":0,"pct":50},"functions":{"total":3,"covered":2,"skipped":0,"pct":66.66},"statements":{"total":13,"covered":7,"skipped":0,"pct":53.84},"branches":{"total":6,"covered":1,"skipped":0,"pct":16.66}}
|
|
36
|
+
,"/Users/jonathanburger/remotion/packages/core/src/use-media-in-timeline.ts": {"lines":{"total":44,"covered":35,"skipped":0,"pct":79.54},"functions":{"total":10,"covered":8,"skipped":0,"pct":80},"statements":{"total":47,"covered":38,"skipped":0,"pct":80.85},"branches":{"total":24,"covered":13,"skipped":0,"pct":54.16}}
|
|
37
|
+
,"/Users/jonathanburger/remotion/packages/core/src/use-media-playback.ts": {"lines":{"total":53,"covered":9,"skipped":0,"pct":16.98},"functions":{"total":5,"covered":0,"skipped":0,"pct":0},"statements":{"total":54,"covered":10,"skipped":0,"pct":18.51},"branches":{"total":51,"covered":0,"skipped":0,"pct":0}}
|
|
38
|
+
,"/Users/jonathanburger/remotion/packages/core/src/use-media-tag-volume.ts": {"lines":{"total":18,"covered":15,"skipped":0,"pct":83.33},"functions":{"total":5,"covered":4,"skipped":0,"pct":80},"statements":{"total":20,"covered":17,"skipped":0,"pct":85},"branches":{"total":6,"covered":4,"skipped":0,"pct":66.66}}
|
|
39
39
|
,"/Users/jonathanburger/remotion/packages/core/src/use-sync-volume-with-media-tag.ts": {"lines":{"total":8,"covered":8,"skipped":0,"pct":100},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":9,"covered":9,"skipped":0,"pct":100},"branches":{"total":4,"covered":4,"skipped":0,"pct":100}}
|
|
40
40
|
,"/Users/jonathanburger/remotion/packages/core/src/use-unsafe-video-config.ts": {"lines":{"total":12,"covered":12,"skipped":0,"pct":100},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":13,"covered":13,"skipped":0,"pct":100},"branches":{"total":14,"covered":14,"skipped":0,"pct":100}}
|
|
41
|
-
,"/Users/jonathanburger/remotion/packages/core/src/use-video-config.ts": {"lines":{"total":6,"covered":
|
|
41
|
+
,"/Users/jonathanburger/remotion/packages/core/src/use-video-config.ts": {"lines":{"total":6,"covered":5,"skipped":0,"pct":83.33},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":7,"covered":6,"skipped":0,"pct":85.71},"branches":{"total":2,"covered":1,"skipped":0,"pct":50}}
|
|
42
42
|
,"/Users/jonathanburger/remotion/packages/core/src/use-video.ts": {"lines":{"total":6,"covered":6,"skipped":0,"pct":100},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":7,"covered":7,"skipped":0,"pct":100},"branches":{"total":4,"covered":4,"skipped":0,"pct":100}}
|
|
43
|
-
,"/Users/jonathanburger/remotion/packages/core/src/validate-media-props.ts": {"lines":{"total":9,"covered":8,"skipped":0,"pct":88.
|
|
43
|
+
,"/Users/jonathanburger/remotion/packages/core/src/validate-media-props.ts": {"lines":{"total":9,"covered":8,"skipped":0,"pct":88.88},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":10,"covered":9,"skipped":0,"pct":90},"branches":{"total":19,"covered":18,"skipped":0,"pct":94.73}}
|
|
44
44
|
,"/Users/jonathanburger/remotion/packages/core/src/validate-start-from-props.ts": {"lines":{"total":17,"covered":17,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":18,"covered":18,"skipped":0,"pct":100},"branches":{"total":20,"covered":20,"skipped":0,"pct":100}}
|
|
45
|
-
,"/Users/jonathanburger/remotion/packages/core/src/volume-position-state.ts": {"lines":{"total":15,"covered":5,"skipped":0,"pct":33.33},"functions":{"total":6,"covered":0,"skipped":0,"pct":0},"statements":{"total":17,"covered":7,"skipped":0,"pct":41.
|
|
46
|
-
,"/Users/jonathanburger/remotion/packages/core/src/volume-prop.ts": {"lines":{"total":13,"covered":12,"skipped":0,"pct":92.
|
|
47
|
-
,"/Users/jonathanburger/remotion/packages/core/src/warn-about-non-seekable-media.ts": {"lines":{"total":12,"covered":2,"skipped":0,"pct":16.
|
|
48
|
-
,"/Users/jonathanburger/remotion/packages/core/src/wrap-remotion-context.tsx": {"lines":{"total":16,"covered":7,"skipped":0,"pct":43.75},"functions":{"total":3,"covered":0,"skipped":0,"pct":0},"statements":{"total":17,"covered":8,"skipped":0,"pct":47.
|
|
45
|
+
,"/Users/jonathanburger/remotion/packages/core/src/volume-position-state.ts": {"lines":{"total":15,"covered":5,"skipped":0,"pct":33.33},"functions":{"total":6,"covered":0,"skipped":0,"pct":0},"statements":{"total":17,"covered":7,"skipped":0,"pct":41.17},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
46
|
+
,"/Users/jonathanburger/remotion/packages/core/src/volume-prop.ts": {"lines":{"total":13,"covered":12,"skipped":0,"pct":92.3},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":14,"covered":13,"skipped":0,"pct":92.85},"branches":{"total":11,"covered":10,"skipped":0,"pct":90.9}}
|
|
47
|
+
,"/Users/jonathanburger/remotion/packages/core/src/warn-about-non-seekable-media.ts": {"lines":{"total":12,"covered":2,"skipped":0,"pct":16.66},"functions":{"total":1,"covered":0,"skipped":0,"pct":0},"statements":{"total":13,"covered":3,"skipped":0,"pct":23.07},"branches":{"total":10,"covered":0,"skipped":0,"pct":0}}
|
|
48
|
+
,"/Users/jonathanburger/remotion/packages/core/src/wrap-remotion-context.tsx": {"lines":{"total":16,"covered":7,"skipped":0,"pct":43.75},"functions":{"total":3,"covered":0,"skipped":0,"pct":0},"statements":{"total":17,"covered":8,"skipped":0,"pct":47.05},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
49
49
|
,"/Users/jonathanburger/remotion/packages/core/src/audio/Audio.tsx": {"lines":{"total":23,"covered":21,"skipped":0,"pct":91.3},"functions":{"total":2,"covered":1,"skipped":0,"pct":50},"statements":{"total":23,"covered":21,"skipped":0,"pct":91.3},"branches":{"total":16,"covered":13,"skipped":0,"pct":81.25}}
|
|
50
50
|
,"/Users/jonathanburger/remotion/packages/core/src/audio/AudioForDevelopment.tsx": {"lines":{"total":29,"covered":10,"skipped":0,"pct":34.48},"functions":{"total":3,"covered":0,"skipped":0,"pct":0},"statements":{"total":29,"covered":10,"skipped":0,"pct":34.48},"branches":{"total":10,"covered":0,"skipped":0,"pct":0}}
|
|
51
|
-
,"/Users/jonathanburger/remotion/packages/core/src/audio/AudioForRendering.tsx": {"lines":{"total":
|
|
51
|
+
,"/Users/jonathanburger/remotion/packages/core/src/audio/AudioForRendering.tsx": {"lines":{"total":30,"covered":28,"skipped":0,"pct":93.33},"functions":{"total":5,"covered":4,"skipped":0,"pct":80},"statements":{"total":31,"covered":29,"skipped":0,"pct":93.54},"branches":{"total":24,"covered":22,"skipped":0,"pct":91.66}}
|
|
52
52
|
,"/Users/jonathanburger/remotion/packages/core/src/audio/index.tsx": {"lines":{"total":2,"covered":2,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":2,"covered":2,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
53
|
-
,"/Users/jonathanburger/remotion/packages/core/src/audio/shared-audio-tags.tsx": {"lines":{"total":66,"covered":19,"skipped":0,"pct":28.
|
|
53
|
+
,"/Users/jonathanburger/remotion/packages/core/src/audio/shared-audio-tags.tsx": {"lines":{"total":66,"covered":19,"skipped":0,"pct":28.78},"functions":{"total":24,"covered":3,"skipped":0,"pct":12.5},"statements":{"total":72,"covered":20,"skipped":0,"pct":27.77},"branches":{"total":28,"covered":1,"skipped":0,"pct":3.57}}
|
|
54
54
|
,"/Users/jonathanburger/remotion/packages/core/src/audio/use-audio-frame.ts": {"lines":{"total":11,"covered":11,"skipped":0,"pct":100},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":13,"covered":13,"skipped":0,"pct":100},"branches":{"total":8,"covered":8,"skipped":0,"pct":100}}
|
|
55
|
-
,"/Users/jonathanburger/remotion/packages/core/src/config/browser-executable.ts": {"lines":{"total":5,"covered":3,"skipped":0,"pct":60},"functions":{"total":2,"covered":0,"skipped":0,"pct":0},"statements":{"total":7,"covered":5,"skipped":0,"pct":71.
|
|
55
|
+
,"/Users/jonathanburger/remotion/packages/core/src/config/browser-executable.ts": {"lines":{"total":5,"covered":3,"skipped":0,"pct":60},"functions":{"total":2,"covered":0,"skipped":0,"pct":0},"statements":{"total":7,"covered":5,"skipped":0,"pct":71.42},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
56
56
|
,"/Users/jonathanburger/remotion/packages/core/src/config/browser.ts": {"lines":{"total":10,"covered":4,"skipped":0,"pct":40},"functions":{"total":2,"covered":0,"skipped":0,"pct":0},"statements":{"total":12,"covered":6,"skipped":0,"pct":50},"branches":{"total":4,"covered":0,"skipped":0,"pct":0}}
|
|
57
|
-
,"/Users/jonathanburger/remotion/packages/core/src/config/codec.ts": {"lines":{"total":
|
|
57
|
+
,"/Users/jonathanburger/remotion/packages/core/src/config/codec.ts": {"lines":{"total":59,"covered":36,"skipped":0,"pct":61.01},"functions":{"total":4,"covered":3,"skipped":0,"pct":75},"statements":{"total":63,"covered":40,"skipped":0,"pct":63.49},"branches":{"total":66,"covered":45,"skipped":0,"pct":68.18}}
|
|
58
58
|
,"/Users/jonathanburger/remotion/packages/core/src/config/concurrency.ts": {"lines":{"total":7,"covered":7,"skipped":0,"pct":100},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":9,"covered":9,"skipped":0,"pct":100},"branches":{"total":2,"covered":2,"skipped":0,"pct":100}}
|
|
59
|
-
,"/Users/jonathanburger/remotion/packages/core/src/config/crf.ts": {"lines":{"total":45,"covered":42,"skipped":0,"pct":93.33},"functions":{"total":6,"covered":6,"skipped":0,"pct":100},"statements":{"total":51,"covered":48,"skipped":0,"pct":94.
|
|
60
|
-
,"/Users/jonathanburger/remotion/packages/core/src/config/env-file.ts": {"lines":{"total":4,"covered":3,"skipped":0,"pct":75},"functions":{"total":2,"covered":0,"skipped":0,"pct":0},"statements":{"total":7,"covered":5,"skipped":0,"pct":71.
|
|
61
|
-
,"/Users/jonathanburger/remotion/packages/core/src/config/
|
|
59
|
+
,"/Users/jonathanburger/remotion/packages/core/src/config/crf.ts": {"lines":{"total":45,"covered":42,"skipped":0,"pct":93.33},"functions":{"total":6,"covered":6,"skipped":0,"pct":100},"statements":{"total":51,"covered":48,"skipped":0,"pct":94.11},"branches":{"total":45,"covered":42,"skipped":0,"pct":93.33}}
|
|
60
|
+
,"/Users/jonathanburger/remotion/packages/core/src/config/env-file.ts": {"lines":{"total":4,"covered":3,"skipped":0,"pct":75},"functions":{"total":2,"covered":0,"skipped":0,"pct":0},"statements":{"total":7,"covered":5,"skipped":0,"pct":71.42},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
61
|
+
,"/Users/jonathanburger/remotion/packages/core/src/config/ffmpeg-executable.ts": {"lines":{"total":5,"covered":3,"skipped":0,"pct":60},"functions":{"total":2,"covered":0,"skipped":0,"pct":0},"statements":{"total":7,"covered":5,"skipped":0,"pct":71.42},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
62
|
+
,"/Users/jonathanburger/remotion/packages/core/src/config/frame-range.ts": {"lines":{"total":48,"covered":48,"skipped":0,"pct":100},"functions":{"total":5,"covered":5,"skipped":0,"pct":100},"statements":{"total":54,"covered":54,"skipped":0,"pct":100},"branches":{"total":38,"covered":37,"skipped":0,"pct":97.36}}
|
|
63
|
+
,"/Users/jonathanburger/remotion/packages/core/src/config/frames-per-lambda.ts": {"lines":{"total":4,"covered":2,"skipped":0,"pct":50},"functions":{"total":2,"covered":0,"skipped":0,"pct":0},"statements":{"total":6,"covered":4,"skipped":0,"pct":66.66},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
62
64
|
,"/Users/jonathanburger/remotion/packages/core/src/config/image-format.ts": {"lines":{"total":20,"covered":20,"skipped":0,"pct":100},"functions":{"total":3,"covered":3,"skipped":0,"pct":100},"statements":{"total":23,"covered":23,"skipped":0,"pct":100},"branches":{"total":14,"covered":14,"skipped":0,"pct":100}}
|
|
63
65
|
,"/Users/jonathanburger/remotion/packages/core/src/config/image-sequence.ts": {"lines":{"total":7,"covered":7,"skipped":0,"pct":100},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":9,"covered":9,"skipped":0,"pct":100},"branches":{"total":4,"covered":4,"skipped":0,"pct":100}}
|
|
64
|
-
,"/Users/jonathanburger/remotion/packages/core/src/config/index.ts": {"lines":{"total":
|
|
65
|
-
,"/Users/jonathanburger/remotion/packages/core/src/config/input-props.ts": {"lines":{"total":
|
|
66
|
+
,"/Users/jonathanburger/remotion/packages/core/src/config/index.ts": {"lines":{"total":20,"covered":20,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":20,"covered":20,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
67
|
+
,"/Users/jonathanburger/remotion/packages/core/src/config/input-props.ts": {"lines":{"total":23,"covered":14,"skipped":0,"pct":60.86},"functions":{"total":2,"covered":1,"skipped":0,"pct":50},"statements":{"total":24,"covered":15,"skipped":0,"pct":62.5},"branches":{"total":10,"covered":6,"skipped":0,"pct":60}}
|
|
66
68
|
,"/Users/jonathanburger/remotion/packages/core/src/config/log.ts": {"lines":{"total":12,"covered":12,"skipped":0,"pct":100},"functions":{"total":5,"covered":5,"skipped":0,"pct":100},"statements":{"total":16,"covered":16,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
67
|
-
,"/Users/jonathanburger/remotion/packages/core/src/config/max-timeline-tracks.ts": {"lines":{"total":13,"covered":3,"skipped":0,"pct":23.
|
|
68
|
-
,"/Users/jonathanburger/remotion/packages/core/src/config/override-webpack.ts": {"lines":{"total":6,"covered":4,"skipped":0,"pct":66.
|
|
69
|
+
,"/Users/jonathanburger/remotion/packages/core/src/config/max-timeline-tracks.ts": {"lines":{"total":13,"covered":3,"skipped":0,"pct":23.07},"functions":{"total":2,"covered":0,"skipped":0,"pct":0},"statements":{"total":15,"covered":5,"skipped":0,"pct":33.33},"branches":{"total":8,"covered":0,"skipped":0,"pct":0}}
|
|
70
|
+
,"/Users/jonathanburger/remotion/packages/core/src/config/override-webpack.ts": {"lines":{"total":6,"covered":4,"skipped":0,"pct":66.66},"functions":{"total":3,"covered":0,"skipped":0,"pct":0},"statements":{"total":10,"covered":7,"skipped":0,"pct":70},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
69
71
|
,"/Users/jonathanburger/remotion/packages/core/src/config/overwrite.ts": {"lines":{"total":6,"covered":6,"skipped":0,"pct":100},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":9,"covered":9,"skipped":0,"pct":100},"branches":{"total":2,"covered":2,"skipped":0,"pct":100}}
|
|
70
72
|
,"/Users/jonathanburger/remotion/packages/core/src/config/pixel-format.ts": {"lines":{"total":16,"covered":16,"skipped":0,"pct":100},"functions":{"total":3,"covered":3,"skipped":0,"pct":100},"statements":{"total":19,"covered":19,"skipped":0,"pct":100},"branches":{"total":10,"covered":10,"skipped":0,"pct":100}}
|
|
71
|
-
,"/Users/jonathanburger/remotion/packages/core/src/config/preview-server.ts": {"lines":{"total":10,"covered":8,"skipped":0,"pct":80},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":13,"covered":11,"skipped":0,"pct":84.
|
|
73
|
+
,"/Users/jonathanburger/remotion/packages/core/src/config/preview-server.ts": {"lines":{"total":10,"covered":8,"skipped":0,"pct":80},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":13,"covered":11,"skipped":0,"pct":84.61},"branches":{"total":8,"covered":7,"skipped":0,"pct":87.5}}
|
|
72
74
|
,"/Users/jonathanburger/remotion/packages/core/src/config/prores-profile.ts": {"lines":{"total":11,"covered":11,"skipped":0,"pct":100},"functions":{"total":4,"covered":4,"skipped":0,"pct":100},"statements":{"total":14,"covered":14,"skipped":0,"pct":100},"branches":{"total":8,"covered":8,"skipped":0,"pct":100}}
|
|
73
75
|
,"/Users/jonathanburger/remotion/packages/core/src/config/quality.ts": {"lines":{"total":10,"covered":10,"skipped":0,"pct":100},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":13,"covered":13,"skipped":0,"pct":100},"branches":{"total":4,"covered":4,"skipped":0,"pct":100}}
|
|
74
|
-
,"/Users/jonathanburger/remotion/packages/core/src/config/still-frame.ts": {"lines":{"total":6,"covered":4,"skipped":0,"pct":66.
|
|
76
|
+
,"/Users/jonathanburger/remotion/packages/core/src/config/still-frame.ts": {"lines":{"total":6,"covered":4,"skipped":0,"pct":66.66},"functions":{"total":2,"covered":0,"skipped":0,"pct":0},"statements":{"total":9,"covered":6,"skipped":0,"pct":66.66},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
75
77
|
,"/Users/jonathanburger/remotion/packages/core/src/config/webpack-caching.ts": {"lines":{"total":8,"covered":8,"skipped":0,"pct":100},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":10,"covered":10,"skipped":0,"pct":100},"branches":{"total":2,"covered":2,"skipped":0,"pct":100}}
|
|
76
|
-
,"/Users/jonathanburger/remotion/packages/core/src/
|
|
77
|
-
,"/Users/jonathanburger/remotion/packages/core/src/
|
|
78
|
+
,"/Users/jonathanburger/remotion/packages/core/src/loop/index.tsx": {"lines":{"total":15,"covered":14,"skipped":0,"pct":93.33},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":16,"covered":15,"skipped":0,"pct":93.75},"branches":{"total":9,"covered":8,"skipped":0,"pct":88.88}}
|
|
79
|
+
,"/Users/jonathanburger/remotion/packages/core/src/perf/index.ts": {"lines":{"total":16,"covered":5,"skipped":0,"pct":31.25},"functions":{"total":5,"covered":0,"skipped":0,"pct":0},"statements":{"total":19,"covered":8,"skipped":0,"pct":42.1},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
80
|
+
,"/Users/jonathanburger/remotion/packages/core/src/sequencing/index.tsx": {"lines":{"total":44,"covered":43,"skipped":0,"pct":97.72},"functions":{"total":7,"covered":7,"skipped":0,"pct":100},"statements":{"total":46,"covered":45,"skipped":0,"pct":97.82},"branches":{"total":61,"covered":59,"skipped":0,"pct":96.72}}
|
|
78
81
|
,"/Users/jonathanburger/remotion/packages/core/src/series/flatten-children.tsx": {"lines":{"total":8,"covered":8,"skipped":0,"pct":100},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":9,"covered":9,"skipped":0,"pct":100},"branches":{"total":2,"covered":2,"skipped":0,"pct":100}}
|
|
79
82
|
,"/Users/jonathanburger/remotion/packages/core/src/series/index.tsx": {"lines":{"total":36,"covered":35,"skipped":0,"pct":97.22},"functions":{"total":4,"covered":4,"skipped":0,"pct":100},"statements":{"total":36,"covered":35,"skipped":0,"pct":97.22},"branches":{"total":20,"covered":19,"skipped":0,"pct":95}}
|
|
80
|
-
,"/Users/jonathanburger/remotion/packages/core/src/spring/index.ts": {"lines":{"total":9,"covered":6,"skipped":0,"pct":66.
|
|
81
|
-
,"/Users/jonathanburger/remotion/packages/core/src/spring/measure-spring.ts": {"lines":{"total":38,"covered":37,"skipped":0,"pct":97.
|
|
82
|
-
,"/Users/jonathanburger/remotion/packages/core/src/spring/spring-utils.ts": {"lines":{"total":43,"covered":43,"skipped":0,"pct":100},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":44,"covered":44,"skipped":0,"pct":100},"branches":{"total":13,"covered":8,"skipped":0,"pct":61.
|
|
83
|
+
,"/Users/jonathanburger/remotion/packages/core/src/spring/index.ts": {"lines":{"total":9,"covered":6,"skipped":0,"pct":66.66},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":10,"covered":7,"skipped":0,"pct":70},"branches":{"total":7,"covered":4,"skipped":0,"pct":57.14}}
|
|
84
|
+
,"/Users/jonathanburger/remotion/packages/core/src/spring/measure-spring.ts": {"lines":{"total":38,"covered":37,"skipped":0,"pct":97.36},"functions":{"total":3,"covered":3,"skipped":0,"pct":100},"statements":{"total":39,"covered":38,"skipped":0,"pct":97.43},"branches":{"total":20,"covered":18,"skipped":0,"pct":90}}
|
|
85
|
+
,"/Users/jonathanburger/remotion/packages/core/src/spring/spring-utils.ts": {"lines":{"total":43,"covered":43,"skipped":0,"pct":100},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":44,"covered":44,"skipped":0,"pct":100},"branches":{"total":13,"covered":8,"skipped":0,"pct":61.53}}
|
|
83
86
|
,"/Users/jonathanburger/remotion/packages/core/src/test/expect-to-throw.ts": {"lines":{"total":5,"covered":5,"skipped":0,"pct":100},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":7,"covered":7,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
84
87
|
,"/Users/jonathanburger/remotion/packages/core/src/validation/validate-composition-id.ts": {"lines":{"total":6,"covered":6,"skipped":0,"pct":100},"functions":{"total":3,"covered":3,"skipped":0,"pct":100},"statements":{"total":10,"covered":10,"skipped":0,"pct":100},"branches":{"total":2,"covered":2,"skipped":0,"pct":100}}
|
|
85
|
-
,"/Users/jonathanburger/remotion/packages/core/src/validation/validate-dimensions.ts": {"lines":{"total":11,"covered":9,"skipped":0,"pct":81.
|
|
88
|
+
,"/Users/jonathanburger/remotion/packages/core/src/validation/validate-dimensions.ts": {"lines":{"total":11,"covered":9,"skipped":0,"pct":81.81},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":12,"covered":10,"skipped":0,"pct":83.33},"branches":{"total":10,"covered":8,"skipped":0,"pct":80}}
|
|
86
89
|
,"/Users/jonathanburger/remotion/packages/core/src/validation/validate-duration-in-frames.ts": {"lines":{"total":7,"covered":7,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":8,"covered":8,"skipped":0,"pct":100},"branches":{"total":6,"covered":6,"skipped":0,"pct":100}}
|
|
87
|
-
,"/Users/jonathanburger/remotion/packages/core/src/validation/validate-fps.ts": {"lines":{"total":9,"covered":7,"skipped":0,"pct":77.
|
|
88
|
-
,"/Users/jonathanburger/remotion/packages/core/src/validation/validate-frame.ts": {"lines":{"total":13,"covered":12,"skipped":0,"pct":92.
|
|
90
|
+
,"/Users/jonathanburger/remotion/packages/core/src/validation/validate-fps.ts": {"lines":{"total":9,"covered":7,"skipped":0,"pct":77.77},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":10,"covered":8,"skipped":0,"pct":80},"branches":{"total":8,"covered":6,"skipped":0,"pct":75}}
|
|
91
|
+
,"/Users/jonathanburger/remotion/packages/core/src/validation/validate-frame.ts": {"lines":{"total":13,"covered":12,"skipped":0,"pct":92.3},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":14,"covered":13,"skipped":0,"pct":92.85},"branches":{"total":12,"covered":11,"skipped":0,"pct":91.66}}
|
|
89
92
|
,"/Users/jonathanburger/remotion/packages/core/src/validation/validate-image-format.ts": {"lines":{"total":3,"covered":3,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":4,"covered":4,"skipped":0,"pct":100},"branches":{"total":4,"covered":4,"skipped":0,"pct":100}}
|
|
90
|
-
,"/Users/jonathanburger/remotion/packages/core/src/validation/validate-quality.ts": {"lines":{"total":11,"covered":9,"skipped":0,"pct":81.
|
|
91
|
-
,"/Users/jonathanburger/remotion/packages/core/src/video/Video.tsx": {"lines":{"total":21,"covered":19,"skipped":0,"pct":90.
|
|
92
|
-
,"/Users/jonathanburger/remotion/packages/core/src/video/VideoForDevelopment.tsx": {"lines":{"total":21,"covered":9,"skipped":0,"pct":42.
|
|
93
|
-
,"/Users/jonathanburger/remotion/packages/core/src/video/VideoForRendering.tsx": {"lines":{"total":
|
|
93
|
+
,"/Users/jonathanburger/remotion/packages/core/src/validation/validate-quality.ts": {"lines":{"total":11,"covered":9,"skipped":0,"pct":81.81},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":12,"covered":10,"skipped":0,"pct":83.33},"branches":{"total":14,"covered":12,"skipped":0,"pct":85.71}}
|
|
94
|
+
,"/Users/jonathanburger/remotion/packages/core/src/video/Video.tsx": {"lines":{"total":21,"covered":19,"skipped":0,"pct":90.47},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":21,"covered":19,"skipped":0,"pct":90.47},"branches":{"total":16,"covered":14,"skipped":0,"pct":87.5}}
|
|
95
|
+
,"/Users/jonathanburger/remotion/packages/core/src/video/VideoForDevelopment.tsx": {"lines":{"total":21,"covered":9,"skipped":0,"pct":42.85},"functions":{"total":2,"covered":0,"skipped":0,"pct":0},"statements":{"total":21,"covered":9,"skipped":0,"pct":42.85},"branches":{"total":6,"covered":0,"skipped":0,"pct":0}}
|
|
96
|
+
,"/Users/jonathanburger/remotion/packages/core/src/video/VideoForRendering.tsx": {"lines":{"total":64,"covered":42,"skipped":0,"pct":65.62},"functions":{"total":12,"covered":6,"skipped":0,"pct":50},"statements":{"total":65,"covered":43,"skipped":0,"pct":66.15},"branches":{"total":50,"covered":39,"skipped":0,"pct":78}}
|
|
94
97
|
,"/Users/jonathanburger/remotion/packages/core/src/video/get-current-time.ts": {"lines":{"total":10,"covered":10,"skipped":0,"pct":100},"functions":{"total":1,"covered":1,"skipped":0,"pct":100},"statements":{"total":11,"covered":11,"skipped":0,"pct":100},"branches":{"total":4,"covered":4,"skipped":0,"pct":100}}
|
|
95
98
|
,"/Users/jonathanburger/remotion/packages/core/src/video/index.ts": {"lines":{"total":2,"covered":2,"skipped":0,"pct":100},"functions":{"total":0,"covered":0,"skipped":0,"pct":100},"statements":{"total":2,"covered":2,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
|
|
96
99
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RemotionRoot.d.ts","sourceRoot":"","sources":["../src/RemotionRoot.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"RemotionRoot.d.ts","sourceRoot":"","sources":["../src/RemotionRoot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAMN,MAAM,OAAO,CAAC;AAaf,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAwEhC,CAAC"}
|
package/dist/RemotionRoot.js
CHANGED
|
@@ -14,7 +14,9 @@ const RemotionRoot = ({ children }) => {
|
|
|
14
14
|
const [remotionRootId] = (0, react_1.useState)(() => String((0, random_1.random)(null)));
|
|
15
15
|
const [frame, setFrame] = (0, react_1.useState)((_a = window.remotion_initialFrame) !== null && _a !== void 0 ? _a : 0);
|
|
16
16
|
const [playing, setPlaying] = (0, react_1.useState)(false);
|
|
17
|
+
const imperativePlaying = (0, react_1.useRef)(false);
|
|
17
18
|
const [fastRefreshes, setFastRefreshes] = (0, react_1.useState)(0);
|
|
19
|
+
const [playbackRate, setPlaybackRate] = (0, react_1.useState)(1);
|
|
18
20
|
(0, react_1.useLayoutEffect)(() => {
|
|
19
21
|
if (typeof window !== 'undefined') {
|
|
20
22
|
window.remotion_setFrame = (f) => {
|
|
@@ -29,9 +31,12 @@ const RemotionRoot = ({ children }) => {
|
|
|
29
31
|
return {
|
|
30
32
|
frame,
|
|
31
33
|
playing,
|
|
34
|
+
imperativePlaying,
|
|
32
35
|
rootId: remotionRootId,
|
|
36
|
+
playbackRate,
|
|
37
|
+
setPlaybackRate,
|
|
33
38
|
};
|
|
34
|
-
}, [frame, playing, remotionRootId]);
|
|
39
|
+
}, [frame, playbackRate, playing, remotionRootId]);
|
|
35
40
|
const setTimelineContextValue = (0, react_1.useMemo)(() => {
|
|
36
41
|
return {
|
|
37
42
|
setFrame,
|
package/dist/RemotionRoot.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RemotionRoot.js","sourceRoot":"","sources":["../src/RemotionRoot.tsx"],"names":[],"mappings":";;;;AAAA,
|
|
1
|
+
{"version":3,"file":"RemotionRoot.js","sourceRoot":"","sources":["../src/RemotionRoot.tsx"],"names":[],"mappings":";;;;AAAA,iCAMe;AACf,iEAAqE;AACrE,6DAAgE;AAChE,mCAAoD;AACpD,qCAAgC;AAChC,mDAA4D;AAC5D,uEAKmC;AAE5B,MAAM,YAAY,GAAa,CAAC,EAAC,QAAQ,EAAC,EAAE,EAAE;;IACp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C,CAAC;IAEnD,MAAM,uBAAuB,GAAG,IAAA,eAAO,EAAC,GAA4B,EAAE;QACrE,OAAO;YACN,QAAQ;YACR,UAAU;SACV,CAAC;IACH,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,MAAM,YAAY,GAAG,IAAA,eAAO,EAAC,GAAkB,EAAE;QAChD,IAAI,OAAO,GAAG,CAAC,CAAC;QAChB,OAAO;YACN,QAAQ,EAAE,GAAG,EAAE,CAAC,OAAO,EAAE;YACzB,aAAa;SACb,CAAC;IACH,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC,CAAC;IAEpB,IAAA,iBAAS,EAAC,GAAG,EAAE;QACd,IAAI,MAAM,CAAC,GAAG,EAAE;YACf,MAAM,CAAC,GAAG,CAAC,gBAAgB,CAAC,CAAC,MAAM,EAAE,EAAE;gBACtC,IAAI,MAAM,KAAK,MAAM,EAAE;oBACtB,gBAAgB,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;iBAC/B;YACF,CAAC,CAAC,CAAC;SACH;IACF,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,OAAO,CACN,uBAAC,oBAAY,CAAC,QAAQ,kBAAC,KAAK,EAAE,YAAY,gBACzC,uBAAC,yCAAe,CAAC,QAAQ,kBAAC,KAAK,EAAE,oBAAoB,gBACpD,uBAAC,4CAAkB,CAAC,QAAQ,kBAAC,KAAK,EAAE,uBAAuB,gBAC1D,uBAAC,+CAA0B,cAC1B,uBAAC,8CAA0B;oBAC1B,8LAA8L;;wBAA9L,8LAA8L;wBAC9L,iBAAiB,EAAE,CAAC,gBAEnB,QAAQ,YACmB,WACD,YACA,YACJ,YACJ,CACxB,CAAC;AACH,CAAC,CAAC;AAxEW,QAAA,YAAY,gBAwEvB"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
declare const validOptions: readonly ["tab", "browser"];
|
|
2
|
+
export declare type ConcurrentMode = typeof validOptions[number];
|
|
3
|
+
export declare const setConcurrentMode: (mode: ConcurrentMode) => void;
|
|
4
|
+
export declare const getConcurrentMode: () => "tab" | "browser";
|
|
5
|
+
export {};
|
|
6
|
+
//# sourceMappingURL=concurrent-mode.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"concurrent-mode.d.ts","sourceRoot":"","sources":["../../src/config/concurrent-mode.ts"],"names":[],"mappings":"AAAA,QAAA,MAAM,YAAY,6BAA8B,CAAC;AAEjD,oBAAY,cAAc,GAAG,OAAO,YAAY,CAAC,MAAM,CAAC,CAAC;AAIzD,eAAO,MAAM,iBAAiB,SAAU,cAAc,SAMrD,CAAC;AAEF,eAAO,MAAM,iBAAiB,yBAE7B,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getConcurrentMode = exports.setConcurrentMode = void 0;
|
|
4
|
+
const validOptions = ['tab', 'browser'];
|
|
5
|
+
let currentConcurrentMode = 'tab';
|
|
6
|
+
const setConcurrentMode = (mode) => {
|
|
7
|
+
if (!validOptions.includes(mode)) {
|
|
8
|
+
throw new TypeError(`Value ${mode} is not valid as a concurrent mode.`);
|
|
9
|
+
}
|
|
10
|
+
currentConcurrentMode = mode;
|
|
11
|
+
};
|
|
12
|
+
exports.setConcurrentMode = setConcurrentMode;
|
|
13
|
+
const getConcurrentMode = () => {
|
|
14
|
+
return currentConcurrentMode;
|
|
15
|
+
};
|
|
16
|
+
exports.getConcurrentMode = getConcurrentMode;
|
|
17
|
+
//# sourceMappingURL=concurrent-mode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"concurrent-mode.js","sourceRoot":"","sources":["../../src/config/concurrent-mode.ts"],"names":[],"mappings":";;;AAAA,MAAM,YAAY,GAAG,CAAC,KAAK,EAAE,SAAS,CAAU,CAAC;AAIjD,IAAI,qBAAqB,GAAmB,KAAK,CAAC;AAE3C,MAAM,iBAAiB,GAAG,CAAC,IAAoB,EAAE,EAAE;IACzD,IAAI,CAAC,YAAY,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE;QACjC,MAAM,IAAI,SAAS,CAAC,SAAS,IAAI,qCAAqC,CAAC,CAAC;KACxE;IAED,qBAAqB,GAAG,IAAI,CAAC;AAC9B,CAAC,CAAC;AANW,QAAA,iBAAiB,qBAM5B;AAEK,MAAM,iBAAiB,GAAG,GAAG,EAAE;IACrC,OAAO,qBAAqB,CAAC;AAC9B,CAAC,CAAC;AAFW,QAAA,iBAAiB,qBAE5B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ffmpeg-executable.d.ts","sourceRoot":"","sources":["../../src/config/ffmpeg-executable.ts"],"names":[],"mappings":"AAAA,oBAAY,gBAAgB,GAAG,MAAM,GAAG,IAAI,CAAC;AAI7C,eAAO,MAAM,mBAAmB,eAAgB,gBAAgB,SAE/D,CAAC;AAEF,eAAO,MAAM,yBAAyB,wBAErC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getCustomFfmpegExecutable = exports.setFfmpegExecutable = void 0;
|
|
4
|
+
let currentFfmpegExecutablePath = null;
|
|
5
|
+
const setFfmpegExecutable = (ffmpegPath) => {
|
|
6
|
+
currentFfmpegExecutablePath = ffmpegPath;
|
|
7
|
+
};
|
|
8
|
+
exports.setFfmpegExecutable = setFfmpegExecutable;
|
|
9
|
+
const getCustomFfmpegExecutable = () => {
|
|
10
|
+
return currentFfmpegExecutablePath;
|
|
11
|
+
};
|
|
12
|
+
exports.getCustomFfmpegExecutable = getCustomFfmpegExecutable;
|
|
13
|
+
//# sourceMappingURL=ffmpeg-executable.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ffmpeg-executable.js","sourceRoot":"","sources":["../../src/config/ffmpeg-executable.ts"],"names":[],"mappings":";;;AAEA,IAAI,2BAA2B,GAAqB,IAAI,CAAC;AAElD,MAAM,mBAAmB,GAAG,CAAC,UAA4B,EAAE,EAAE;IACnE,2BAA2B,GAAG,UAAU,CAAC;AAC1C,CAAC,CAAC;AAFW,QAAA,mBAAmB,uBAE9B;AAEK,MAAM,yBAAyB,GAAG,GAAG,EAAE;IAC7C,OAAO,2BAA2B,CAAC;AACpC,CAAC,CAAC;AAFW,QAAA,yBAAyB,6BAEpC"}
|
package/dist/config/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ import { ImageFormat, StillImageFormat } from './image-format';
|
|
|
7
7
|
import { LogLevel } from './log';
|
|
8
8
|
import { WebpackConfiguration, WebpackOverrideFn } from './override-webpack';
|
|
9
9
|
import { PixelFormat } from './pixel-format';
|
|
10
|
+
import { FfmpegExecutable } from './ffmpeg-executable';
|
|
10
11
|
export declare const Config: {
|
|
11
12
|
readonly Preview: {
|
|
12
13
|
/**
|
|
@@ -81,6 +82,11 @@ export declare const Config: {
|
|
|
81
82
|
* The frame count starts at 0.
|
|
82
83
|
*/
|
|
83
84
|
readonly setFrameRange: (newFrameRange: FrameRange | null) => void;
|
|
85
|
+
/**
|
|
86
|
+
* Specify local ffmpeg executable.
|
|
87
|
+
* Default: null, which will use ffmpeg available in PATH.
|
|
88
|
+
*/
|
|
89
|
+
readonly setFfmpegExecutable: (ffmpegPath: FfmpegExecutable) => void;
|
|
84
90
|
};
|
|
85
91
|
readonly Output: {
|
|
86
92
|
/**
|
|
@@ -130,5 +136,5 @@ export declare const Config: {
|
|
|
130
136
|
readonly setFramesPerLambda: (newFrames: number) => void;
|
|
131
137
|
};
|
|
132
138
|
};
|
|
133
|
-
export type { PixelFormat, Concurrency, WebpackConfiguration, WebpackOverrideFn, BrowserExecutable, ImageFormat, Codec, Browser, FrameRange, LogLevel, StillImageFormat, };
|
|
139
|
+
export type { PixelFormat, Concurrency, WebpackConfiguration, WebpackOverrideFn, BrowserExecutable, FfmpegExecutable, ImageFormat, Codec, Browser, FrameRange, LogLevel, StillImageFormat, };
|
|
134
140
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAClC,OAAO,EAAC,iBAAiB,EAAuB,MAAM,sBAAsB,CAAC;AAC7E,OAAO,EAAC,KAAK,EAA4B,MAAM,SAAS,CAAC;AACzD,OAAO,EAAC,WAAW,EAAiB,MAAM,eAAe,CAAC;AAG1D,OAAO,EAAC,UAAU,EAAgB,MAAM,eAAe,CAAC;AAExD,OAAO,EAAC,WAAW,EAAkB,gBAAgB,EAAC,MAAM,gBAAgB,CAAC;AAE7E,OAAO,EAAC,QAAQ,EAAc,MAAM,OAAO,CAAC;AAE5C,OAAO,EAEN,oBAAoB,EACpB,iBAAiB,EACjB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAC,WAAW,EAAiB,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,OAAO,EAAC,MAAM,WAAW,CAAC;AAClC,OAAO,EAAC,iBAAiB,EAAuB,MAAM,sBAAsB,CAAC;AAC7E,OAAO,EAAC,KAAK,EAA4B,MAAM,SAAS,CAAC;AACzD,OAAO,EAAC,WAAW,EAAiB,MAAM,eAAe,CAAC;AAG1D,OAAO,EAAC,UAAU,EAAgB,MAAM,eAAe,CAAC;AAExD,OAAO,EAAC,WAAW,EAAkB,gBAAgB,EAAC,MAAM,gBAAgB,CAAC;AAE7E,OAAO,EAAC,QAAQ,EAAc,MAAM,OAAO,CAAC;AAE5C,OAAO,EAEN,oBAAoB,EACpB,iBAAiB,EACjB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAC,WAAW,EAAiB,MAAM,gBAAgB,CAAC;AAK3D,OAAO,EAAC,gBAAgB,EAAsB,MAAM,qBAAqB,CAAC;AAE1E,eAAO,MAAM,MAAM;;QAEjB;;;;WAIG;;;;QAIH;;;;WAIG;;QAEH;;;WAGG;;QAEH;;;;WAIG;;;;QAIH;;;;;;WAMG;;;;QAIH;;;WAGG;;;;QAIH;;;WAGG;;QAEH;;;WAGG;;QAEH;;;;;WAKG;;QAEH;;WAEG;;QAEH;;;;;WAKG;;QAGH;;;WAGG;;;;QAIH;;;WAGG;;QAEH;;;;WAIG;;QAEH;;;WAGG;;QAEH;;;WAGG;;QAEH;;;;WAIG;;QAEH;;WAEG;;QAEH;;;;;WAKG;;;;QAIH;;;WAGG;;;CAGK,CAAC;AAEX,YAAY,EACX,WAAW,EACX,WAAW,EACX,oBAAoB,EACpB,iBAAiB,EACjB,iBAAiB,EACjB,gBAAgB,EAChB,WAAW,EACX,KAAK,EACL,OAAO,EACP,UAAU,EACV,QAAQ,EACR,gBAAgB,GAChB,CAAC"}
|
package/dist/config/index.js
CHANGED
|
@@ -19,6 +19,7 @@ const preview_server_1 = require("./preview-server");
|
|
|
19
19
|
const prores_profile_1 = require("./prores-profile");
|
|
20
20
|
const quality_1 = require("./quality");
|
|
21
21
|
const webpack_caching_1 = require("./webpack-caching");
|
|
22
|
+
const ffmpeg_executable_1 = require("./ffmpeg-executable");
|
|
22
23
|
exports.Config = {
|
|
23
24
|
Preview: {
|
|
24
25
|
/**
|
|
@@ -93,6 +94,11 @@ exports.Config = {
|
|
|
93
94
|
* The frame count starts at 0.
|
|
94
95
|
*/
|
|
95
96
|
setFrameRange: frame_range_1.setFrameRange,
|
|
97
|
+
/**
|
|
98
|
+
* Specify local ffmpeg executable.
|
|
99
|
+
* Default: null, which will use ffmpeg available in PATH.
|
|
100
|
+
*/
|
|
101
|
+
setFfmpegExecutable: ffmpeg_executable_1.setFfmpegExecutable,
|
|
96
102
|
},
|
|
97
103
|
Output: {
|
|
98
104
|
/**
|
package/dist/config/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":";;;AACA,6DAA6E;AAC7E,mCAAyD;AACzD,+CAA0D;AAC1D,+BAA6B;AAC7B,yCAA6C;AAC7C,+CAAwD;AACxD,2DAAuD;AACvD,iDAA6E;AAC7E,qDAAkD;AAClD,+BAA4C;AAC5C,+DAA2D;AAC3D,yDAI4B;AAC5B,2CAA+C;AAC/C,iDAA2D;AAC3D,qDAAyC;AACzC,qDAAkD;AAClD,uCAAqC;AACrC,uDAAoD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":";;;AACA,6DAA6E;AAC7E,mCAAyD;AACzD,+CAA0D;AAC1D,+BAA6B;AAC7B,yCAA6C;AAC7C,+CAAwD;AACxD,2DAAuD;AACvD,iDAA6E;AAC7E,qDAAkD;AAClD,+BAA4C;AAC5C,+DAA2D;AAC3D,yDAI4B;AAC5B,2CAA+C;AAC/C,iDAA2D;AAC3D,qDAAyC;AACzC,qDAAkD;AAClD,uCAAqC;AACrC,uDAAoD;AACpD,2DAA0E;AAE7D,QAAA,MAAM,GAAG;IACrB,OAAO,EAAE;QACR;;;;WAIG;QACH,oBAAoB,EAApB,0CAAoB;KACpB;IACD,QAAQ,EAAE;QACT;;;;WAIG;QACH,qBAAqB,EAArB,wCAAqB;QACrB;;;WAGG;QACH,iBAAiB,EAAE,mCAAiB;QACpC;;;;WAIG;QACH,OAAO,EAAP,wBAAO;KACP;IACD,GAAG,EAAE;QACJ;;;;;;WAMG;QACH,QAAQ,EAAE,iBAAW;KACrB;IACD,SAAS,EAAE;QACV;;;WAGG;QACH,oBAAoB,EAApB,yCAAoB;KACpB;IACD,SAAS,EAAE;QACV;;;WAGG;QACH,iBAAiB,EAAjB,4BAAiB;QACjB;;;WAGG;QACH,cAAc,EAAd,4BAAc;QACd;;;;;WAKG;QACH,UAAU,EAAV,oBAAU;QACV;;WAEG;QACH,cAAc,EAAd,6BAAc;QACd;;;;;WAKG;QACH,aAAa,EAAb,2BAAa;QAEb;;;WAGG;QACH,mBAAmB,EAAnB,uCAAmB;KACnB;IACD,MAAM,EAAE;QACP;;;WAGG;QACH,kBAAkB,EAAlB,8BAAkB;QAClB;;;;WAIG;QACH,cAAc,EAAd,6BAAc;QACd;;;WAGG;QACH,eAAe,EAAf,uBAAe;QACf;;;WAGG;QACH,QAAQ,EAAR,gBAAQ;QACR;;;;WAIG;QACH,MAAM,EAAN,YAAM;QACN;;WAEG;QACH,gBAAgB,EAAhB,iCAAgB;QAChB;;;;;WAKG;QACH,gBAAgB,EAAhB,iCAAgB;KAChB;IACD,MAAM,EAAE;QACP;;;WAGG;QACH,kBAAkB,EAAlB,sCAAkB;KAClB;CACQ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-props.d.ts","sourceRoot":"","sources":["../../src/config/input-props.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"input-props.d.ts","sourceRoot":"","sources":["../../src/config/input-props.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,wBAAwB,CAAC;AAiBrD,eAAO,MAAM,aAAa,WAuBzB,CAAC"}
|
|
@@ -3,8 +3,22 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getInputProps = exports.INPUT_PROPS_KEY = void 0;
|
|
4
4
|
const get_environment_1 = require("../get-environment");
|
|
5
5
|
exports.INPUT_PROPS_KEY = 'remotion.inputProps';
|
|
6
|
+
let didWarnSSRImport = false;
|
|
7
|
+
const warnOnceSSRImport = () => {
|
|
8
|
+
if (didWarnSSRImport) {
|
|
9
|
+
return;
|
|
10
|
+
}
|
|
11
|
+
didWarnSSRImport = true;
|
|
12
|
+
console.warn('Called `getInputProps()` on the server. This function is not available server-side and has returned an empty object.');
|
|
13
|
+
console.warn("To hide this warning, don't call this function on the server:");
|
|
14
|
+
console.warn(" typeof window === 'undefined' ? {} : getInputProps()");
|
|
15
|
+
};
|
|
6
16
|
const getInputProps = () => {
|
|
7
17
|
if ((0, get_environment_1.getRemotionEnvironment)() === 'rendering') {
|
|
18
|
+
if (typeof window === 'undefined') {
|
|
19
|
+
warnOnceSSRImport();
|
|
20
|
+
return {};
|
|
21
|
+
}
|
|
8
22
|
const param = localStorage.getItem(exports.INPUT_PROPS_KEY);
|
|
9
23
|
if (!param) {
|
|
10
24
|
return {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-props.js","sourceRoot":"","sources":["../../src/config/input-props.ts"],"names":[],"mappings":";;;AAAA,wDAA0D;AAE7C,QAAA,eAAe,GAAG,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"input-props.js","sourceRoot":"","sources":["../../src/config/input-props.ts"],"names":[],"mappings":";;;AAAA,wDAA0D;AAE7C,QAAA,eAAe,GAAG,qBAAqB,CAAC;AAErD,IAAI,gBAAgB,GAAG,KAAK,CAAC;AAE7B,MAAM,iBAAiB,GAAG,GAAG,EAAE;IAC9B,IAAI,gBAAgB,EAAE;QACrB,OAAO;KACP;IAED,gBAAgB,GAAG,IAAI,CAAC;IACxB,OAAO,CAAC,IAAI,CACX,sHAAsH,CACtH,CAAC;IACF,OAAO,CAAC,IAAI,CAAC,+DAA+D,CAAC,CAAC;IAC9E,OAAO,CAAC,IAAI,CAAC,wDAAwD,CAAC,CAAC;AACxE,CAAC,CAAC;AAEK,MAAM,aAAa,GAAG,GAAG,EAAE;IACjC,IAAI,IAAA,wCAAsB,GAAE,KAAK,WAAW,EAAE;QAC7C,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;YAClC,iBAAiB,EAAE,CAAC;YACpB,OAAO,EAAE,CAAC;SACV;QAED,MAAM,KAAK,GAAG,YAAY,CAAC,OAAO,CAAC,uBAAe,CAAC,CAAC;QACpD,IAAI,CAAC,KAAK,EAAE;YACX,OAAO,EAAE,CAAC;SACV;QAED,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC;QACjC,OAAO,MAAM,CAAC;KACd;IAED,IAAI,IAAA,wCAAsB,GAAE,KAAK,SAAS,EAAE;QAC3C,OAAO,OAAO,CAAC,GAAG,CAAC,WAAuC,CAAC;KAC3D;IAED,MAAM,IAAI,KAAK,CACd,wJAAwJ,CACxJ,CAAC;AACH,CAAC,CAAC;AAvBW,QAAA,aAAa,iBAuBxB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parallel-encoding.d.ts","sourceRoot":"","sources":["../../src/config/parallel-encoding.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,mBAAmB,UAAW,OAAO,SAUjD,CAAC;AAEF,eAAO,MAAM,mBAAmB,eAAyB,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getParallelEncoding = exports.setParallelEncoding = void 0;
|
|
4
|
+
let parallelEncoding = false;
|
|
5
|
+
const setParallelEncoding = (value) => {
|
|
6
|
+
if (typeof value !== 'boolean') {
|
|
7
|
+
throw new Error(`parallelEncoding must be a boolean but got ${typeof value} (${JSON.stringify(value)})`);
|
|
8
|
+
}
|
|
9
|
+
parallelEncoding = value;
|
|
10
|
+
};
|
|
11
|
+
exports.setParallelEncoding = setParallelEncoding;
|
|
12
|
+
const getParallelEncoding = () => parallelEncoding;
|
|
13
|
+
exports.getParallelEncoding = getParallelEncoding;
|
|
14
|
+
//# sourceMappingURL=parallel-encoding.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parallel-encoding.js","sourceRoot":"","sources":["../../src/config/parallel-encoding.ts"],"names":[],"mappings":";;;AAAA,IAAI,gBAAgB,GAAG,KAAK,CAAC;AAEtB,MAAM,mBAAmB,GAAG,CAAC,KAAc,EAAE,EAAE;IACrD,IAAI,OAAO,KAAK,KAAK,SAAS,EAAE;QAC/B,MAAM,IAAI,KAAK,CACd,8CAA8C,OAAO,KAAK,KAAK,IAAI,CAAC,SAAS,CAC5E,KAAK,CACL,GAAG,CACJ,CAAC;KACF;IAED,gBAAgB,GAAG,KAAK,CAAC;AAC1B,CAAC,CAAC;AAVW,QAAA,mBAAmB,uBAU9B;AAEK,MAAM,mBAAmB,GAAG,GAAG,EAAE,CAAC,gBAAgB,CAAC;AAA7C,QAAA,mBAAmB,uBAA0B"}
|
package/dist/internals.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ declare const Timeline: {
|
|
|
24
24
|
SetTimelineContext: import("react").Context<TimelinePosition.SetTimelineContextValue>;
|
|
25
25
|
useTimelinePosition: () => number;
|
|
26
26
|
useTimelineSetFrame: () => (u: import("react").SetStateAction<number>) => void;
|
|
27
|
-
usePlayingState: () => readonly [boolean, (u: import("react").SetStateAction<boolean>) => void];
|
|
27
|
+
usePlayingState: () => readonly [boolean, (u: import("react").SetStateAction<boolean>) => void, import("react").MutableRefObject<boolean>];
|
|
28
28
|
};
|
|
29
29
|
export declare const Internals: {
|
|
30
30
|
perf: typeof perf;
|
|
@@ -38,13 +38,14 @@ export declare const Internals: {
|
|
|
38
38
|
SetTimelineContext: import("react").Context<TimelinePosition.SetTimelineContextValue>;
|
|
39
39
|
useTimelinePosition: () => number;
|
|
40
40
|
useTimelineSetFrame: () => (u: import("react").SetStateAction<number>) => void;
|
|
41
|
-
usePlayingState: () => readonly [boolean, (u: import("react").SetStateAction<boolean>) => void];
|
|
41
|
+
usePlayingState: () => readonly [boolean, (u: import("react").SetStateAction<boolean>) => void, import("react").MutableRefObject<boolean>];
|
|
42
42
|
};
|
|
43
43
|
CompositionManager: import("react").Context<CompositionManagerContext>;
|
|
44
44
|
RemotionRoot: import("react").FC<{}>;
|
|
45
45
|
useVideo: () => TComposition<unknown> | null;
|
|
46
46
|
getRoot: () => import("react").FC<{}> | null;
|
|
47
47
|
getBrowserExecutable: () => import("./config/browser-executable").BrowserExecutable;
|
|
48
|
+
getCustomFfmpegExecutable: () => import("./config/ffmpeg-executable").FfmpegExecutable;
|
|
48
49
|
getCompositionName: () => string | null;
|
|
49
50
|
getIsEvaluation: () => boolean;
|
|
50
51
|
getPixelFormat: () => "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le";
|
package/dist/internals.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internals.d.ts","sourceRoot":"","sources":["../src/internals.ts"],"names":[],"mappings":";AAAA,OAAO,EAAC,iBAAiB,EAAC,MAAM,iBAAiB,CAAC;AAKlD,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;AACxC,OAAO,EAEN,yBAAyB,EACzB,eAAe,EACf,MAAM,EACN,aAAa,EACb,YAAY,EACZ,SAAS,EACT,MAAM,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"internals.d.ts","sourceRoot":"","sources":["../src/internals.ts"],"names":[],"mappings":";AAAA,OAAO,EAAC,iBAAiB,EAAC,MAAM,iBAAiB,CAAC;AAKlD,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;AACxC,OAAO,EAEN,yBAAyB,EACzB,eAAe,EACf,MAAM,EACN,aAAa,EACb,YAAY,EACZ,SAAS,EACT,MAAM,sBAAsB,CAAC;AA+B9B,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AAExC,OAAO,EAEN,iBAAiB,EACjB,MAAM,2BAA2B,CAAC;AAQnC,OAAO,EAEN,aAAa,EAGb,MAAM,yBAAyB,CAAC;AAOjC,OAAO,KAAK,QAAQ,MAAM,eAAe,CAAC;AAE1C,OAAO,EAAyB,mBAAmB,EAAC,MAAM,mBAAmB,CAAC;AAM9E,OAAO,KAAK,IAAI,MAAM,QAAQ,CAAC;AAc/B,OAAO,KAAK,qBAAqB,MAAM,iCAAiC,CAAC;AACzE,OAAO,EACN,4BAA4B,EAC5B,yBAAyB,EACzB,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,gBAAgB,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EACN,uBAAuB,EACvB,oBAAoB,EACpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAC,MAAM,EAAC,MAAM,UAAU,CAAC;AAchC,OAAO,EAEN,uBAAuB,EAEvB,0BAA0B,EAG1B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EAEN,mBAAmB,EACnB,MAAM,yBAAyB,CAAC;AAEjC,QAAA,MAAM,QAAQ;;;;;;;;;;CAAkD,CAAC;AAIjE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4ErB,CAAC;AAEF,YAAY,EACX,YAAY,EACZ,QAAQ,EACR,aAAa,EACb,SAAS,EACT,iBAAiB,EACjB,MAAM,EACN,eAAe,EACf,oBAAoB,EACpB,uBAAuB,EACvB,yBAAyB,EACzB,4BAA4B,EAC5B,SAAS,EACT,yBAAyB,EACzB,uBAAuB,EACvB,0BAA0B,EAC1B,iBAAiB,EACjB,mBAAmB,EACnB,aAAa,GACb,CAAC"}
|
package/dist/internals.js
CHANGED
|
@@ -24,6 +24,7 @@ const shared_audio_tags_1 = require("./audio/shared-audio-tags");
|
|
|
24
24
|
const CompositionManager_1 = require("./CompositionManager");
|
|
25
25
|
const browser_1 = require("./config/browser");
|
|
26
26
|
const browser_executable_1 = require("./config/browser-executable");
|
|
27
|
+
const ffmpeg_executable_1 = require("./config/ffmpeg-executable");
|
|
27
28
|
const codec_1 = require("./config/codec");
|
|
28
29
|
const concurrency_1 = require("./config/concurrency");
|
|
29
30
|
const crf_1 = require("./config/crf");
|
|
@@ -80,6 +81,7 @@ exports.Internals = {
|
|
|
80
81
|
useVideo: use_video_1.useVideo,
|
|
81
82
|
getRoot: register_root_1.getRoot,
|
|
82
83
|
getBrowserExecutable: browser_executable_1.getBrowserExecutable,
|
|
84
|
+
getCustomFfmpegExecutable: ffmpeg_executable_1.getCustomFfmpegExecutable,
|
|
83
85
|
getCompositionName: register_root_1.getCompositionName,
|
|
84
86
|
getIsEvaluation: register_root_1.getIsEvaluation,
|
|
85
87
|
getPixelFormat: pixel_format_1.getPixelFormat,
|
package/dist/internals.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internals.js","sourceRoot":"","sources":["../src/internals.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AACA,iEAGmC;AAEnC,6DAQ8B;AAC9B,8CAA6D;AAC7D,oEAAiE;AACjE,0CAIwB;AACxB,sDAAoD;AACpD,sCAIsB;AACtB,gDAAoD;AACpD,sDAI8B;AAC9B,kEAGoC;AACpC,wDAG+B;AAC/B,4DAAqE;AACrE,sDAAqD;AACrD,sDAAwC;AACxC,sEAAkE;AAClE,gEAGmC;AACnC,kDAAsD;AACtD,wDAI+B;AAC/B,4DAAsD;AACtD,4DAKiC;AACjC,8CAA4C;AAC5C,sDAAkE;AAClE,8DAGkC;AAClC,wDAA0C;AAC1C,mDAA6D;AAC7D,uDAA8E;AAC9E,mDAGyB;AACzB,qDAA8C;AAC9C,6CAA+B;AAC/B,mDAKyB;AACzB,iDAA4C;AAC5C,6CAA6C;AAC7C,+DAI+B;AAC/B,uFAAyE;AAKzE,4EAA8D;AAK9D,qCAAgC;AAChC,6DAAsD;AACtD,uEAA+D;AAC/D,2CAAqC;AACrC,kFAG8C;AAC9C,0EAAmE;AACnE,0FAAkF;AAClF,4DAAsD;AACtD,gEAA0D;AAC1D,8EAA8E;AAC9E,oEAA8D;AAC9D,mEAOiC;AACjC,mEAGiC;AAEjC,MAAM,QAAQ,GAAG,EAAC,GAAG,gBAAgB,EAAE,GAAG,qBAAqB,EAAC,CAAC;AAEjE,4DAA4D;AAC5D,oCAAoC;AACvB,QAAA,SAAS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IACb,aAAa,EAAb,2BAAa;IACb,kBAAkB,EAAlB,sCAAkB;IAClB,kBAAkB,EAAlB,sCAAkB;IAClB,8BAA8B,EAA9B,wDAA8B;IAC9B,oBAAoB,EAApB,8CAAoB;CACpB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interpolate.d.ts","sourceRoot":"","sources":["../src/interpolate.ts"],"names":[],"mappings":"AAEA,aAAK,eAAe,GAAG,QAAQ,GAAG,UAAU,GAAG,OAAO,CAAC;AAmGvD,wBAAgB,WAAW,CAC1B,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,SAAS,MAAM,EAAE,EAC7B,WAAW,EAAE,SAAS,MAAM,EAAE,EAC9B,OAAO,CAAC,EAAE;IACT,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACnC,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,gBAAgB,CAAC,EAAE,eAAe,CAAC;CACnC,GACC,MAAM,
|
|
1
|
+
{"version":3,"file":"interpolate.d.ts","sourceRoot":"","sources":["../src/interpolate.ts"],"names":[],"mappings":"AAEA,aAAK,eAAe,GAAG,QAAQ,GAAG,UAAU,GAAG,OAAO,CAAC;AAmGvD,wBAAgB,WAAW,CAC1B,KAAK,EAAE,MAAM,EACb,UAAU,EAAE,SAAS,MAAM,EAAE,EAC7B,WAAW,EAAE,SAAS,MAAM,EAAE,EAC9B,OAAO,CAAC,EAAE;IACT,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IACnC,eAAe,CAAC,EAAE,eAAe,CAAC;IAClC,gBAAgB,CAAC,EAAE,eAAe,CAAC;CACnC,GACC,MAAM,CAuDR"}
|
package/dist/interpolate.js
CHANGED
|
@@ -71,10 +71,14 @@ function checkInfiniteRange(name, arr) {
|
|
|
71
71
|
}
|
|
72
72
|
function interpolate(input, inputRange, outputRange, options) {
|
|
73
73
|
var _a;
|
|
74
|
-
if (typeof input === 'undefined'
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
74
|
+
if (typeof input === 'undefined') {
|
|
75
|
+
throw new Error('input can not be undefined');
|
|
76
|
+
}
|
|
77
|
+
if (typeof inputRange === 'undefined') {
|
|
78
|
+
throw new Error('inputRange can not be undefined');
|
|
79
|
+
}
|
|
80
|
+
if (typeof outputRange === 'undefined') {
|
|
81
|
+
throw new Error('outputRange can not be undefined');
|
|
78
82
|
}
|
|
79
83
|
if (inputRange.length !== outputRange.length) {
|
|
80
84
|
throw new Error('inputRange (' +
|
|
@@ -96,7 +100,7 @@ function interpolate(input, inputRange, outputRange, options) {
|
|
|
96
100
|
extrapolateRight = options.extrapolateRight;
|
|
97
101
|
}
|
|
98
102
|
if (typeof input !== 'number') {
|
|
99
|
-
throw new TypeError('Cannot
|
|
103
|
+
throw new TypeError('Cannot interpolate an input which is not a number');
|
|
100
104
|
}
|
|
101
105
|
const range = findRange(input, inputRange);
|
|
102
106
|
return interpolateFunction(input, [inputRange[range], inputRange[range + 1]], [outputRange[range], outputRange[range + 1]], {
|
package/dist/interpolate.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interpolate.js","sourceRoot":"","sources":["../src/interpolate.ts"],"names":[],"mappings":";AAAA,0JAA0J;;;AAI1J,SAAS,mBAAmB,CAC3B,KAAa,EACb,UAA4B,EAC5B,WAA6B,EAC7B,OAIC;IAED,MAAM,EAAC,eAAe,EAAE,gBAAgB,EAAE,MAAM,EAAC,GAAG,OAAO,CAAC;IAE5D,IAAI,MAAM,GAAG,KAAK,CAAC;IACnB,MAAM,CAAC,QAAQ,EAAE,QAAQ,CAAC,GAAG,UAAU,CAAC;IACxC,MAAM,CAAC,SAAS,EAAE,SAAS,CAAC,GAAG,WAAW,CAAC;IAE3C,IAAI,MAAM,GAAG,QAAQ,EAAE;QACtB,IAAI,eAAe,KAAK,UAAU,EAAE;YACnC,OAAO,MAAM,CAAC;SACd;QAED,IAAI,e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number;
|
|
4
4
|
playing: boolean;
|
|
5
5
|
rootId: string;
|
|
6
|
+
playbackRate: number;
|
|
7
|
+
imperativePlaying: MutableRefObject<boolean>;
|
|
8
|
+
setPlaybackRate: (u: React.SetStateAction<number>) => void;
|
|
6
9
|
};
|
|
7
10
|
export declare type SetTimelineContextValue = {
|
|
8
11
|
setFrame: (u: React.SetStateAction<number>) => void;
|
|
@@ -14,7 +17,8 @@ export declare const useTimelinePosition: () => number;
|
|
|
14
17
|
export declare const useTimelineSetFrame: () => (u: React.SetStateAction<number>) => void;
|
|
15
18
|
declare type PlayingReturnType = readonly [
|
|
16
19
|
boolean,
|
|
17
|
-
(u: React.SetStateAction<boolean>) => void
|
|
20
|
+
(u: React.SetStateAction<boolean>) => void,
|
|
21
|
+
MutableRefObject<boolean>
|
|
18
22
|
];
|
|
19
23
|
export declare const usePlayingState: () => PlayingReturnType;
|
|
20
24
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timeline-position-state.d.ts","sourceRoot":"","sources":["../src/timeline-position-state.ts"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"timeline-position-state.d.ts","sourceRoot":"","sources":["../src/timeline-position-state.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,gBAAgB,EAAsB,MAAM,OAAO,CAAC;AAE3E,oBAAY,oBAAoB,GAAG;IAClC,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,YAAY,EAAE,MAAM,CAAC;IACrB,iBAAiB,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAC7C,eAAe,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC;CAC3D,CAAC;AAEF,oBAAY,uBAAuB,GAAG;IACrC,QAAQ,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC;IACpD,UAAU,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,KAAK,IAAI,CAAC;CACvD,CAAC;AAEF,eAAO,MAAM,eAAe,+CAW1B,CAAC;AAEH,eAAO,MAAM,kBAAkB,kDAO7B,CAAC;AAEH,eAAO,MAAM,mBAAmB,QAAO,MAGtC,CAAC;AAEF,eAAO,MAAM,mBAAmB,YAC5B,MAAM,cAAc,CAAC,MAAM,CAAC,KAC3B,IAGJ,CAAC;AAEF,aAAK,iBAAiB,GAAG,SAAS;IACjC,OAAO;IACP,CAAC,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,OAAO,CAAC,KAAK,IAAI;IAC1C,gBAAgB,CAAC,OAAO,CAAC;CACzB,CAAC;AAEF,eAAO,MAAM,eAAe,yBAQ3B,CAAC"}
|
|
@@ -5,7 +5,14 @@ const react_1 = require("react");
|
|
|
5
5
|
exports.TimelineContext = (0, react_1.createContext)({
|
|
6
6
|
frame: 0,
|
|
7
7
|
playing: false,
|
|
8
|
+
playbackRate: 1,
|
|
8
9
|
rootId: '',
|
|
10
|
+
imperativePlaying: {
|
|
11
|
+
current: false,
|
|
12
|
+
},
|
|
13
|
+
setPlaybackRate: () => {
|
|
14
|
+
throw new Error('default');
|
|
15
|
+
},
|
|
9
16
|
});
|
|
10
17
|
exports.SetTimelineContext = (0, react_1.createContext)({
|
|
11
18
|
setFrame: () => {
|
|
@@ -26,9 +33,9 @@ const useTimelineSetFrame = () => {
|
|
|
26
33
|
};
|
|
27
34
|
exports.useTimelineSetFrame = useTimelineSetFrame;
|
|
28
35
|
const usePlayingState = () => {
|
|
29
|
-
const { playing } = (0, react_1.useContext)(exports.TimelineContext);
|
|
36
|
+
const { playing, imperativePlaying } = (0, react_1.useContext)(exports.TimelineContext);
|
|
30
37
|
const { setPlaying } = (0, react_1.useContext)(exports.SetTimelineContext);
|
|
31
|
-
return [playing, setPlaying];
|
|
38
|
+
return (0, react_1.useMemo)(() => [playing, setPlaying, imperativePlaying], [imperativePlaying, playing, setPlaying]);
|
|
32
39
|
};
|
|
33
40
|
exports.usePlayingState = usePlayingState;
|
|
34
41
|
//# sourceMappingURL=timeline-position-state.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"timeline-position-state.js","sourceRoot":"","sources":["../src/timeline-position-state.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"timeline-position-state.js","sourceRoot":"","sources":["../src/timeline-position-state.ts"],"names":[],"mappings":";;;AAAA,iCAA2E;AAgB9D,QAAA,eAAe,GAAG,IAAA,qBAAa,EAAuB;IAClE,KAAK,EAAE,CAAC;IACR,OAAO,EAAE,KAAK;IACd,YAAY,EAAE,CAAC;IACf,MAAM,EAAE,EAAE;IACV,iBAAiB,EAAE;QAClB,OAAO,EAAE,KAAK;KACd;IACD,eAAe,EAAE,GAAG,EAAE;QACrB,MAAM,IAAI,KAAK,CAAC,SAAS,CAAC,CAAC;IAC5B,CAAC;CACD,CAAC,CAAC;AAEU,QAAA,kBAAkB,GAAG,IAAA,qBAAa,EAA0B;IACxE,QAAQ,EAAE,GAAG,EAAE;QACd,MAAM,IAAI,KAAK,CAAC,SAAS,CAAC,CAAC;IAC5B,CAAC;IACD,UAAU,EAAE,GAAG,EAAE;QAChB,MAAM,IAAI,KAAK,CAAC,SAAS,CAAC,CAAC;IAC5B,CAAC;CACD,CAAC,CAAC;AAEI,MAAM,mBAAmB,GAAG,GAAW,EAAE;IAC/C,MAAM,KAAK,GAAG,IAAA,kBAAU,EAAC,uBAAe,CAAC,CAAC;IAC1C,OAAO,KAAK,CAAC,KAAK,CAAC;AACpB,CAAC,CAAC;AAHW,QAAA,mBAAmB,uBAG9B;AAEK,MAAM,mBAAmB,GAAG,GAExB,EAAE;IACZ,MAAM,EAAC,QAAQ,EAAC,GAAG,IAAA,kBAAU,EAAC,0BAAkB,CAAC,CAAC;IAClD,OAAO,QAAQ,CAAC;AACjB,CAAC,CAAC;AALW,QAAA,mBAAmB,uBAK9B;AAQK,MAAM,eAAe,GAAG,GAAsB,EAAE;IACtD,MAAM,EAAC,OAAO,EAAE,iBAAiB,EAAC,GAAG,IAAA,kBAAU,EAAC,uBAAe,CAAC,CAAC;IACjE,MAAM,EAAC,UAAU,EAAC,GAAG,IAAA,kBAAU,EAAC,0BAAkB,CAAC,CAAC;IAEpD,OAAO,IAAA,eAAO,EACb,GAAG,EAAE,CAAC,CAAC,OAAO,EAAE,UAAU,EAAE,iBAAiB,CAAC,EAC9C,CAAC,iBAAiB,EAAE,OAAO,EAAE,UAAU,CAAC,CACxC,CAAC;AACH,CAAC,CAAC;AARW,QAAA,eAAe,mBAQ1B"}
|
|
@@ -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;AAQ1E,OAAO,EAAiB,UAAU,EAAC,MAAM,eAAe,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;AAazD,eAAO,MAAM,kBAAkB;YAOtB,UAAU,GAAG,SAAS;iBACjB,MAAM;cACT,UAAU,gBAAgB,GAAG,gBAAgB,CAAC;SACnD,MAAM,GAAG,SAAS;eACZ,OAAO,GAAG,OAAO;UA8F5B,CAAC"}
|
|
@@ -10,6 +10,14 @@ const sequencing_1 = require("./sequencing");
|
|
|
10
10
|
const timeline_position_state_1 = require("./timeline-position-state");
|
|
11
11
|
const use_video_config_1 = require("./use-video-config");
|
|
12
12
|
const volume_prop_1 = require("./volume-prop");
|
|
13
|
+
const didWarn = {};
|
|
14
|
+
const warnOnce = (message) => {
|
|
15
|
+
if (didWarn[message]) {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
console.warn(message);
|
|
19
|
+
didWarn[message] = true;
|
|
20
|
+
};
|
|
13
21
|
const useMediaInTimeline = ({ volume, mediaVolume, mediaRef, src, mediaType, }) => {
|
|
14
22
|
const videoConfig = (0, use_video_config_1.useVideoConfig)();
|
|
15
23
|
const { rootId } = (0, react_1.useContext)(timeline_position_state_1.TimelineContext);
|
|
@@ -20,6 +28,7 @@ const useMediaInTimeline = ({ volume, mediaVolume, mediaRef, src, mediaType, })
|
|
|
20
28
|
const startsAt = (0, use_audio_frame_1.useMediaStartsAt)();
|
|
21
29
|
const { registerSequence, unregisterSequence } = (0, react_1.useContext)(CompositionManager_1.CompositionManager);
|
|
22
30
|
const [id] = (0, react_1.useState)(() => String(Math.random()));
|
|
31
|
+
const [initialVolume] = (0, react_1.useState)(() => volume);
|
|
23
32
|
const nonce = (0, nonce_1.useNonce)();
|
|
24
33
|
const duration = (() => {
|
|
25
34
|
return parentSequence
|
|
@@ -42,6 +51,11 @@ const useMediaInTimeline = ({ volume, mediaVolume, mediaRef, src, mediaType, })
|
|
|
42
51
|
})
|
|
43
52
|
.join(',');
|
|
44
53
|
}, [duration, startsAt, volume, mediaVolume]);
|
|
54
|
+
(0, react_1.useEffect)(() => {
|
|
55
|
+
if (typeof volume === 'number' && volume !== initialVolume) {
|
|
56
|
+
warnOnce(`Remotion: The ${mediaType} with src ${src} has changed it's volume. Prefer the callback syntax for setting volume to get better timeline display: https://www.remotion.dev/docs/using-audio/#controlling-volume`);
|
|
57
|
+
}
|
|
58
|
+
}, [initialVolume, mediaType, src, volume]);
|
|
45
59
|
(0, react_1.useEffect)(() => {
|
|
46
60
|
var _a;
|
|
47
61
|
if (!mediaRef.current) {
|
|
@@ -67,7 +81,9 @@ const useMediaInTimeline = ({ volume, mediaVolume, mediaRef, src, mediaType, })
|
|
|
67
81
|
doesVolumeChange,
|
|
68
82
|
showLoopTimesInTimeline: undefined,
|
|
69
83
|
});
|
|
70
|
-
return () =>
|
|
84
|
+
return () => {
|
|
85
|
+
unregisterSequence(id);
|
|
86
|
+
};
|
|
71
87
|
}, [
|
|
72
88
|
actualFrom,
|
|
73
89
|
duration,
|
|
@@ -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,+DAAuD;AACvD,mCAAiC;AACjC,6CAA6C;AAC7C,uEAA0D;AAC1D,yDAAkD;AAClD,+CAAyD;
|
|
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;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,iCAAc,GAAE,CAAC;IACrC,MAAM,EAAC,MAAM,EAAC,GAAG,IAAA,kBAAU,EAAC,yCAAe,CAAC,CAAC;IAC7C,MAAM,cAAc,GAAG,IAAA,kBAAU,EAAC,4BAAe,CAAC,CAAC;IACnD,MAAM,UAAU,GAAG,cAAc;QAChC,CAAC,CAAC,cAAc,CAAC,YAAY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AACJ,CAAC,CAAC;AAzGW,QAAA,kBAAkB,sBAyG7B"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RefObject } from 'react';
|
|
2
|
-
export declare const useMediaPlayback: ({ mediaRef, src, mediaType, playbackRate, }: {
|
|
2
|
+
export declare const useMediaPlayback: ({ mediaRef, src, mediaType, playbackRate: localPlaybackRate, }: {
|
|
3
3
|
mediaRef: RefObject<HTMLVideoElement | HTMLAudioElement>;
|
|
4
4
|
src: string | undefined;
|
|
5
5
|
mediaType: 'audio' | 'video';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-media-playback.d.ts","sourceRoot":"","sources":["../src/use-media-playback.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,
|
|
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;AAkCvD,eAAO,MAAM,gBAAgB;cAMlB,UAAU,gBAAgB,GAAG,gBAAgB,CAAC;SACnD,MAAM,GAAG,SAAS;eACZ,OAAO,GAAG,OAAO;kBACd,MAAM;UAwEpB,CAAC"}
|
|
@@ -16,6 +16,9 @@ const playAndHandleNotAllowedError = (mediaRef, mediaType) => {
|
|
|
16
16
|
if (!current) {
|
|
17
17
|
return;
|
|
18
18
|
}
|
|
19
|
+
if (err.message.includes('request was interrupted by a call to pause')) {
|
|
20
|
+
return;
|
|
21
|
+
}
|
|
19
22
|
console.log(`Could not play ${mediaType} due to following error: `, err);
|
|
20
23
|
if (!current.muted) {
|
|
21
24
|
console.log(`The video will be muted and we'll retry playing it.`, err);
|
|
@@ -25,12 +28,14 @@ const playAndHandleNotAllowedError = (mediaRef, mediaType) => {
|
|
|
25
28
|
});
|
|
26
29
|
}
|
|
27
30
|
};
|
|
28
|
-
const useMediaPlayback = ({ mediaRef, src, mediaType, playbackRate, }) => {
|
|
31
|
+
const useMediaPlayback = ({ mediaRef, src, mediaType, playbackRate: localPlaybackRate, }) => {
|
|
32
|
+
const { playbackRate: globalPlaybackRate } = (0, react_1.useContext)(timeline_position_state_1.TimelineContext);
|
|
29
33
|
const frame = (0, use_frame_1.useCurrentFrame)();
|
|
30
34
|
const absoluteFrame = (0, use_frame_1.useAbsoluteCurrentFrame)();
|
|
31
35
|
const [playing] = (0, timeline_position_state_1.usePlayingState)();
|
|
32
36
|
const { fps } = (0, use_video_config_1.useVideoConfig)();
|
|
33
37
|
const mediaStartsAt = (0, use_audio_frame_1.useMediaStartsAt)();
|
|
38
|
+
const playbackRate = localPlaybackRate * globalPlaybackRate;
|
|
34
39
|
(0, react_1.useEffect)(() => {
|
|
35
40
|
var _a, _b;
|
|
36
41
|
if (playing && !((_a = mediaRef.current) === null || _a === void 0 ? void 0 : _a.ended)) {
|
|
@@ -48,12 +53,12 @@ const useMediaPlayback = ({ mediaRef, src, mediaType, playbackRate, }) => {
|
|
|
48
53
|
if (!src) {
|
|
49
54
|
throw new Error(`No 'src' attribute was passed to the ${tagName} element.`);
|
|
50
55
|
}
|
|
51
|
-
mediaRef.current.playbackRate = playbackRate;
|
|
56
|
+
mediaRef.current.playbackRate = Math.max(0, playbackRate);
|
|
52
57
|
const shouldBeTime = (0, get_current_time_1.getMediaTime)({
|
|
53
58
|
fps,
|
|
54
59
|
frame,
|
|
55
60
|
src,
|
|
56
|
-
playbackRate,
|
|
61
|
+
playbackRate: localPlaybackRate,
|
|
57
62
|
startFrom: -mediaStartsAt,
|
|
58
63
|
});
|
|
59
64
|
const isTime = mediaRef.current.currentTime;
|
|
@@ -83,6 +88,7 @@ const useMediaPlayback = ({ mediaRef, src, mediaType, playbackRate, }) => {
|
|
|
83
88
|
playing,
|
|
84
89
|
src,
|
|
85
90
|
mediaStartsAt,
|
|
91
|
+
localPlaybackRate,
|
|
86
92
|
]);
|
|
87
93
|
};
|
|
88
94
|
exports.useMediaPlayback = useMediaPlayback;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-media-playback.js","sourceRoot":"","sources":["../src/use-media-playback.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"use-media-playback.js","sourceRoot":"","sources":["../src/use-media-playback.ts"],"names":[],"mappings":";;;AAAA,iCAAuD;AACvD,6DAAyD;AACzD,uEAA2E;AAC3E,2CAAqE;AACrE,yDAAkD;AAClD,+DAAsD;AACtD,mFAA0E;AAE1E,MAAM,4BAA4B,GAAG,CACpC,QAAwD,EACxD,SAA4B,EAC3B,EAAE;IACH,MAAM,EAAC,OAAO,EAAC,GAAG,QAAQ,CAAC;IAC3B,MAAM,IAAI,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,EAAE,CAAC;IAC7B,IAAI,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,EAAE;QAChB,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,CAAC,CAAC,GAAU,EAAE,EAAE;YAC1B,IAAI,CAAC,OAAO,EAAE;gBACb,OAAO;aACP;YAED,IAAI,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,4CAA4C,CAAC,EAAE;gBACvE,OAAO;aACP;YAED,OAAO,CAAC,GAAG,CAAC,kBAAkB,SAAS,2BAA2B,EAAE,GAAG,CAAC,CAAC;YACzE,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE;gBACnB,OAAO,CAAC,GAAG,CAAC,qDAAqD,EAAE,GAAG,CAAC,CAAC;gBACxE,OAAO,CAAC,KAAK,GAAG,IAAI,CAAC;gBACrB,OAAO,CAAC,IAAI,EAAE,CAAC;aACf;QACF,CAAC,CAAC,CAAC;KACH;AACF,CAAC,CAAC;AAEK,MAAM,gBAAgB,GAAG,CAAC,EAChC,QAAQ,EACR,GAAG,EACH,SAAS,EACT,YAAY,EAAE,iBAAiB,GAM/B,EAAE,EAAE;IACJ,MAAM,EAAC,YAAY,EAAE,kBAAkB,EAAC,GAAG,IAAA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,eAAO,MAAM,oBAAoB,QAAO,WAAW,GAAG,
|
|
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,IAoBrD,CAAC"}
|
|
@@ -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,gBAAgB,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK,EAAC,GAAG,KAAK,CAAC;
|
|
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,EAAC,GAAG,KAAK,CAAC;QAEzD,OAAO;YACN,EAAE;YACF,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;AApBW,QAAA,oBAAoB,wBAoB/B"}
|
|
@@ -28,7 +28,7 @@ const VideoForRenderingForwardFunction = ({ onError, volume: volumeProp, playbac
|
|
|
28
28
|
// but at the same time the same on all threads
|
|
29
29
|
const id = (0, react_1.useMemo)(() => {
|
|
30
30
|
var _a;
|
|
31
|
-
return `
|
|
31
|
+
return `video-${(0, random_1.random)((_a = props.src) !== null && _a !== void 0 ? _a : '')}-${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:${props.muted}`;
|
|
32
32
|
}, [
|
|
33
33
|
props.src,
|
|
34
34
|
props.muted,
|
package/dist/video-config.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"video-config.d.ts","sourceRoot":"","sources":["../src/video-config.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW,GAAG;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,gBAAgB,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"video-config.d.ts","sourceRoot":"","sources":["../src/video-config.ts"],"names":[],"mappings":"AAAA,oBAAY,WAAW,GAAG;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,gBAAgB,EAAE,MAAM,CAAC;IACzB,EAAE,EAAE,MAAM,CAAC;CACX,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "remotion",
|
|
3
|
-
"version": "3.0.0-lambda.
|
|
3
|
+
"version": "3.0.0-lambda.136+ed6dda364",
|
|
4
4
|
"description": "Render videos in React",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -34,10 +34,10 @@
|
|
|
34
34
|
"rimraf": "^3.0.2",
|
|
35
35
|
"ts-jest": "^27.0.5",
|
|
36
36
|
"typescript": "^4.4.2",
|
|
37
|
-
"webpack": "5.
|
|
37
|
+
"webpack": "5.60.0"
|
|
38
38
|
},
|
|
39
39
|
"publishConfig": {
|
|
40
40
|
"access": "public"
|
|
41
41
|
},
|
|
42
|
-
"gitHead": "
|
|
42
|
+
"gitHead": "ed6dda364d4ef9c84ce365344de73700cec9a8b3"
|
|
43
43
|
}
|