🎥 Make videos programmatically with React
`@remotion/media-utils`: Log status code if it is not 206 in getPartialWaveData)()
Jonny Burger0fad532a4022
diff --git a/packages/media-utils/src/get-partial-wave-data.ts b/packages/media-utils/src/get-partial-wave-data.tsindex cdded96850..1ead5f7922 100644--- a/packages/media-utils/src/get-partial-wave-data.ts+++ b/packages/media-utils/src/get-partial-wave-data.ts@@ -40,7 +40,7 @@ export const getPartialWaveData = async ({if (response.status !== 206) {throw new Error(- `Tried to read bytes ${startByte}-${endByte} from ${src}, but the response status code was not 206. This means the server might not support returning a partial response.`,+ `Tried to read bytes ${startByte}-${endByte} from ${src}, but the response status code was ${response.status} (expected was 206). This means the server might not support returning a partial response.`,);}diff --git a/packages/media-utils/src/probe-wave-file.ts b/packages/media-utils/src/probe-wave-file.tsindex f764513e4d..0ccaddbf3f 100644--- a/packages/media-utils/src/probe-wave-file.ts+++ b/packages/media-utils/src/probe-wave-file.ts@@ -55,7 +55,7 @@ export const probeWaveFile = async (src: string): Promise<WaveProbe> => {});if (response.status !== 206) {throw new Error(- `Tried to read bytes 0-256 from ${src}, but the response status code was not 206. This means the server might not support returning a partial response.`,+ `Tried to read bytes 0-256 from ${src}, but the response status code was ${response.status} (expected was 206). This means the server might not support returning a partial response.`,);}