chrisguttandin / extendable-media-recorder

An extendable drop-in replacement for the native MediaRecorder.
MIT License
258 stars 13 forks source link

Safari Fails to Record with WAV Encoder #642

Closed andrejhronco closed 3 years ago

andrejhronco commented 3 years ago

Hi Chris, Getting these errors on Safari 14.1 / 14.2 right after calling register and connect when using wav encoder:

await register(await connect());

[Error] Error: The error you provided does not contain a stack trace.
[Error] Unhandled Promise Rejection: TypeError: 'application/javascript; charset=utf-8' is not a valid JavaScript MIME type.

thank you

chrisguttandin commented 3 years ago

Hi Andrej, unfortunately I can't reproduce this. It works for me in Safari v14.1. Not sure about v14.2. Is that the tech preview?

tranquocviet226 commented 3 years ago

I got another error with Safari 13.1.2

image

chrisguttandin commented 3 years ago

Hi @tranquocviet226, I think the two errors are unrelated. Safari's experimental MediaRecorder has no isTypeSupported() function. I handled that in one place already but forgot to handle it everywhere. The issue should be fixed now.

https://github.com/chrisguttandin/extendable-media-recorder/commit/2161e1b3007715f7559045c32c41ee2d79ef453a

I'm going to close the issue now. @AndrejHronco and @tranquocviet226, please feel free to re-open it if any of the two errors still persists.