Skip to content

🎥 Make videos programmatically with React

Update on-audio-track.ts

Jonny Burgere659f00d594f
diff --git a/packages/webcodecs/src/on-audio-track.ts b/packages/webcodecs/src/on-audio-track.ts
index d503d43240..452d60f78b 100644
--- a/packages/webcodecs/src/on-audio-track.ts
+++ b/packages/webcodecs/src/on-audio-track.ts
@@ -222,9 +222,10 @@ export const makeAudioTrackHandler =
`onAudioData returned a different format than the input audio data. Original format: ${audioData.format}, new format: ${newAudioData.format}`,
);
}
+
if (newAudioData.timestamp !== audioData.timestamp) {
throw new Error(
- `onAudioData returned a different timestamp than the input audio data. Original timestamp: ${audioData.timestamp}, new timestamp: ${newAudioData.timestamp
+ `onAudioData returned a different timestamp than the input audio data. Original timestamp: ${audioData.timestamp}, new timestamp: ${newAudioData.timestamp}`,
);
}