|
const options = {mimeType: 'audio/ogg;codecs=opus'}; const mediaRecorder = new MediaRecorder(stream, options);Produces a media recorder recording using Ogg/Opus. However, on Safari (even 18.4), it fails, leaving your app unable to record.
Alternatives, such as omitting the codec, produce an Apple-proprietary file.
Here's hoping that Apple joins Firefox and Chrome in fully-supporting Ogg Opus. These little glitches in Safari are likely to push people towards other browsers, where such choice is available.
Copyright © 2025 Andrew Oliver