Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

118
Views
How to get a cross-browser audio format from MediaRecorder API

I am trying to use MediaRecorder in a way that it outputs a format that can be played back on all major browsers (Chrome-based, Firefox, Safari) without server-side re-encoding.

Here's what I have been scratching my head on:

  • What format/codec should I use so that MediaRecorder outputs the most compatible output that can be natively played back by major browsers in a simple <audio src=...> tag?

  • How can I configure MediaRecorder to record with that format and codec?

In the MediaRecorder1 documentation, they configure the format this way:

      var blob = new Blob(chunks, { 'type' : 'audio/ogg; codecs=opus' });

But it looks like tagging an already-recorded blob with a audio/ogg MIME i.e. if I replace with audio/mpeg I don't actually get a mpeg-encoded output.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!