@remotion/renderer 4.0.0-fastlambda.18 → 4.0.0-fastlambda.3

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,4 +1,7 @@
1
1
  export declare const createFfmpegComplexFilter: (filters: number) => Promise<{
2
- complexFilterFlag: [string, string] | null;
2
+ complexFilterFlag: [
3
+ string,
4
+ string
5
+ ] | null;
3
6
  cleanup: () => void;
4
7
  }>;
@@ -27,7 +27,7 @@ const killAllBrowsers = async () => {
27
27
  };
28
28
  exports.killAllBrowsers = killAllBrowsers;
29
29
  const openBrowser = async (browser, options) => {
30
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
30
+ var _a, _b, _c, _d, _e, _f, _g;
31
31
  if (browser === 'firefox' && !remotion_1.Internals.FEATURE_FLAG_FIREFOX_SUPPORT) {
32
32
  throw new TypeError('Firefox supported is not yet turned on. Stay tuned for the future.');
33
33
  }
@@ -38,9 +38,9 @@ const openBrowser = async (browser, options) => {
38
38
  executablePath,
39
39
  product: browser,
40
40
  dumpio: (_e = options === null || options === void 0 ? void 0 : options.shouldDumpIo) !== null && _e !== void 0 ? _e : false,
41
+ headless: false,
41
42
  ignoreDefaultArgs: true,
42
43
  args: [
43
- 'about:blank',
44
44
  '--allow-pre-commit-input',
45
45
  '--disable-background-networking',
46
46
  '--enable-features=NetworkService,NetworkServiceInProcess',
@@ -52,9 +52,6 @@ const openBrowser = async (browser, options) => {
52
52
  '--disable-default-apps',
53
53
  '--disable-dev-shm-usage',
54
54
  '--disable-extensions',
55
- '--no-proxy-server',
56
- "--proxy-server='direct://'",
57
- '--proxy-bypass-list=*',
58
55
  // TODO: remove AvoidUnnecessaryBeforeUnloadCheckSync below
59
56
  // once crbug.com/1324138 is fixed and released.
60
57
  '--disable-features=Translate,BackForwardCache,AvoidUnnecessaryBeforeUnloadCheckSync',
@@ -67,16 +64,18 @@ const openBrowser = async (browser, options) => {
67
64
  '--force-color-profile=srgb',
68
65
  '--metrics-recording-only',
69
66
  '--no-first-run',
70
- '--video-threads=16',
71
67
  '--enable-automation',
72
68
  '--password-store=basic',
73
69
  '--use-mock-keychain',
70
+ (options === null || options === void 0 ? void 0 : options.forceDeviceScaleFactor)
71
+ ? `--force-device-scale-factor=${options.forceDeviceScaleFactor}`
72
+ : null,
74
73
  // TODO(sadym): remove '--enable-blink-features=IdleDetection'
75
74
  // once IdleDetection is turned on by default.
76
75
  '--enable-blink-features=IdleDetection',
77
76
  '--export-tagged-pdf',
78
77
  '--intensive-wake-up-throttling-policy=0',
79
- ((_g = (_f = options === null || options === void 0 ? void 0 : options.chromiumOptions) === null || _f === void 0 ? void 0 : _f.headless) !== null && _g !== void 0 ? _g : true) ? '--headless' : null,
78
+ '--headless',
80
79
  '--no-sandbox',
81
80
  '--disable-setuid-sandbox',
82
81
  '--disable-dev-shm-usage',
@@ -89,18 +88,15 @@ const openBrowser = async (browser, options) => {
89
88
  '--disable-features=AudioServiceOutOfProcess,IsolateOrigins,site-per-process',
90
89
  '--disable-print-preview',
91
90
  '--disable-site-isolation-trials',
92
- '--disk-cache-size=268435456',
91
+ '--disk-cache-size=33554432',
93
92
  '--hide-scrollbars',
94
93
  '--no-default-browser-check',
95
94
  '--no-pings',
96
95
  '--no-zygote',
97
- (options === null || options === void 0 ? void 0 : options.forceDeviceScaleFactor)
98
- ? `--force-device-scale-factor=${options.forceDeviceScaleFactor}`
99
- : null,
100
- ((_h = options === null || options === void 0 ? void 0 : options.chromiumOptions) === null || _h === void 0 ? void 0 : _h.ignoreCertificateErrors)
96
+ ((_f = options === null || options === void 0 ? void 0 : options.chromiumOptions) === null || _f === void 0 ? void 0 : _f.ignoreCertificateErrors)
101
97
  ? '--ignore-certificate-errors'
102
98
  : null,
103
- ...(((_j = options === null || options === void 0 ? void 0 : options.chromiumOptions) === null || _j === void 0 ? void 0 : _j.disableWebSecurity)
99
+ ...(((_g = options === null || options === void 0 ? void 0 : options.chromiumOptions) === null || _g === void 0 ? void 0 : _g.disableWebSecurity)
104
100
  ? [
105
101
  '--disable-web-security',
106
102
  '--user-data-dir=' +
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import puppeteer from 'puppeteer-core';
3
2
  import { ImageFormat } from 'remotion';
4
3
  export declare const provideScreenshot: ({ page, imageFormat, options, quality, }: {
@@ -1,3 +1,2 @@
1
- /// <reference types="node" />
2
1
  import { Page, ScreenshotOptions } from 'puppeteer-core';
3
2
  export declare const screenshot: (page: Page, options?: ScreenshotOptions) => Promise<Buffer | string | void>;
@@ -69,7 +69,6 @@ const innerRenderFrames = async ({ onFrameUpdate, outputDir, onStart, inputProps
69
69
  : frameRange === null || frameRange === undefined
70
70
  ? 0
71
71
  : frameRange[0];
72
- console.log({ frameRange });
73
72
  await (0, set_props_and_env_1.setPropsAndEnv)({
74
73
  inputProps,
75
74
  envVariables,
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import puppeteer from 'puppeteer-core';
3
2
  import { ImageFormat } from 'remotion';
4
3
  export declare const screenshotDOMElement: ({ page, imageFormat, quality, opts, }: {
@@ -1,4 +1,3 @@
1
- /// <reference types="node" />
2
1
  import { Page, ScreenshotOptions } from 'puppeteer-core';
3
2
  import { StillImageFormat } from 'remotion';
4
3
  export declare const _screenshotTask: (page: Page, format: StillImageFormat, options: ScreenshotOptions) => Promise<Buffer | string>;
@@ -24,9 +24,9 @@ const setPropsAndEnv = async ({ inputProps, envVariables, page, serveUrl, initia
24
24
  window.remotion_envVariables = input;
25
25
  }, [JSON.stringify(envVariables)]);
26
26
  }
27
- await page.evaluateOnNewDocument((key) => {
28
- window.remotion_initialFrame = key;
29
- }, [initialFrame]);
27
+ await page.evaluateOnNewDocument((key, value) => {
28
+ window.localStorage.setItem(key, value);
29
+ }, [remotion_1.Internals.INITIAL_FRAME_LOCAL_STORAGE_KEY, initialFrame]);
30
30
  const pageRes = await page.goto(urlToVisit);
31
31
  const status = pageRes.status();
32
32
  if (status !== 200 &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remotion/renderer",
3
- "version": "4.0.0-fastlambda.18+0578f57fa",
3
+ "version": "4.0.0-fastlambda.3+58f892c91",
4
4
  "description": "Renderer for Remotion",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -20,10 +20,10 @@
20
20
  "url": "https://github.com/remotion-dev/remotion/issues"
21
21
  },
22
22
  "dependencies": {
23
- "@remotion/bundler": "4.0.0-fastlambda.18+0578f57fa",
23
+ "@remotion/bundler": "4.0.0-fastlambda.3+58f892c91",
24
24
  "execa": "5.1.1",
25
25
  "puppeteer-core": "13.5.1",
26
- "remotion": "4.0.0-fastlambda.18+0578f57fa",
26
+ "remotion": "4.0.0-fastlambda.3+58f892c91",
27
27
  "serve-handler": "6.1.3",
28
28
  "source-map": "^0.8.0-beta.0"
29
29
  },
@@ -60,5 +60,5 @@
60
60
  "publishConfig": {
61
61
  "access": "public"
62
62
  },
63
- "gitHead": "0578f57fa6c718af17cf53db534c3532fc770e42"
63
+ "gitHead": "58f892c915490a9b59ccba65f146a5e6a05f9d80"
64
64
  }