Record Plugin : MimeType MP4 (All browsers) #3035
-
Hello, I use the record te plugin and I notice that on Chrome the blob generated is audio/webm and on safari the blog is audio/mp4. Audio/mp4 seems to pass on all browsers. How can I force Audio/Mp4 or another MimeType into the record plugin? The code below systematically returns an error (mime does not exist)
Is there, otherwise, an all-purpose mime (on all browsers) that doesn't require a special encoding tool? Thanks |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I guess we should move mp4 to the beginning of this list: https://github.com/katspaugh/wavesurfer.js/pull/2892/files#diff-fa9340af669d868ea6c73e1f704f43158f57401114951faf6455512ac81a524bR19 |
Beta Was this translation helpful? Give feedback.
Hello, unfortunately this doesn't work.
Google Chrome only uses the webm format. So I had to set up an audio transcoding microservice to encode the streams in MP4 (Safari obviously only reads this format).
For those interested, here's the server-side transcoding code:
sudo apt-get install ffmpeg