Skip to content

🎥 Make videos programmatically with React

`@remotion/media`: Fix error when scheduling audio node past trim end

Jonny Burger31f8b3d5af5e
diff --git a/packages/media/src/media-player.ts b/packages/media/src/media-player.ts
index eee3aeead1..ff587b4bef 100644
--- a/packages/media/src/media-player.ts
+++ b/packages/media/src/media-player.ts
@@ -660,7 +660,7 @@ export class MediaPlayer {
const timeInSeconds = globalTime - this.sequenceOffset;
const localTime = this.getTrimmedTime(timeInSeconds);
if (localTime === null) {
- throw new Error('hmm, should not render!');
+ return {type: 'not-started'};
}
const targetTime =