Skip to content

🎥 Make videos programmatically with React

`@remotion/media`: Fix `Invalid message: {\"type\":\"main-tab-ready\"}` happening

Jonny Burgerdde1025ee286
diff --git a/packages/media/src/video-extraction/add-broadcast-channel-listener.ts b/packages/media/src/video-extraction/add-broadcast-channel-listener.ts
index 22b6e5d215..99dad4b3ca 100644
--- a/packages/media/src/video-extraction/add-broadcast-channel-listener.ts
+++ b/packages/media/src/video-extraction/add-broadcast-channel-listener.ts
@@ -175,6 +175,8 @@ export const addBroadcastChannelListener = () => {
window.remotion_broadcastChannel!.postMessage(response);
}
+ } else if (data.type === 'main-tab-ready') {
+ // can happen: https://discord.com/channels/809501355504959528/990308056627806238/1471899489978679387
} else {
throw new Error('Invalid message: ' + JSON.stringify(data));
}