remotion 3.3.1 → 3.3.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,4 @@
1
1
 
2
- > remotion@3.3.0 build /Users/jonathanburger/remotion/packages/core
2
+ > remotion@3.3.2 build /Users/jonathanburger/remotion/packages/core
3
3
  > tsc -d
4
4
 
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
2
  export declare const RemotionRoot: React.FC<{
3
3
  children: React.ReactNode;
4
+ numberOfAudioTags: number;
4
5
  }>;
@@ -11,7 +11,7 @@ const prefetch_state_1 = require("./prefetch-state");
11
11
  const random_1 = require("./random");
12
12
  const timeline_position_state_1 = require("./timeline-position-state");
13
13
  const duration_state_1 = require("./video/duration-state");
14
- const RemotionRoot = ({ children }) => {
14
+ const RemotionRoot = ({ children, numberOfAudioTags }) => {
15
15
  var _a;
16
16
  const [remotionRootId] = (0, react_1.useState)(() => String((0, random_1.random)(null)));
17
17
  const [frame, setFrame] = (0, react_1.useState)((_a = window.remotion_initialFrame) !== null && _a !== void 0 ? _a : 0);
@@ -67,6 +67,6 @@ const RemotionRoot = ({ children }) => {
67
67
  // In the preview, which is mostly played on Desktop, we opt out of the autoplay policy fix as described in https://github.com/remotion-dev/remotion/pull/554, as it mostly applies to mobile.
68
68
  , {
69
69
  // In the preview, which is mostly played on Desktop, we opt out of the autoplay policy fix as described in https://github.com/remotion-dev/remotion/pull/554, as it mostly applies to mobile.
70
- numberOfAudioTags: 0, children: children }) }) }) }) }) }) }));
70
+ numberOfAudioTags: numberOfAudioTags, children: children }) }) }) }) }) }) }));
71
71
  };
72
72
  exports.RemotionRoot = RemotionRoot;
package/dist/config.d.ts CHANGED
@@ -26,6 +26,12 @@ export declare type ConfigType = {
26
26
  * @default true
27
27
  */
28
28
  readonly setKeyboardShortcutsEnabled: (enableShortcuts: boolean) => void;
29
+ /**
30
+ * Set number of shared audio tags. https://www.remotion.dev/docs/player/autoplay#use-the-numberofsharedaudiotags-property
31
+ * @param numberOfAudioTags
32
+ * @default 0
33
+ */
34
+ readonly setNumberOfSharedAudioTags: (numberOfAudioTags: number) => void;
29
35
  };
30
36
  readonly Bundling: {
31
37
  /**
package/dist/index.d.ts CHANGED
@@ -7,6 +7,7 @@ declare global {
7
7
  setBundleMode: (bundleMode: BundleState) => void;
8
8
  remotion_staticBase: string;
9
9
  remotion_editorName: string | null;
10
+ remotion_numberOfAudioTags: number;
10
11
  remotion_projectName: string;
11
12
  remotion_cwd: string;
12
13
  remotion_previewServerCommand: string;
@@ -16,6 +16,7 @@ export declare const Internals: {
16
16
  CompositionManager: import("react").Context<CompositionManagerContext>;
17
17
  RemotionRoot: import("react").FC<{
18
18
  children: import("react").ReactNode;
19
+ numberOfAudioTags: number;
19
20
  }>;
20
21
  useVideo: () => {
21
22
  height: number;
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "3.3.1";
1
+ export declare const VERSION = "3.3.3";
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.3.1';
5
+ exports.VERSION = '3.3.3';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remotion",
3
- "version": "3.3.1",
3
+ "version": "3.3.3",
4
4
  "description": "Render videos in React",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -55,5 +55,5 @@
55
55
  "publishConfig": {
56
56
  "access": "public"
57
57
  },
58
- "gitHead": "f56a29f8ab19e279e1a9950d3a3ccbb3c8ae42e0"
58
+ "gitHead": "27db3bbb7b8bd67aa3767e55c5c8f21a8d9fa16b"
59
59
  }