remotion 2.5.6 → 2.6.0

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 (51) hide show
  1. package/coverage/coverage-summary.json +8 -6
  2. package/dist/RemotionRoot.d.ts.map +1 -1
  3. package/dist/RemotionRoot.js +2 -0
  4. package/dist/RemotionRoot.js.map +1 -1
  5. package/dist/audio/Audio.d.ts +1 -1
  6. package/dist/audio/AudioForDevelopment.d.ts +1 -1
  7. package/dist/audio/AudioForRendering.d.ts +1 -1
  8. package/dist/audio/shared-audio-tags.d.ts.map +1 -1
  9. package/dist/audio/shared-audio-tags.js +1 -1
  10. package/dist/audio/shared-audio-tags.js.map +1 -1
  11. package/dist/compress-assets.d.ts +8 -0
  12. package/dist/compress-assets.d.ts.map +1 -0
  13. package/dist/compress-assets.js +26 -0
  14. package/dist/compress-assets.js.map +1 -0
  15. package/dist/config/image-format.d.ts +1 -1
  16. package/dist/config/index.d.ts +3 -3
  17. package/dist/config/log.d.ts +1 -1
  18. package/dist/default-css.d.ts.map +1 -1
  19. package/dist/default-css.js +1 -0
  20. package/dist/default-css.js.map +1 -1
  21. package/dist/freeze.d.ts.map +1 -1
  22. package/dist/freeze.js +3 -0
  23. package/dist/freeze.js.map +1 -1
  24. package/dist/index.d.ts +1 -0
  25. package/dist/index.d.ts.map +1 -1
  26. package/dist/index.js.map +1 -1
  27. package/dist/internals.d.ts +8 -6
  28. package/dist/internals.d.ts.map +1 -1
  29. package/dist/internals.js +2 -0
  30. package/dist/internals.js.map +1 -1
  31. package/dist/play-and-handle-not-allowed-error.d.ts +3 -0
  32. package/dist/play-and-handle-not-allowed-error.d.ts.map +1 -0
  33. package/dist/play-and-handle-not-allowed-error.js +34 -0
  34. package/dist/play-and-handle-not-allowed-error.js.map +1 -0
  35. package/dist/timeline-position-state.d.ts +5 -0
  36. package/dist/timeline-position-state.d.ts.map +1 -1
  37. package/dist/timeline-position-state.js +1 -0
  38. package/dist/timeline-position-state.js.map +1 -1
  39. package/dist/use-media-in-timeline.d.ts.map +1 -1
  40. package/dist/use-media-in-timeline.js +12 -1
  41. package/dist/use-media-in-timeline.js.map +1 -1
  42. package/dist/use-media-playback.d.ts.map +1 -1
  43. package/dist/use-media-playback.js +6 -28
  44. package/dist/use-media-playback.js.map +1 -1
  45. package/dist/use-video.d.ts.map +1 -1
  46. package/dist/use-video.js +6 -4
  47. package/dist/use-video.js.map +1 -1
  48. package/dist/video/Video.d.ts +1 -1
  49. package/dist/video/VideoForDevelopment.d.ts +1 -1
  50. package/dist/video/VideoForRendering.d.ts +1 -1
  51. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- {"total": {"lines":{"total":1860,"covered":1404,"skipped":0,"pct":75.48},"statements":{"total":2037,"covered":1562,"skipped":0,"pct":76.68},"functions":{"total":366,"covered":219,"skipped":0,"pct":59.83},"branches":{"total":1063,"covered":753,"skipped":0,"pct":70.83}}
1
+ {"total": {"lines":{"total":1890,"covered":1414,"skipped":0,"pct":74.81},"statements":{"total":2072,"covered":1576,"skipped":0,"pct":76.06},"functions":{"total":374,"covered":219,"skipped":0,"pct":58.55},"branches":{"total":1085,"covered":755,"skipped":0,"pct":69.58}}
2
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
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
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}}
@@ -8,16 +8,17 @@
8
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
+ ,"/Users/jonathanburger/remotion/packages/core/src/compress-assets.ts": {"lines":{"total":9,"covered":2,"skipped":0,"pct":22.22},"functions":{"total":3,"covered":0,"skipped":0,"pct":0},"statements":{"total":12,"covered":4,"skipped":0,"pct":33.33},"branches":{"total":4,"covered":0,"skipped":0,"pct":0}}
11
12
  ,"/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
13
  ,"/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
14
  ,"/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
15
  ,"/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
- ,"/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-asset-file-name.ts": {"lines":{"total":6,"covered":5,"skipped":0,"pct":83.33},"functions":{"total":2,"covered":2,"skipped":0,"pct":100},"statements":{"total":7,"covered":6,"skipped":0,"pct":85.71},"branches":{"total":2,"covered":1,"skipped":0,"pct":50}}
16
17
  ,"/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
18
  ,"/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
+ ,"/Users/jonathanburger/remotion/packages/core/src/index.ts": {"lines":{"total":28,"covered":28,"skipped":0,"pct":100},"functions":{"total":7,"covered":2,"skipped":0,"pct":28.57},"statements":{"total":35,"covered":35,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
19
20
  ,"/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":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/internals.ts": {"lines":{"total":53,"covered":52,"skipped":0,"pct":98.11},"functions":{"total":1,"covered":0,"skipped":0,"pct":0},"statements":{"total":53,"covered":52,"skipped":0,"pct":98.11},"branches":{"total":8,"covered":0,"skipped":0,"pct":0}}
21
22
  ,"/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
23
  ,"/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
24
  ,"/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}}
@@ -28,6 +29,7 @@
28
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.72}}
29
30
  ,"/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}}
30
31
  ,"/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/static-file.ts": {"lines":{"total":13,"covered":3,"skipped":0,"pct":23.07},"functions":{"total":3,"covered":0,"skipped":0,"pct":0},"statements":{"total":14,"covered":4,"skipped":0,"pct":28.57},"branches":{"total":6,"covered":0,"skipped":0,"pct":0}}
31
33
  ,"/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
34
  ,"/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
35
  ,"/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}}
@@ -56,7 +58,7 @@
56
58
  ,"/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
59
  ,"/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
60
  ,"/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":47,"covered":43,"skipped":0,"pct":91.48},"functions":{"total":6,"covered":6,"skipped":0,"pct":100},"statements":{"total":53,"covered":49,"skipped":0,"pct":92.45},"branches":{"total":47,"covered":43,"skipped":0,"pct":91.48}}
61
+ ,"/Users/jonathanburger/remotion/packages/core/src/config/crf.ts": {"lines":{"total":49,"covered":44,"skipped":0,"pct":89.79},"functions":{"total":6,"covered":6,"skipped":0,"pct":100},"statements":{"total":55,"covered":50,"skipped":0,"pct":90.9},"branches":{"total":49,"covered":44,"skipped":0,"pct":89.79}}
60
62
  ,"/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
63
  ,"/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
64
  ,"/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}}
@@ -65,7 +67,7 @@
65
67
  ,"/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}}
66
68
  ,"/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
69
  ,"/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}}
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}}
70
+ ,"/Users/jonathanburger/remotion/packages/core/src/config/log.ts": {"lines":{"total":13,"covered":13,"skipped":0,"pct":100},"functions":{"total":5,"covered":5,"skipped":0,"pct":100},"statements":{"total":17,"covered":17,"skipped":0,"pct":100},"branches":{"total":0,"covered":0,"skipped":0,"pct":100}}
69
71
  ,"/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
72
  ,"/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}}
71
73
  ,"/Users/jonathanburger/remotion/packages/core/src/config/overwrite.ts": {"lines":{"total":7,"covered":7,"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}}
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"RemotionRoot.d.ts","sourceRoot":"","sources":["../src/RemotionRoot.tsx"],"names":[],"mappings":"AAAA,OAAO,KAMN,MAAM,OAAO,CAAC;AAcf,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EA0EhC,CAAC"}
@@ -17,6 +17,7 @@ const RemotionRoot = ({ children }) => {
17
17
  const imperativePlaying = (0, react_1.useRef)(false);
18
18
  const [fastRefreshes, setFastRefreshes] = (0, react_1.useState)(0);
19
19
  const [playbackRate, setPlaybackRate] = (0, react_1.useState)(1);
20
+ const audioAndVideoTags = (0, react_1.useRef)([]);
20
21
  (0, react_1.useLayoutEffect)(() => {
21
22
  if (typeof window !== 'undefined') {
22
23
  window.remotion_setFrame = (f) => {
@@ -35,6 +36,7 @@ const RemotionRoot = ({ children }) => {
35
36
  rootId: remotionRootId,
36
37
  playbackRate,
37
38
  setPlaybackRate,
39
+ audioAndVideoTags,
38
40
  };
39
41
  }, [frame, playbackRate, playing, remotionRootId]);
40
42
  const setTimelineContextValue = (0, react_1.useMemo)(() => {
@@ -1 +1 @@
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;;IACpD,MAAM,CAAC,cAAc,CAAC,GAAG,IAAA,gBAAQ,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC,IAAA,eAAM,EAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAC9D,MAAM,CAAC,KAAK,EAAE,QAAQ,CAAC,GAAG,IAAA,gBAAQ,EAAS,MAAA,MAAM,CAAC,qBAAqB,mCAAI,CAAC,CAAC,CAAC;IAC9E,MAAM,CAAC,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ACrE,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;AA1EW,QAAA,YAAY,gBA0EvB"}
@@ -3,5 +3,5 @@ import { RemotionMainAudioProps } from './props';
3
3
  export declare const Audio: React.ForwardRefExoticComponent<Pick<Omit<React.DetailedHTMLProps<React.AudioHTMLAttributes<HTMLAudioElement>, HTMLAudioElement>, "autoPlay" | "controls" | "loop"> & {
4
4
  volume?: import("../volume-prop").VolumeProp | undefined;
5
5
  playbackRate?: number | undefined;
6
- } & RemotionMainAudioProps, "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" | "onEnded" | "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" | "src" | "volume" | "playbackRate" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "playsInline" | "preload" | "key" | keyof RemotionMainAudioProps> & React.RefAttributes<HTMLAudioElement>>;
6
+ } & RemotionMainAudioProps, "id" | "children" | "src" | "volume" | "playbackRate" | "slot" | "style" | "title" | "key" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "playsInline" | "preload" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "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" | "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" | "onEnded" | "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" | keyof RemotionMainAudioProps> & React.RefAttributes<HTMLAudioElement>>;
7
7
  //# sourceMappingURL=Audio.d.ts.map
@@ -4,5 +4,5 @@ export declare const AudioForDevelopment: React.ForwardRefExoticComponent<Pick<O
4
4
  playbackRate?: number | undefined;
5
5
  } & {
6
6
  shouldPreMountAudioTags: boolean;
7
- }, "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" | "onEnded" | "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" | "src" | "volume" | "playbackRate" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "playsInline" | "preload" | "key" | "shouldPreMountAudioTags"> & React.RefAttributes<HTMLAudioElement>>;
7
+ }, "id" | "children" | "src" | "volume" | "playbackRate" | "slot" | "style" | "title" | "key" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "playsInline" | "preload" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "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" | "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" | "onEnded" | "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" | "shouldPreMountAudioTags"> & React.RefAttributes<HTMLAudioElement>>;
8
8
  //# sourceMappingURL=AudioForDevelopment.d.ts.map
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { RemotionAudioProps } from './props';
3
- export declare const AudioForRendering: React.ForwardRefExoticComponent<Pick<RemotionAudioProps, "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" | "onEnded" | "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" | "src" | "volume" | "playbackRate" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "playsInline" | "preload" | "key"> & React.RefAttributes<HTMLAudioElement>>;
3
+ export declare const AudioForRendering: React.ForwardRefExoticComponent<Pick<RemotionAudioProps, "id" | "children" | "src" | "volume" | "playbackRate" | "slot" | "style" | "title" | "key" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "playsInline" | "preload" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "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" | "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" | "onEnded" | "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"> & React.RefAttributes<HTMLAudioElement>>;
4
4
  //# sourceMappingURL=AudioForRendering.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"shared-audio-tags.d.ts","sourceRoot":"","sources":["../../src/audio/shared-audio-tags.tsx"],"names":[],"mappings":"AAAA,OAAO,KASN,MAAM,OAAO,CAAC;AACf,OAAO,EAAC,kBAAkB,EAAC,MAAM,SAAS,CAAC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,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,EAAE,kBAAkB,KAAK,IAAI,CAAC;IAC3D,aAAa,EAAE,MAAM,IAAI,CAAC;IAC1B,iBAAiB,EAAE,MAAM,CAAC;CAC1B,CAAC;AAEF,eAAO,MAAM,kBAAkB,qCAA4C,CAAC;AAE5E,eAAO,MAAM,0BAA0B,EAAE,KAAK,CAAC,EAAE,CAAC;IACjD,iBAAiB,EAAE,MAAM,CAAC;CAC1B,CA6HA,CAAC;AAEF,eAAO,MAAM,cAAc,QAAS,kBAAkB,cA8BrD,CAAC"}
@@ -39,7 +39,7 @@ const SharedAudioContextProvider = ({ children, numberOfAudioTags }) => {
39
39
  const registerAudio = (0, react_1.useCallback)((aud) => {
40
40
  const firstFreeAudio = takenAudios.current.findIndex((a) => a === false);
41
41
  if (firstFreeAudio === -1) {
42
- throw new Error(`Tried to simultaneously mount ${numberOfAudioTags + 1} <Audio /> tags at the same time. With the current settings, the maximum amount of <Audio /> tags is limited to ${numberOfAudioTags} at the same time. Remotion pre-mounts silent audio tags to help avoid browser autoplay restrictions. See https://remotion.dev/docs/player#numberofsharedaudiotags for more information on how to increase this limit.`);
42
+ throw new Error(`Tried to simultaneously mount ${numberOfAudioTags + 1} <Audio /> tags at the same time. With the current settings, the maximum amount of <Audio /> tags is limited to ${numberOfAudioTags} at the same time. Remotion pre-mounts silent audio tags to help avoid browser autoplay restrictions. See /docs/player/autoplay#use-the-numberofsharedaudiotags-property for more information on how to increase this limit.`);
43
43
  }
44
44
  const { id, ref } = refs[firstFreeAudio];
45
45
  const cloned = [...takenAudios.current];
@@ -1 +1 @@
1
- {"version":3,"file":"shared-audio-tags.js","sourceRoot":"","sources":["../../src/audio/shared-audio-tags.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AAAA,+CASe;AAqBf,MAAM,WAAW,GAChB,wTAAwT,CAAC;AAU7S,QAAA,kBAAkB,GAAG,IAAA,qBAAa,EAAuB,IAAI,CAAC,CAAC;A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,CAAC,EAAE;gBACrC,GAAG,CAAC,eAAe,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;aAC7B;QACF,CAAC,CAAC;IACH,CAAC,EAAE,CAAC,GAAG,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;IAEnB,IAAA,iBAAS,EAAC,GAAG,EAAE;QACd,IAAI,GAAG,IAAI,GAAG,CAAC,iBAAiB,GAAG,CAAC,EAAE;YACrC,GAAG,CAAC,WAAW,CAAC,IAAI,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC;SAC9B;IACF,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC;IAExB,OAAO,IAAI,CAAC;AACb,CAAC,CAAC;AA9BW,QAAA,cAAc,kBA8BzB"}
@@ -0,0 +1,8 @@
1
+ import { TAsset } from './CompositionManager';
2
+ /**
3
+ * Since audio or video can be base64-encoded, those can be really long strings.
4
+ * Since we track the `src` property for every frame, Node.JS can run out of memory easily. Instead of duplicating the src for every frame, we save memory by replacing the full base 64 encoded data with a string `same-as-[asset-id]-[frame]` referencing a previous asset with the same src.
5
+ */
6
+ export declare const compressAsset: (previousAssets: TAsset[], newAsset: TAsset) => TAsset;
7
+ export declare const isAssetCompressed: (src: string) => boolean;
8
+ //# sourceMappingURL=compress-assets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compress-assets.d.ts","sourceRoot":"","sources":["../src/compress-assets.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAC,MAAM,sBAAsB,CAAC;AAE5C;;;GAGG;AAEH,eAAO,MAAM,aAAa,mBACT,MAAM,EAAE,YACd,MAAM,KACd,MAcF,CAAC;AAEF,eAAO,MAAM,iBAAiB,QAAS,MAAM,YAE5C,CAAC"}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.isAssetCompressed = exports.compressAsset = void 0;
4
+ /**
5
+ * Since audio or video can be base64-encoded, those can be really long strings.
6
+ * Since we track the `src` property for every frame, Node.JS can run out of memory easily. Instead of duplicating the src for every frame, we save memory by replacing the full base 64 encoded data with a string `same-as-[asset-id]-[frame]` referencing a previous asset with the same src.
7
+ */
8
+ const compressAsset = (previousAssets, newAsset) => {
9
+ if (newAsset.src.length < 400) {
10
+ return newAsset;
11
+ }
12
+ const assetWithSameSrc = previousAssets.find((a) => a.src === newAsset.src);
13
+ if (!assetWithSameSrc) {
14
+ return newAsset;
15
+ }
16
+ return {
17
+ ...newAsset,
18
+ src: `same-as-${assetWithSameSrc.id}-${assetWithSameSrc.frame}`,
19
+ };
20
+ };
21
+ exports.compressAsset = compressAsset;
22
+ const isAssetCompressed = (src) => {
23
+ return src.startsWith('same-as');
24
+ };
25
+ exports.isAssetCompressed = isAssetCompressed;
26
+ //# sourceMappingURL=compress-assets.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"compress-assets.js","sourceRoot":"","sources":["../src/compress-assets.ts"],"names":[],"mappings":";;;AAEA;;;GAGG;AAEI,MAAM,aAAa,GAAG,CAC5B,cAAwB,EACxB,QAAgB,EACP,EAAE;IACX,IAAI,QAAQ,CAAC,GAAG,CAAC,MAAM,GAAG,GAAG,EAAE;QAC9B,OAAO,QAAQ,CAAC;KAChB;IAED,MAAM,gBAAgB,GAAG,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,KAAK,QAAQ,CAAC,GAAG,CAAC,CAAC;IAC5E,IAAI,CAAC,gBAAgB,EAAE;QACtB,OAAO,QAAQ,CAAC;KAChB;IAED,OAAO;QACN,GAAG,QAAQ;QACX,GAAG,EAAE,WAAW,gBAAgB,CAAC,EAAE,IAAI,gBAAgB,CAAC,KAAK,EAAE;KAC/D,CAAC;AACH,CAAC,CAAC;AAjBW,QAAA,aAAa,iBAiBxB;AAEK,MAAM,iBAAiB,GAAG,CAAC,GAAW,EAAE,EAAE;IAChD,OAAO,GAAG,CAAC,UAAU,CAAC,SAAS,CAAC,CAAC;AAClC,CAAC,CAAC;AAFW,QAAA,iBAAiB,qBAE5B"}
@@ -2,7 +2,7 @@ import { PixelFormat } from './pixel-format';
2
2
  declare const validOptions: readonly ["png", "jpeg", "none"];
3
3
  export declare type ImageFormat = typeof validOptions[number];
4
4
  export declare const setImageFormat: (format: ImageFormat) => void;
5
- export declare const getUserPreferredImageFormat: () => "none" | "png" | "jpeg" | undefined;
5
+ export declare const getUserPreferredImageFormat: () => "png" | "jpeg" | "none" | undefined;
6
6
  export declare const validateSelectedPixelFormatAndImageFormatCombination: (pixelFormat: PixelFormat, imageFormat: ImageFormat) => 'none' | 'valid';
7
7
  export {};
8
8
  //# sourceMappingURL=image-format.d.ts.map
@@ -44,7 +44,7 @@ export declare const Config: {
44
44
  *
45
45
  * Set this to 'verbose' to get browser logs and other IO.
46
46
  */
47
- readonly setLevel: (newLogLevel: "verbose" | "info" | "warn" | "error") => void;
47
+ readonly setLevel: (newLogLevel: "error" | "verbose" | "info" | "warn") => void;
48
48
  };
49
49
  readonly Puppeteer: {
50
50
  /**
@@ -74,7 +74,7 @@ export declare const Config: {
74
74
  /** Decide in which image format to render. Can be either 'jpeg' or 'png'.
75
75
  * PNG is slower, but supports transparency.
76
76
  */
77
- readonly setImageFormat: (format: "none" | "png" | "jpeg") => void;
77
+ readonly setImageFormat: (format: "png" | "jpeg" | "none") => void;
78
78
  /**
79
79
  * Render only a subset of a video.
80
80
  * Pass in a tuple [20, 30] to only render frames 20-30 into a video.
@@ -126,7 +126,7 @@ export declare const Config: {
126
126
  * Possible values: 4444-xq, 4444, hq, standard, light, proxy. Default: 'hq'
127
127
  * See https://avpres.net/FFmpeg/im_ProRes.html for meaning of possible values.
128
128
  */
129
- readonly setProResProfile: (profile: "light" | "4444-xq" | "4444" | "hq" | "standard" | "proxy" | undefined) => void;
129
+ readonly setProResProfile: (profile: "4444-xq" | "4444" | "hq" | "standard" | "light" | "proxy" | undefined) => void;
130
130
  };
131
131
  };
132
132
  export type { PixelFormat, Concurrency, WebpackConfiguration, WebpackOverrideFn, BrowserExecutable, FfmpegExecutable, ImageFormat, Codec, Browser, FrameRange, LogLevel, };
@@ -1,6 +1,6 @@
1
1
  export declare const logLevels: readonly ["verbose", "info", "warn", "error"];
2
2
  export declare type LogLevel = typeof logLevels[number];
3
- export declare const getLogLevel: () => "verbose" | "info" | "warn" | "error";
3
+ export declare const getLogLevel: () => "error" | "verbose" | "info" | "warn";
4
4
  export declare const setLogLevel: (newLogLevel: LogLevel) => void;
5
5
  export declare const isValidLogLevel: (level: string) => boolean;
6
6
  export declare const isEqualOrBelowLogLevel: (level: LogLevel) => boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"default-css.d.ts","sourceRoot":"","sources":["../src/default-css.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,QAAS,MAAM,SAiBpC,CAAC;AAEF,eAAO,MAAM,cAAc,UAAW,MAAM,GAAG,IAAI,WAqBlD,CAAC"}
1
+ {"version":3,"file":"default-css.d.ts","sourceRoot":"","sources":["../src/default-css.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,QAAS,MAAM,SAiBpC,CAAC;AAEF,eAAO,MAAM,cAAc,UAAW,MAAM,GAAG,IAAI,WAsBlD,CAAC"}
@@ -25,6 +25,7 @@ const makeDefaultCSS = (scope) => {
25
25
  }
26
26
  body {
27
27
  margin: 0;
28
+ background-color: #1f2428
28
29
  }
29
30
  `;
30
31
  }
@@ -1 +1 @@
1
- {"version":3,"file":"default-css.js","sourceRoot":"","sources":["../src/default-css.ts"],"names":[],"mappings":";;;AAAA,MAAM,QAAQ,GAA6B,EAAE,CAAC;AAEvC,MAAM,SAAS,GAAG,CAAC,GAAW,EAAE,EAAE;IACxC,eAAe;IACf,IAAI,OAAO,QAAQ,KAAK,WAAW,EAAE;QACpC,OAAO;KACP;IAED,IAAI,QAAQ,CAAC,GAAG,CAAC,EAAE;QAClB,OAAO;KACP;IAED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GAAG,CAAC,GAAG,IAAI,CAAC;AACtB,CAAC,CAAC;AAjBW,QAAA,SAAS,aAiBpB;AAEK,MAAM,cAAc,GAAG,CAAC,KAAoB,EAAE,EAAE;IACtD,IAAI,CAAC,KAAK,EAAE;QACX,OAAO;;;;;;;;KAQJ,CAAC;KACJ;IAED,OAAO;MACF,KAAK;;;MAGL,KAAK;;;;GAIR,CAAC;AACJ,CAAC,CAAC;AAtBW,QAAA,cAAc,kBAsBzB"}
@@ -1 +1 @@
1
- {"version":3,"file":"freeze.d.ts","sourceRoot":"","sources":["../src/freeze.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAGjD,aAAK,WAAW,GAAG;IAClB,KAAK,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CAuCjC,CAAC;AAEF,OAAO,EAAC,MAAM,EAAC,CAAC"}
1
+ {"version":3,"file":"freeze.d.ts","sourceRoot":"","sources":["../src/freeze.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AAGjD,aAAK,WAAW,GAAG;IAClB,KAAK,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,QAAA,MAAM,MAAM,EAAE,KAAK,CAAC,EAAE,CAAC,WAAW,CA0CjC,CAAC;AAEF,OAAO,EAAC,MAAM,EAAC,CAAC"}
package/dist/freeze.js CHANGED
@@ -22,6 +22,9 @@ const Freeze = ({ frame, children }) => {
22
22
  return {
23
23
  ...context,
24
24
  playing: false,
25
+ imperativePlaying: {
26
+ current: false,
27
+ },
25
28
  frame,
26
29
  };
27
30
  }, [context, frame]);
@@ -1 +1 @@
1
- {"version":3,"file":"freeze.js","sourceRoot":"","sources":["../src/freeze.tsx"],"names":[],"mappings":";;;;AAAA,iCAAiD;AACjD,uEAAgF;AAMhF,MAAM,MAAM,GAA0B,CAAC,EAAC,KAAK,EAAE,QAAQ,EAAC,EAAE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AED,IAAI,MAAM,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE;QACxB,MAAM,IAAI,KAAK,CACd,sEAAsE,CACtE,CAAC;KACF;IAED,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE;QAC5B,MAAM,IAAI,KAAK,CACd,qEAAqE,KAAK,GAAG,CAC7E,CAAC;KACF;IAED,MAAM,OAAO,GAAG,IAAA,kBAAU,EAAC,yCAAe,CAAC,CAAC;IAC5C,MAAM,KAAK,GAAyB,IAAA,eAAO,EAAC,GAAG,EAAE;QAChD,OAAO;YACN,GAAG,OAAO;YACV,OAAO,EAAE,KAAK;YACd,iBAAiB,EAAE;gBAClB,OAAO,EAAE,KAAK;aACd;YACD,KAAK;SACL,CAAC;IACH,CAAC,EAAE,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC;IAErB,OAAO,CACN,uBAAC,yCAAe,CAAC,QAAQ,kBAAC,KAAK,EAAE,KAAK,gBACpC,QAAQ,YACiB,CAC3B,CAAC;AACH,CAAC,CAAC;AAEM,wBAAM"}
package/dist/index.d.ts CHANGED
@@ -5,6 +5,7 @@ declare global {
5
5
  ready: boolean;
6
6
  getStaticCompositions: () => TCompMetadata[];
7
7
  remotion_staticBase: string;
8
+ remotion_editorName: string | null;
8
9
  remotion_setFrame: (frame: number) => void;
9
10
  remotion_initialFrame: number;
10
11
  remotion_collectAssets: () => TAsset[];
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,CAAC;AACvB,OAAO,EAAC,MAAM,EAAE,aAAa,EAAC,MAAM,sBAAsB,CAAC;AAG3D,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,MAAM;QACf,KAAK,EAAE,OAAO,CAAC;QACf,qBAAqB,EAAE,MAAM,aAAa,EAAE,CAAC;QAC7C,mBAAmB,EAAE,MAAM,CAAC;QAC5B,iBAAiB,EAAE,CAAC,KA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B,CAAC;AACnC,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,OAAO,EAAC,UAAU,EAAC,MAAM,eAAe,CAAC"}
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,yBAAuB;AAEvB,2EAA0E;AAe1E,IAAA,yDAA6B,GAAE,CAAC;AAEhC,iDAA+B;AAE/B,0CAAwB;AACxB,gDAA8B;AAE9B,2CAAyB;AACzB,oDAAmD;AAA3C,4GAAA,aAAa,OAAA;AACrB,2CAAyB;AACzB,2CAAyB;AACzB,2CAAyB;AACzB,wCAAsB;AACtB,8CAA4B;AAC5B,gDAA8B;AAC9B,yDAAsD;AAA9C,sHAAA,iBAAiB,OAAA;AACzB,+BAA4B;AAApB,4FAAA,IAAI,OAAA;AACZ,2CAAyB;AACzB,kDAAgC;AAChC,iDAA6C;AAArC,6GAAA,YAAY,OAAA;AACpB,2CAAsC;AAA9B,sGAAA,QAAQ,OAAA;AAChB,mCAAgC;AAAxB,gGAAA,MAAM,OAAA;AACd,2CAAyB;AACzB,0CAAwB;AACxB,8CAA4B;AAC5B,qDAAmC;AACnC,0CAAwB;AACxB,iDAA+B;AAC/B,6CAAyC;AAAjC,yGAAA,UAAU,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA,yBAAuB;AAEvB,2EAA0E;AAgB1E,IAAA,yDAA6B,GAAE,CAAC;AAEhC,iDAA+B;AAE/B,0CAAwB;AACxB,gDAA8B;AAE9B,2CAAyB;AACzB,oDAAmD;AAA3C,4GAAA,aAAa,OAAA;AACrB,2CAAyB;AACzB,2CAAyB;AACzB,2CAAyB;AACzB,wCAAsB;AACtB,8CAA4B;AAC5B,gDAA8B;AAC9B,yDAAsD;AAA9C,sHAAA,iBAAiB,OAAA;AACzB,+BAA4B;AAApB,4FAAA,IAAI,OAAA;AACZ,2CAAyB;AACzB,kDAAgC;AAChC,iDAA6C;AAArC,6GAAA,YAAY,OAAA;AACpB,2CAAsC;AAA9B,sGAAA,QAAQ,OAAA;AAChB,mCAAgC;AAAxB,gGAAA,MAAM,OAAA;AACd,2CAAyB;AACzB,0CAAwB;AACxB,8CAA4B;AAC5B,qDAAmC;AACnC,0CAAwB;AACxB,iDAA+B;AAC/B,6CAAyC;AAAjC,yGAAA,UAAU,OAAA"}
@@ -14,6 +14,7 @@ import { SetTimelineContextValue, TimelineContextValue } from './timeline-positi
14
14
  import { truthy } from './truthy';
15
15
  import { MediaVolumeContextValue, SetMediaVolumeContextValue } from './volume-position-state';
16
16
  import { useRemotionContexts } from './wrap-remotion-context';
17
+ import * as AssetCompression from './compress-assets';
17
18
  declare const Timeline: {
18
19
  TimelineInOutContext: import("react").Context<TimelineInOutPosition.TimelineInOutContextValue>;
19
20
  SetTimelineInOutContext: import("react").Context<TimelineInOutPosition.SetTimelineInOutContextValue>;
@@ -72,11 +73,11 @@ export declare const Internals: {
72
73
  getDefaultCrfForCodec: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv") => number;
73
74
  getActualCrf: (codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv") => number;
74
75
  setFrameRangeFromCli: (newFrameRange: string | number) => void;
75
- getUserPreferredImageFormat: () => "none" | "png" | "jpeg" | undefined;
76
- validateSelectedPixelFormatAndImageFormatCombination: (pixelFormat: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le", imageFormat: "none" | "png" | "jpeg") => "none" | "valid";
76
+ getUserPreferredImageFormat: () => "png" | "jpeg" | "none" | undefined;
77
+ validateSelectedPixelFormatAndImageFormatCombination: (pixelFormat: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le", imageFormat: "png" | "jpeg" | "none") => "none" | "valid";
77
78
  validateSelectedPixelFormatAndCodecCombination: (pixelFormat: "yuv420p" | "yuva420p" | "yuv422p" | "yuv444p" | "yuv420p10le" | "yuv422p10le" | "yuv444p10le" | "yuva444p10le", codec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv") => void;
78
79
  validateFrameRange: (frameRange: import("./config/frame-range").FrameRange | null) => void;
79
- validateNonNullImageFormat: (imageFormat: "none" | "png" | "jpeg") => void;
80
+ validateNonNullImageFormat: (imageFormat: "png" | "jpeg" | "none") => void;
80
81
  getWebpackCaching: () => boolean;
81
82
  useLazyComponent: <T>(compProps: CompProps<T>) => import("react").LazyExoticComponent<LooseAnyComponent<T>>;
82
83
  truthy: typeof truthy;
@@ -101,9 +102,9 @@ export declare const Internals: {
101
102
  validateFps: (fps: number, location: string) => void;
102
103
  validateDimension: (amount: number, nameOfProp: string, location: string) => void;
103
104
  getRemotionEnvironment: () => RemotionEnvironment;
104
- getProResProfile: () => "light" | "4444-xq" | "4444" | "hq" | "standard" | "proxy" | undefined;
105
- setProResProfile: (profile: "light" | "4444-xq" | "4444" | "hq" | "standard" | "proxy" | undefined) => void;
106
- validateSelectedCodecAndProResCombination: (actualCodec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv", actualProResProfile: "light" | "4444-xq" | "4444" | "hq" | "standard" | "proxy" | undefined) => void;
105
+ getProResProfile: () => "4444-xq" | "4444" | "hq" | "standard" | "light" | "proxy" | undefined;
106
+ setProResProfile: (profile: "4444-xq" | "4444" | "hq" | "standard" | "light" | "proxy" | undefined) => void;
107
+ validateSelectedCodecAndProResCombination: (actualCodec: "h264" | "h265" | "vp8" | "vp9" | "mp3" | "aac" | "wav" | "prores" | "h264-mkv", actualProResProfile: "4444-xq" | "4444" | "hq" | "standard" | "light" | "proxy" | undefined) => void;
107
108
  getMaxTimelineTracks: () => number;
108
109
  SharedAudioContext: import("react").Context<{
109
110
  registerAudio: (aud: import("./audio").RemotionAudioProps) => {
@@ -125,6 +126,7 @@ export declare const Internals: {
125
126
  getStillFrame: () => number;
126
127
  invalidCompositionErrorMessage: string;
127
128
  isCompositionIdValid: (id: string) => RegExpMatchArray | null;
129
+ AssetCompression: typeof AssetCompression;
128
130
  };
129
131
  export type { TComposition, Timeline, TCompMetadata, TSequence, WebpackOverrideFn, TAsset, RenderAssetInfo, TimelineContextValue, SetTimelineContextValue, TimelineInOutContextValue, SetTimelineInOutContextValue, CompProps, CompositionManagerContext, MediaVolumeContextValue, SetMediaVolumeContextValue, LooseAnyComponent, RemotionEnvironment, ProResProfile, };
130
132
  //# sourceMappingURL=internals.d.ts.map
@@ -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;AA2B9B,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;AA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;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;AACjC,OAAO,KAAK,gBAAgB,MAAM,mBAAmB,CAAC;AACtD,QAAA,MAAM,QAAQ;;;;;;;;;;CAAkD,CAAC;AAIjE,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2ErB,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
@@ -68,6 +68,7 @@ const validate_image_format_1 = require("./validation/validate-image-format");
68
68
  const validate_quality_1 = require("./validation/validate-quality");
69
69
  const volume_position_state_1 = require("./volume-position-state");
70
70
  const wrap_remotion_context_1 = require("./wrap-remotion-context");
71
+ const AssetCompression = __importStar(require("./compress-assets"));
71
72
  const Timeline = { ...TimelinePosition, ...TimelineInOutPosition };
72
73
  // Mark them as Internals so use don't assume this is public
73
74
  // API and are less likely to use it
@@ -145,5 +146,6 @@ exports.Internals = {
145
146
  getStillFrame: still_frame_1.getStillFrame,
146
147
  invalidCompositionErrorMessage: validate_composition_id_1.invalidCompositionErrorMessage,
147
148
  isCompositionIdValid: validate_composition_id_1.isCompositionIdValid,
149
+ AssetCompression,
148
150
  };
149
151
  //# sourceMappingURL=internals.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"internals.js","sourceRoot":"","sources":["../src/internals.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AACA,iEAGmC;AAEnC,6DAQ8B;AAC9B,8CAA6D;AAC7D,oEAAiE;AACjE,kEAAqE;AACrE,0CAIwB;AACxB,sDAAoD;AACpD,sCAIsB;AACtB,gDAAoD;AACpD,sDAI8B;AAC9B,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,GAAG;IACxB,IAAI;IACJ,oBAAoB,EAApB,8CA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;IACpB,gBAAgB;CAChB,CAAC"}
@@ -0,0 +1,3 @@
1
+ import { RefObject } from 'react';
2
+ export declare const playAndHandleNotAllowedError: (mediaRef: RefObject<HTMLVideoElement | HTMLAudioElement>, mediaType: 'audio' | 'video') => void;
3
+ //# sourceMappingURL=play-and-handle-not-allowed-error.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"play-and-handle-not-allowed-error.d.ts","sourceRoot":"","sources":["../src/play-and-handle-not-allowed-error.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,OAAO,CAAC;AAEhC,eAAO,MAAM,4BAA4B,aAC9B,UAAU,gBAAgB,GAAG,gBAAgB,CAAC,aAC7C,OAAO,GAAG,OAAO,SAqC5B,CAAC"}
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.playAndHandleNotAllowedError = void 0;
4
+ const playAndHandleNotAllowedError = (mediaRef, mediaType) => {
5
+ const { current } = mediaRef;
6
+ const prom = current === null || current === void 0 ? void 0 : current.play();
7
+ if (prom === null || prom === void 0 ? void 0 : prom.catch) {
8
+ prom === null || prom === void 0 ? void 0 : prom.catch((err) => {
9
+ if (!current) {
10
+ return;
11
+ }
12
+ // Pause was called after play in Chrome
13
+ if (err.message.includes('request was interrupted by a call to pause')) {
14
+ return;
15
+ }
16
+ // Pause was called after play in Safari
17
+ if (err.message.includes('The operation was aborted.')) {
18
+ return;
19
+ }
20
+ // Pause was called after play in Firefox
21
+ if (err.message.includes('The fetching process for the media resource was aborted by the user agent')) {
22
+ return;
23
+ }
24
+ console.log(`Could not play ${mediaType} due to following error: `, err);
25
+ if (!current.muted) {
26
+ console.log(`The video will be muted and we'll retry playing it.`, err);
27
+ current.muted = true;
28
+ current.play();
29
+ }
30
+ });
31
+ }
32
+ };
33
+ exports.playAndHandleNotAllowedError = playAndHandleNotAllowedError;
34
+ //# sourceMappingURL=play-and-handle-not-allowed-error.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"play-and-handle-not-allowed-error.js","sourceRoot":"","sources":["../src/play-and-handle-not-allowed-error.ts"],"names":[],"mappings":";;;AAEO,MAAM,4BAA4B,GAAG,CAC3C,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,wCAAwC;YACxC,IAAI,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,4CAA4C,CAAC,EAAE;gBACvE,OAAO;aACP;YAED,wCAAwC;YACxC,IAAI,GAAG,CAAC,OAAO,CAAC,QAAQ,CAAC,4BAA4B,CAAC,EAAE;gBACvD,OAAO;aACP;YAED,yCAAyC;YACzC,IACC,GAAG,CAAC,OAAO,CAAC,QAAQ,CACnB,2EAA2E,CAC3E,EACA;gBACD,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;AAvCW,QAAA,4BAA4B,gCAuCvC"}
@@ -1,4 +1,8 @@
1
1
  import { MutableRefObject } from 'react';
2
+ export declare type PlayableMediaTag = {
3
+ play: () => void;
4
+ id: string;
5
+ };
2
6
  export declare type TimelineContextValue = {
3
7
  frame: number;
4
8
  playing: boolean;
@@ -6,6 +10,7 @@ export declare type TimelineContextValue = {
6
10
  playbackRate: number;
7
11
  imperativePlaying: MutableRefObject<boolean>;
8
12
  setPlaybackRate: (u: React.SetStateAction<number>) => void;
13
+ audioAndVideoTags: MutableRefObject<PlayableMediaTag[]>;
9
14
  };
10
15
  export declare type SetTimelineContextValue = {
11
16
  setFrame: (u: React.SetStateAction<number>) => void;
@@ -1 +1 @@
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,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;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"}
@@ -13,6 +13,7 @@ exports.TimelineContext = (0, react_1.createContext)({
13
13
  setPlaybackRate: () => {
14
14
  throw new Error('default');
15
15
  },
16
+ audioAndVideoTags: { current: [] },
16
17
  });
17
18
  exports.SetTimelineContext = (0, react_1.createContext)({
18
19
  setFrame: () => {
@@ -1 +1 @@
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,QA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mB,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;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"}
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;AAS1E,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;UA4G5B,CAAC"}
@@ -6,6 +6,7 @@ const use_audio_frame_1 = require("./audio/use-audio-frame");
6
6
  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
+ const play_and_handle_not_allowed_error_1 = require("./play-and-handle-not-allowed-error");
9
10
  const sequencing_1 = require("./sequencing");
10
11
  const timeline_position_state_1 = require("./timeline-position-state");
11
12
  const use_video_config_1 = require("./use-video-config");
@@ -20,7 +21,7 @@ const warnOnce = (message) => {
20
21
  };
21
22
  const useMediaInTimeline = ({ volume, mediaVolume, mediaRef, src, mediaType, }) => {
22
23
  const videoConfig = (0, use_video_config_1.useVideoConfig)();
23
- const { rootId } = (0, react_1.useContext)(timeline_position_state_1.TimelineContext);
24
+ const { rootId, audioAndVideoTags } = (0, react_1.useContext)(timeline_position_state_1.TimelineContext);
24
25
  const parentSequence = (0, react_1.useContext)(sequencing_1.SequenceContext);
25
26
  const actualFrom = parentSequence
26
27
  ? parentSequence.relativeFrom + parentSequence.cumulatedFrom
@@ -101,6 +102,16 @@ const useMediaInTimeline = ({ volume, mediaVolume, mediaRef, src, mediaType, })
101
102
  mediaType,
102
103
  startsAt,
103
104
  ]);
105
+ (0, react_1.useEffect)(() => {
106
+ const tag = {
107
+ id,
108
+ play: () => (0, play_and_handle_not_allowed_error_1.playAndHandleNotAllowedError)(mediaRef, mediaType),
109
+ };
110
+ audioAndVideoTags.current.push(tag);
111
+ return () => {
112
+ audioAndVideoTags.current = audioAndVideoTags.current.filter((a) => a.id !== id);
113
+ };
114
+ }, [audioAndVideoTags, id, mediaRef, mediaType]);
104
115
  };
105
116
  exports.useMediaInTimeline = useMediaInTimeline;
106
117
  //# sourceMappingURL=use-media-in-timeline.js.map
@@ -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,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,GAAG,cAAc,CAAC,aAAa;QAC5D,CAAC,CAAC,CAAC,CAAC;IACL,MAAM,QAAQ,GAAG,IAAA,kCAAgB,GAAE,CAAC;IACpC,MAAM,EAAC,gBAAgB,EAAE,kBAAkB,EAAC,GAAG,IAAA,kBAAU,EAAC,uCAAkB,CAAC,CAAC;IAC9E,MAAM,CAAC,EAAE,CAAC,GAAG,IAAA,gBAAQ,EAAC,GAAG,EAAE,CAAC,M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C,EAAE,CAAC,aAAa,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,CAAC,CAAC,CAAC;IAE5C,IAAA,iBAAS,EAAC,GAAG,EAAE;;QACd,IAAI,CAAC,QAAQ,CAAC,OAAO,EAAE;YACtB,OAAO;SACP;QAED,IAAI,CAAC,GAAG,EAAE;YACT,MAAM,IAAI,KAAK,CAAC,eAAe,CAAC,CAAC;SACjC;QAED,gBAAgB,CAAC;YAChB,IAAI,EAAE,SAAS;YACf,GAAG;YACH,EAAE;YACF,8BAA8B;YAC9B,QAAQ;YACR,IAAI,EAAE,CAAC;YACP,MAAM,EAAE,MAAA,cAAc,aAAd,cAAc,uBAAd,cAAc,CAAE,EAAE,mCAAI,IAAI;YAClC,WAAW,EAAE,IAAA,yCAAmB,EAAC,GAAG,CAAC;YACrC,MAAM;YACN,MAAM,EAAE,OAAO;YACf,cAAc,EAAE,IAAI;YACpB,KAAK;YACL,cAAc,EAAE,CAAC,GAAG,QAAQ;YAC5B,gBAAgB;YAChB,uBAAuB,EAAE,SAAS;SAClC,CAAC,CAAC;QACH,OAAO,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;AACJ,CAAC,CAAC;AAzGW,QAAA,kBAAkB,sBAyG7B"}
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,uEAA4E;AAC5E,yDAAkD;AAClD,+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.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"}
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"}
@@ -3,31 +3,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.useMediaPlayback = void 0;
4
4
  const react_1 = require("react");
5
5
  const use_audio_frame_1 = require("./audio/use-audio-frame");
6
+ const play_and_handle_not_allowed_error_1 = require("./play-and-handle-not-allowed-error");
6
7
  const timeline_position_state_1 = require("./timeline-position-state");
7
8
  const use_frame_1 = require("./use-frame");
8
9
  const use_video_config_1 = require("./use-video-config");
9
10
  const get_current_time_1 = require("./video/get-current-time");
10
11
  const warn_about_non_seekable_media_1 = require("./warn-about-non-seekable-media");
11
- const playAndHandleNotAllowedError = (mediaRef, mediaType) => {
12
- const { current } = mediaRef;
13
- const prom = current === null || current === void 0 ? void 0 : current.play();
14
- if (prom === null || prom === void 0 ? void 0 : prom.catch) {
15
- prom === null || prom === void 0 ? void 0 : prom.catch((err) => {
16
- if (!current) {
17
- return;
18
- }
19
- if (err.message.includes('request was interrupted by a call to pause')) {
20
- return;
21
- }
22
- console.log(`Could not play ${mediaType} due to following error: `, err);
23
- if (!current.muted) {
24
- console.log(`The video will be muted and we'll retry playing it.`, err);
25
- current.muted = true;
26
- current.play();
27
- }
28
- });
29
- }
30
- };
31
12
  const useMediaPlayback = ({ mediaRef, src, mediaType, playbackRate: localPlaybackRate, }) => {
32
13
  const { playbackRate: globalPlaybackRate } = (0, react_1.useContext)(timeline_position_state_1.TimelineContext);
33
14
  const frame = (0, use_frame_1.useCurrentFrame)();
@@ -37,12 +18,9 @@ const useMediaPlayback = ({ mediaRef, src, mediaType, playbackRate: localPlaybac
37
18
  const mediaStartsAt = (0, use_audio_frame_1.useMediaStartsAt)();
38
19
  const playbackRate = localPlaybackRate * globalPlaybackRate;
39
20
  (0, react_1.useEffect)(() => {
40
- var _a, _b;
41
- if (playing && !((_a = mediaRef.current) === null || _a === void 0 ? void 0 : _a.ended)) {
42
- playAndHandleNotAllowedError(mediaRef, mediaType);
43
- }
44
- else {
45
- (_b = mediaRef.current) === null || _b === void 0 ? void 0 : _b.pause();
21
+ var _a;
22
+ if (!playing) {
23
+ (_a = mediaRef.current) === null || _a === void 0 ? void 0 : _a.pause();
46
24
  }
47
25
  }, [mediaRef, mediaType, playing]);
48
26
  (0, react_1.useEffect)(() => {
@@ -64,7 +42,7 @@ const useMediaPlayback = ({ mediaRef, src, mediaType, playbackRate: localPlaybac
64
42
  const isTime = mediaRef.current.currentTime;
65
43
  const timeShift = Math.abs(shouldBeTime - isTime);
66
44
  if (timeShift > 0.45 && !mediaRef.current.ended) {
67
- console.log('Time has shifted by', timeShift, 'sec. Fixing...');
45
+ console.log('Time has shifted by', timeShift, 'sec. Fixing...', `(isTime=${isTime},shouldBeTime=${shouldBeTime})`);
68
46
  // If scrubbing around, adjust timing
69
47
  // or if time shift is bigger than 0.2sec
70
48
  mediaRef.current.currentTime = shouldBeTime;
@@ -76,7 +54,7 @@ const useMediaPlayback = ({ mediaRef, src, mediaType, playbackRate: localPlaybac
76
54
  if (mediaRef.current.paused && !mediaRef.current.ended && playing) {
77
55
  const { current } = mediaRef;
78
56
  current.currentTime = shouldBeTime;
79
- playAndHandleNotAllowedError(mediaRef, mediaType);
57
+ (0, play_and_handle_not_allowed_error_1.playAndHandleNotAllowedError)(mediaRef, mediaType);
80
58
  }
81
59
  }, [
82
60
  absoluteFrame,
@@ -1 +1 @@
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,IA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-video.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ,mEAOpB,CAAC"}
1
+ {"version":3,"file":"use-video.d.ts","sourceRoot":"","sources":["../src/use-video.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,QAAQ,mEASpB,CAAC"}
package/dist/use-video.js CHANGED
@@ -4,11 +4,13 @@ exports.useVideo = void 0;
4
4
  const react_1 = require("react");
5
5
  const CompositionManager_1 = require("./CompositionManager");
6
6
  const useVideo = () => {
7
- var _a;
8
7
  const context = (0, react_1.useContext)(CompositionManager_1.CompositionManager);
9
- return ((_a = context.compositions.find((c) => {
10
- return c.id === context.currentComposition;
11
- })) !== null && _a !== void 0 ? _a : null);
8
+ return (0, react_1.useMemo)(() => {
9
+ var _a;
10
+ return (_a = context.compositions.find((c) => {
11
+ return c.id === context.currentComposition;
12
+ })) !== null && _a !== void 0 ? _a : null;
13
+ }, [context.compositions, context.currentComposition]);
12
14
  };
13
15
  exports.useVideo = useVideo;
14
16
  //# sourceMappingURL=use-video.js.map
@@ -1 +1 @@
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,EAAE;QAC/B,OAAO,CAAC,CAAC,EAAE,KAAK,OAAO,CAAC,kBAAkB,CAAC;IAC5C,CAAC,CAAC,mCAAI,IAAI,CACV,CAAC;AACH,CAAC,CAAC;AAPW,QAAA,QAAQ,YAOnB"}
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"}
@@ -3,5 +3,5 @@ import { RemotionMainVideoProps } from './props';
3
3
  export declare const Video: React.ForwardRefExoticComponent<Pick<Omit<React.DetailedHTMLProps<React.VideoHTMLAttributes<HTMLVideoElement>, HTMLVideoElement>, "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" | "onEnded" | "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, "id" | "height" | "width" | "children" | "src" | "volume" | "playbackRate" | "slot" | "style" | "title" | "key" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "playsInline" | "preload" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "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" | "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" | "onEnded" | "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" | "poster" | "disablePictureInPicture" | "disableRemotePlayback" | keyof RemotionMainVideoProps> & React.RefAttributes<HTMLVideoElement>>;
7
7
  //# sourceMappingURL=Video.d.ts.map
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { RemotionVideoProps } from './props';
3
- export declare const VideoForDevelopment: React.ForwardRefExoticComponent<Pick<RemotionVideoProps, "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" | "onEnded" | "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"> & React.RefAttributes<HTMLVideoElement>>;
3
+ export declare const VideoForDevelopment: React.ForwardRefExoticComponent<Pick<RemotionVideoProps, "id" | "height" | "width" | "children" | "src" | "volume" | "playbackRate" | "slot" | "style" | "title" | "key" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "playsInline" | "preload" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "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" | "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" | "onEnded" | "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" | "poster" | "disablePictureInPicture" | "disableRemotePlayback"> & React.RefAttributes<HTMLVideoElement>>;
4
4
  //# sourceMappingURL=VideoForDevelopment.d.ts.map
@@ -1,4 +1,4 @@
1
1
  import React from 'react';
2
2
  import { RemotionVideoProps } from './props';
3
- export declare const VideoForRendering: React.ForwardRefExoticComponent<Pick<RemotionVideoProps, "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" | "onEnded" | "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"> & React.RefAttributes<HTMLVideoElement>>;
3
+ export declare const VideoForRendering: React.ForwardRefExoticComponent<Pick<RemotionVideoProps, "id" | "height" | "width" | "children" | "src" | "volume" | "playbackRate" | "slot" | "style" | "title" | "key" | "controlsList" | "crossOrigin" | "mediaGroup" | "muted" | "playsInline" | "preload" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "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" | "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" | "onEnded" | "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" | "poster" | "disablePictureInPicture" | "disableRemotePlayback"> & React.RefAttributes<HTMLVideoElement>>;
4
4
  //# sourceMappingURL=VideoForRendering.d.ts.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remotion",
3
- "version": "2.5.6",
3
+ "version": "2.6.0",
4
4
  "description": "Render videos in React",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -39,5 +39,5 @@
39
39
  "publishConfig": {
40
40
  "access": "public"
41
41
  },
42
- "gitHead": "3ca040a48c3c035abe736108959b75322374e665"
42
+ "gitHead": "643d795d9a64b2e338ee7179a2133927ea31387e"
43
43
  }