🎥 Make videos programmatically with React
handle "request was interrupted by a new load request"
Jonny Burger95e23d2d09d6
diff --git a/packages/core/src/play-and-handle-not-allowed-error.ts b/packages/core/src/play-and-handle-not-allowed-error.tsindex b7deea73f3..147451621c 100644--- a/packages/core/src/play-and-handle-not-allowed-error.ts+++ b/packages/core/src/play-and-handle-not-allowed-error.ts@@ -31,6 +31,13 @@ export const playAndHandleNotAllowedError = (return;}+ // Got replaced by a different audio source in Chromium+ if (+ err.message.includes('request was interrupted by a new load request')+ ) {+ 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);