remotion 3.3.39 → 3.3.41

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.
@@ -20,7 +20,11 @@ declare type AudioElem = {
20
20
  declare type SharedContext = {
21
21
  registerAudio: (aud: RemotionAudioProps, audioId: string) => AudioElem;
22
22
  unregisterAudio: (id: number) => void;
23
- updateAudio: (id: number, aud: RemotionAudioProps) => void;
23
+ updateAudio: (options: {
24
+ id: number;
25
+ aud: RemotionAudioProps;
26
+ audioId: string;
27
+ }) => void;
24
28
  playAllAudios: () => void;
25
29
  numberOfAudioTags: number;
26
30
  };
@@ -133,7 +133,7 @@ const SharedAudioContextProvider = ({ children, numberOfAudioTags }) => {
133
133
  audios.current = (_a = audios.current) === null || _a === void 0 ? void 0 : _a.filter((a) => a.id !== id);
134
134
  rerenderAudios();
135
135
  }, [refs, rerenderAudios]);
136
- const updateAudio = (0, react_1.useCallback)((id, aud) => {
136
+ const updateAudio = (0, react_1.useCallback)(({ aud, audioId, id, }) => {
137
137
  var _a;
138
138
  let changed = false;
139
139
  audios.current = (_a = audios.current) === null || _a === void 0 ? void 0 : _a.map((prevA) => {
@@ -146,6 +146,7 @@ const SharedAudioContextProvider = ({ children, numberOfAudioTags }) => {
146
146
  return {
147
147
  ...prevA,
148
148
  props: aud,
149
+ audioId,
149
150
  };
150
151
  }
151
152
  return prevA;
@@ -205,9 +206,9 @@ const useSharedAudio = (aud, audioId) => {
205
206
  if (typeof document !== 'undefined') {
206
207
  effectToUse(() => {
207
208
  if (ctx && ctx.numberOfAudioTags > 0) {
208
- ctx.updateAudio(elem.id, aud);
209
+ ctx.updateAudio({ id: elem.id, aud, audioId });
209
210
  }
210
- }, [aud, ctx, elem.id]);
211
+ }, [aud, ctx, elem.id, audioId]);
211
212
  effectToUse(() => {
212
213
  return () => {
213
214
  if (ctx && ctx.numberOfAudioTags > 0) {
@@ -57,7 +57,11 @@ export declare const Internals: {
57
57
  audioId: string;
58
58
  };
59
59
  unregisterAudio: (id: number) => void;
60
- updateAudio: (id: number, aud: import("./audio").RemotionAudioProps) => void;
60
+ updateAudio: (options: {
61
+ id: number;
62
+ aud: import("./audio").RemotionAudioProps;
63
+ audioId: string;
64
+ }) => void;
61
65
  playAllAudios: () => void;
62
66
  numberOfAudioTags: number;
63
67
  } | null>;
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "3.3.39";
1
+ export declare const VERSION = "3.3.41";
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.39';
5
+ exports.VERSION = '3.3.41';
@@ -18,7 +18,7 @@ const warnAboutNonSeekableMedia = (ref, type) => {
18
18
  }
19
19
  const range = { start: ref.seekable.start(0), end: ref.seekable.end(0) };
20
20
  if (range.start === 0 && range.end === 0) {
21
- const msg = `The media does not support seeking. Remotion cannot properly render it. Please see https://remotion.dev/docs/non-seekable-media for assistance. Source: ${ref.src}`;
21
+ const msg = `The media ${ref.src} cannot be seeked. This could be one of two reasons: 1) The media resource was replaced while the video is playing but it was not loaded yet. 2) The media does not support seeking. Please see https://remotion.dev/docs/non-seekable-media for assistance.`;
22
22
  if (type === 'console-error') {
23
23
  console.error(msg);
24
24
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remotion",
3
- "version": "3.3.39",
3
+ "version": "3.3.41",
4
4
  "description": "Render videos in React",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -65,5 +65,5 @@
65
65
  ]
66
66
  }
67
67
  },
68
- "gitHead": "5a07260074fe3a6db2cdba0001503c665951414d"
68
+ "gitHead": "8e408247d151ac824864acf357782f10c89ed5f5"
69
69
  }