diff --git a/src/player.ts b/src/player.ts index 5c609e7b4..273ca24f9 100644 --- a/src/player.ts +++ b/src/player.ts @@ -72,6 +72,12 @@ class Player extends EventEmitter { if (url && src === url) return this.revokeSrc() const newSrc = blob instanceof Blob && (this.canPlayType(blob.type) || !url) ? URL.createObjectURL(blob) : url + + // Reset the media element, otherwise it keeps the previous source + if (src) { + this.media.src = '' + } + try { this.media.src = newSrc } catch (e) {