@remotion/renderer 3.2.8 → 3.2.9

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.
@@ -91,13 +91,26 @@ const innerRenderFrames = ({ onFrameUpdate, outputDir, onStart, inputProps, qual
91
91
  videoEnabled: imageFormat !== 'none',
92
92
  });
93
93
  await (0, puppeteer_evaluate_1.puppeteerEvaluateWithCatch)({
94
- pageFunction: (id) => {
94
+ // eslint-disable-next-line max-params
95
+ pageFunction: (id, defaultProps, durationInFrames, fps, height, width) => {
95
96
  window.setBundleMode({
96
97
  type: 'composition',
97
98
  compositionName: id,
99
+ compositionDefaultProps: defaultProps,
100
+ compositionDurationInFrames: durationInFrames,
101
+ compositionFps: fps,
102
+ compositionHeight: height,
103
+ compositionWidth: width,
98
104
  });
99
105
  },
100
- args: [composition.id],
106
+ args: [
107
+ composition.id,
108
+ composition.defaultProps,
109
+ composition.durationInFrames,
110
+ composition.fps,
111
+ composition.height,
112
+ composition.width,
113
+ ],
101
114
  frame: null,
102
115
  page,
103
116
  });
@@ -121,13 +121,26 @@ const innerRenderStill = async ({ composition, quality, imageFormat = 'png', ser
121
121
  videoEnabled: true,
122
122
  });
123
123
  await (0, puppeteer_evaluate_1.puppeteerEvaluateWithCatch)({
124
- pageFunction: (id) => {
124
+ // eslint-disable-next-line max-params
125
+ pageFunction: (id, defaultProps, durationInFrames, fps, height, width) => {
125
126
  window.setBundleMode({
126
127
  type: 'composition',
127
128
  compositionName: id,
129
+ compositionDefaultProps: defaultProps,
130
+ compositionDurationInFrames: durationInFrames,
131
+ compositionFps: fps,
132
+ compositionHeight: height,
133
+ compositionWidth: width,
128
134
  });
129
135
  },
130
- args: [composition.id],
136
+ args: [
137
+ composition.id,
138
+ composition.defaultProps,
139
+ composition.durationInFrames,
140
+ composition.fps,
141
+ composition.height,
142
+ composition.width,
143
+ ],
131
144
  frame: null,
132
145
  page,
133
146
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/renderer",
3
- "version": "3.2.8",
3
+ "version": "3.2.9",
4
4
  "description": "Renderer for Remotion",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -22,7 +22,7 @@
22
22
  "dependencies": {
23
23
  "execa": "5.1.1",
24
24
  "extract-zip": "2.0.1",
25
- "remotion": "3.2.8",
25
+ "remotion": "3.2.9",
26
26
  "source-map": "^0.8.0-beta.0",
27
27
  "ws": "8.7.0"
28
28
  },
@@ -57,5 +57,5 @@
57
57
  "publishConfig": {
58
58
  "access": "public"
59
59
  },
60
- "gitHead": "7ccde3ec3f4adecd5fb7188d9d2933435bba5743"
60
+ "gitHead": "66eceb7252865747a2808fc51cdbd2b57bb38486"
61
61
  }