remotion 3.2.9 → 3.2.10

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 3f210b6bc8b179a0
2
+ remotion:build: 
3
+ remotion:build: > remotion@3.2.9 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),
@@ -0,0 +1,2 @@
1
+ export declare const getBundleOutDir: () => string | null;
2
+ export declare const setBundleOutDir: (path: string) => void;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.setBundleOutDir = exports.getBundleOutDir = void 0;
4
+ let bundleOutDir = null;
5
+ const getBundleOutDir = () => {
6
+ return bundleOutDir;
7
+ };
8
+ exports.getBundleOutDir = getBundleOutDir;
9
+ const setBundleOutDir = (path) => {
10
+ bundleOutDir = path;
11
+ };
12
+ exports.setBundleOutDir = setBundleOutDir;
@@ -0,0 +1,2 @@
1
+ export declare const getPublicPath: () => string | null;
2
+ export declare const setPublicPath: (path: string) => void;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.setPublicPath = exports.getPublicPath = void 0;
4
+ let publicPath = null;
5
+ const getPublicPath = () => {
6
+ return publicPath;
7
+ };
8
+ exports.getPublicPath = getPublicPath;
9
+ const setPublicPath = (path) => {
10
+ publicPath = path;
11
+ };
12
+ exports.setPublicPath = setPublicPath;
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "3.2.9";
1
+ export declare const VERSION = "3.2.10";
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.10';
@@ -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.10",
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": "66ad527dc06a14b7d6d5aab8ff8e736e67db8154"
58
58
  }
@@ -1,4 +0,0 @@
1
- import type { TCaption } from '../CompositionManager';
2
- declare type CaptionProps = Omit<TCaption, 'id' | 'isRemote'>;
3
- export declare const Caption: (props: CaptionProps) => null;
4
- export {};
@@ -1,26 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Caption = void 0;
4
- const react_1 = require("react");
5
- const absolute_src_1 = require("../absolute-src");
6
- const CompositionManager_1 = require("../CompositionManager");
7
- const get_environment_1 = require("../get-environment");
8
- const Caption = (props) => {
9
- const { language, src, title } = props;
10
- const { registerCaption, unregisterCaption } = (0, react_1.useContext)(CompositionManager_1.CompositionManager);
11
- (0, react_1.useEffect)(() => {
12
- if ((0, get_environment_1.getRemotionEnvironment)() !== 'rendering') {
13
- return;
14
- }
15
- const id = `caption-${src}`;
16
- registerCaption({
17
- id,
18
- language,
19
- src: (0, absolute_src_1.getAbsoluteSrc)(src),
20
- title,
21
- });
22
- return () => unregisterCaption(id);
23
- }, [language, registerCaption, src, title, unregisterCaption]);
24
- return null;
25
- };
26
- exports.Caption = Caption;