🎥 Make videos programmatically with React
because the media was removed from the document
Jonny Burger25cf1929d00d
diff --git a/packages/core/src/play-and-handle-not-allowed-error.ts b/packages/core/src/play-and-handle-not-allowed-error.tsindex a8c6053a95..993ec55c39 100644--- a/packages/core/src/play-and-handle-not-allowed-error.ts+++ b/packages/core/src/play-and-handle-not-allowed-error.ts@@ -42,6 +42,13 @@ export const playAndHandleNotAllowedError = (return;}+ // Audio tag got unmounted+ if (+ err.message.includes('because the media was removed from the document')+ ) {+ return;+ }+console.log(`Could not play ${mediaType} due to following error: `, err);if (!current.muted) {console.log(`The video will be muted and we'll retry playing it.`, err);