-
Notifications
You must be signed in to change notification settings - Fork 202
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[web] Blob URL mime type is application/octet-stream
with all encoders on Safari
#376
Comments
After some days of research and testing, I finally came across an answer (not a solution sadly). Long story short, this behavior is because of the Safari browser privacy. Based on what I found, Safari won't let clients to download any file except for Images and PDFs. So, basically in web and in case of uploading recorded audio Blob (which is what Then I think of using I leave this issue open in hope of some one corrects me and gave us a solution. Or at least add a warning in package info about this limitations on Safari browser. Thanks! |
As I was also facing the same issue and there is no other solution in safari for this i finally decided to send the application/octet-stream to the backend server and converted it to the required codec using FFMPEG which i think the best solution to handle this kind of requirement. |
Thank you @dhruvin-rv for sharing your experience. |
Released in record_web 1.1.3 |
@llfbandit thank you for the fix. How can we use this new web version while the main package is not updated yet. Should we use |
Just use |
Package version
5.1.2
Environment
Describe the bug
No matter which encoder is set, in production the output of recorder on Safari would always have
application/octet-stream
as its mime type.Expected behavior
The outputed Blob URL should have the mime type corresponding to the selected encoder, in this case
audio/mp4
.The text was updated successfully, but these errors were encountered: