@remotion/studio 4.0.347 → 4.0.351

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.
@@ -31903,7 +31903,7 @@ var parseMdatSection = async (state) => {
31903
31903
  return makeSkip(endOfMdat);
31904
31904
  }
31905
31905
  const exactMatch = nextSampleArray.find((s) => s.samplePosition.offset === state.iterator.counter.getOffset());
31906
- const nextSample = exactMatch ?? nextSampleArray[0];
31906
+ const nextSample = exactMatch ?? nextSampleArray.sort((a, b) => a.samplePosition.offset - b.samplePosition.offset)[0];
31907
31907
  if (nextSample.samplePosition.offset !== state.iterator.counter.getOffset()) {
31908
31908
  return makeSkip(nextSample.samplePosition.offset);
31909
31909
  }
@@ -32481,7 +32481,7 @@ var makeFetchRequest = async ({
32481
32481
  }) => {
32482
32482
  const resolvedUrl = resolveUrl(src);
32483
32483
  const resolvedUrlString = resolvedUrl.toString();
32484
- if (!resolvedUrlString.startsWith("https://") && !resolvedUrlString.startsWith("blob:") && !resolvedUrlString.startsWith("http://")) {
32484
+ if (!resolvedUrlString.startsWith("https://") && !resolvedUrlString.startsWith("blob:") && !resolvedUrlString.startsWith("data:") && !resolvedUrlString.startsWith("http://")) {
32485
32485
  return Promise.reject(new Error(`${resolvedUrlString} is not a URL - needs to start with http:// or https:// or blob:. If you want to read a local file, pass \`reader: nodeReader\` to parseMedia().`));
32486
32486
  }
32487
32487
  const ownController = new AbortController;
@@ -32183,7 +32183,7 @@ var parseMdatSection = async (state) => {
32183
32183
  return makeSkip(endOfMdat);
32184
32184
  }
32185
32185
  const exactMatch = nextSampleArray.find((s) => s.samplePosition.offset === state.iterator.counter.getOffset());
32186
- const nextSample = exactMatch ?? nextSampleArray[0];
32186
+ const nextSample = exactMatch ?? nextSampleArray.sort((a, b) => a.samplePosition.offset - b.samplePosition.offset)[0];
32187
32187
  if (nextSample.samplePosition.offset !== state.iterator.counter.getOffset()) {
32188
32188
  return makeSkip(nextSample.samplePosition.offset);
32189
32189
  }
@@ -32761,7 +32761,7 @@ var makeFetchRequest = async ({
32761
32761
  }) => {
32762
32762
  const resolvedUrl = resolveUrl(src);
32763
32763
  const resolvedUrlString = resolvedUrl.toString();
32764
- if (!resolvedUrlString.startsWith("https://") && !resolvedUrlString.startsWith("blob:") && !resolvedUrlString.startsWith("http://")) {
32764
+ if (!resolvedUrlString.startsWith("https://") && !resolvedUrlString.startsWith("blob:") && !resolvedUrlString.startsWith("data:") && !resolvedUrlString.startsWith("http://")) {
32765
32765
  return Promise.reject(new Error(`${resolvedUrlString} is not a URL - needs to start with http:// or https:// or blob:. If you want to read a local file, pass \`reader: nodeReader\` to parseMedia().`));
32766
32766
  }
32767
32767
  const ownController = new AbortController;
@@ -185,7 +185,7 @@ var renderContent = (Root) => {
185
185
  renderToDOM(/* @__PURE__ */ jsx("div", {
186
186
  children: /* @__PURE__ */ jsx(DelayedSpinner, {})
187
187
  }));
188
- import("./chunk-z55bp9m5.js").then(({ StudioInternals }) => {
188
+ import("./chunk-d89d4a1t.js").then(({ StudioInternals }) => {
189
189
  renderToDOM(/* @__PURE__ */ jsx(StudioInternals.Studio, {
190
190
  readOnly: true,
191
191
  rootComponent: Root
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "url": "https://github.com/remotion-dev/remotion/tree/main/packages/studio"
4
4
  },
5
5
  "name": "@remotion/studio",
6
- "version": "4.0.347",
6
+ "version": "4.0.351",
7
7
  "description": "APIs for interacting with the Remotion Studio",
8
8
  "main": "dist",
9
9
  "sideEffects": false,
@@ -23,22 +23,22 @@
23
23
  "source-map": "0.7.3",
24
24
  "open": "^8.4.2",
25
25
  "zod": "3.22.3",
26
- "remotion": "4.0.347",
27
- "@remotion/player": "4.0.347",
28
- "@remotion/media-utils": "4.0.347",
29
- "@remotion/media-parser": "4.0.347",
30
- "@remotion/renderer": "4.0.347",
31
- "@remotion/studio-shared": "4.0.347",
32
- "@remotion/webcodecs": "4.0.347",
33
- "@remotion/zod-types": "4.0.347",
34
- "@remotion/web-renderer": "4.0.347"
26
+ "@remotion/player": "4.0.351",
27
+ "@remotion/media-utils": "4.0.351",
28
+ "@remotion/media-parser": "4.0.351",
29
+ "@remotion/web-renderer": "4.0.351",
30
+ "remotion": "4.0.351",
31
+ "@remotion/studio-shared": "4.0.351",
32
+ "@remotion/zod-types": "4.0.351",
33
+ "@remotion/renderer": "4.0.351",
34
+ "@remotion/webcodecs": "4.0.351"
35
35
  },
36
36
  "devDependencies": {
37
37
  "react": "19.0.0",
38
38
  "react-dom": "19.0.0",
39
39
  "@types/semver": "^7.3.4",
40
40
  "eslint": "9.19.0",
41
- "@remotion/eslint-config-internal": "4.0.347"
41
+ "@remotion/eslint-config-internal": "4.0.351"
42
42
  },
43
43
  "publishConfig": {
44
44
  "access": "public"