remotion 3.2.9 → 3.2.12-crf.5

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.
@@ -1,5 +1,5 @@
1
- remotion:build: cache hit, replaying output b7e34247803ef5aa
2
- remotion:build: 
3
- remotion:build: > remotion@3.2.8 build /Users/jonathanburger/remotion/packages/core
4
- remotion:build: > tsc -d
5
- remotion:build: 
1
+ remotion:build: cache hit, replaying output 1809fa55f25af41e
2
+ remotion:build: 
3
+ remotion:build: > remotion@3.2.11 build /Users/jonathanburger/remotion/packages/core
4
+ remotion:build: > tsc -d
5
+ remotion:build: 
@@ -22,8 +22,8 @@ const AudioForRenderingRefForwardingFunction = (props, ref) => {
22
22
  // but at the same time the same on all threads
23
23
  const id = (0, react_1.useMemo)(() => {
24
24
  var _a;
25
- return `audio-${(0, random_1.random)((_a = props.src) !== null && _a !== void 0 ? _a : '')}-${sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.relativeFrom}-${sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.cumulatedFrom}-${sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.durationInFrames}-muted:${props.muted}`;
26
- }, [props.muted, props.src, sequenceContext]);
25
+ return `audio-${(0, random_1.random)((_a = props.src) !== null && _a !== void 0 ? _a : '')}-${sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.relativeFrom}-${sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.cumulatedFrom}-${sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.durationInFrames}`;
26
+ }, [props.src, sequenceContext]);
27
27
  const { volume: volumeProp, playbackRate, ...nativeProps } = props;
28
28
  const volume = (0, volume_prop_1.evaluateVolume)({
29
29
  volume: volumeProp,
@@ -44,6 +44,9 @@ const AudioForRenderingRefForwardingFunction = (props, ref) => {
44
44
  if (props.muted) {
45
45
  return;
46
46
  }
47
+ if (volume <= 0) {
48
+ return;
49
+ }
47
50
  registerAsset({
48
51
  type: 'audio',
49
52
  src: (0, absolute_src_1.getAbsoluteSrc)(props.src),
package/dist/config.d.ts CHANGED
@@ -20,6 +20,12 @@ export declare type ConfigType = {
20
20
  * @default 15
21
21
  */
22
22
  readonly setMaxTimelineTracks: (maxTracks: number) => void;
23
+ /**
24
+ * Enable Keyboard shortcuts in the Remotion Preview.
25
+ * @param enabled Boolean whether to enable the keyboard shortcuts
26
+ * @default true
27
+ */
28
+ readonly setKeyboardShortcutsEnabled: (enableShortcuts: boolean) => void;
23
29
  };
24
30
  readonly Bundling: {
25
31
  /**
@@ -15,7 +15,7 @@ const validateFps = (fps, location, isGif) => {
15
15
  throw new TypeError(`"fps" must be positive, but got ${fps} ${location}`);
16
16
  }
17
17
  if (isGif && fps > 50) {
18
- throw new TypeError(`The FPS for a GIF cannot be higher than 50. Use the --skip-n-frames option to lower the FPS: https://remotion.dev/docs/render-as-gif`);
18
+ throw new TypeError(`The FPS for a GIF cannot be higher than 50. Use the --every-nth-frame option to lower the FPS: https://remotion.dev/docs/render-as-gif`);
19
19
  }
20
20
  };
21
21
  exports.validateFps = validateFps;
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "3.2.9";
1
+ export declare const VERSION = "3.2.12-crf.5+14dc380ad";
package/dist/version.js CHANGED
@@ -2,4 +2,4 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
4
  // Automatically generated on publish
5
- exports.VERSION = '3.2.9';
5
+ exports.VERSION = '3.2.12-crf.5+14dc380ad';
@@ -30,9 +30,8 @@ const OffthreadVideoForRendering = ({ onError, volume: volumeProp, playbackRate,
30
30
  }
31
31
  // Generate a string that's as unique as possible for this asset
32
32
  // but at the same time the same on all threads
33
- const id = (0, react_1.useMemo)(() => `video-${(0, random_1.random)(src !== null && src !== void 0 ? src : '')}-${sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.cumulatedFrom}-${sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.relativeFrom}-${sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.durationInFrames}-muted:${muted}`, [
33
+ const id = (0, react_1.useMemo)(() => `offthreadvideo-${(0, random_1.random)(src !== null && src !== void 0 ? src : '')}-${sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.cumulatedFrom}-${sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.relativeFrom}-${sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.durationInFrames}`, [
34
34
  src,
35
- muted,
36
35
  sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.cumulatedFrom,
37
36
  sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.relativeFrom,
38
37
  sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.durationInFrames,
@@ -55,6 +54,9 @@ const OffthreadVideoForRendering = ({ onError, volume: volumeProp, playbackRate,
55
54
  if (muted) {
56
55
  return;
57
56
  }
57
+ if (volume <= 0) {
58
+ return;
59
+ }
58
60
  registerAsset({
59
61
  type: 'video',
60
62
  src: (0, absolute_src_1.getAbsoluteSrc)(src),
@@ -29,10 +29,9 @@ const VideoForRenderingForwardFunction = ({ onError, volume: volumeProp, playbac
29
29
  // but at the same time the same on all threads
30
30
  const id = (0, react_1.useMemo)(() => {
31
31
  var _a;
32
- return `video-${(0, random_1.random)((_a = props.src) !== null && _a !== void 0 ? _a : '')}-${sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.cumulatedFrom}-${sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.relativeFrom}-${sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.durationInFrames}-muted:${props.muted}`;
32
+ return `video-${(0, random_1.random)((_a = props.src) !== null && _a !== void 0 ? _a : '')}-${sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.cumulatedFrom}-${sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.relativeFrom}-${sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.durationInFrames}`;
33
33
  }, [
34
34
  props.src,
35
- props.muted,
36
35
  sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.cumulatedFrom,
37
36
  sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.relativeFrom,
38
37
  sequenceContext === null || sequenceContext === void 0 ? void 0 : sequenceContext.durationInFrames,
@@ -52,6 +51,9 @@ const VideoForRenderingForwardFunction = ({ onError, volume: volumeProp, playbac
52
51
  if (props.muted) {
53
52
  return;
54
53
  }
54
+ if (volume <= 0) {
55
+ return;
56
+ }
55
57
  if (!window.remotion_audioEnabled) {
56
58
  return;
57
59
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remotion",
3
- "version": "3.2.9",
3
+ "version": "3.2.12-crf.5+14dc380ad",
4
4
  "description": "Render videos in React",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -54,5 +54,5 @@
54
54
  "publishConfig": {
55
55
  "access": "public"
56
56
  },
57
- "gitHead": "66eceb7252865747a2808fc51cdbd2b57bb38486"
57
+ "gitHead": "14dc380ad148868c35c5612f48eaf8e78ab42d9c"
58
58
  }