Comments (2)
Use mimeType: "video/mp4;codecs=avc1" for safari, add some logic that detects the browser and switches between video/webm;codec=h246 (for chrome/firefox) and "video/mp4;codecs=avc1" for safari.
from react-media-recorder.
Note that chrome on IOS mobile devices are actually "safari" since they're based on Safari (not chromium). Makes this somewhat confusing when doing mobile testing but knowing that fact helped me a lot!
Ive found that the mime type used to record video needs to be different to the type to play back video also to ensure maximum compatibility if using mobile (desktop browsers are a bit more forgiving) this was quite helpful https://stackoverflow.com/questions/76124559/javascript-mediarecorder-video-format-compatibility-between-different-browsers
Ultimately it's a pain in the ass, but using Cloudinary to instantly rewrite the URLS (which automatically transcodes them on the fly) has been fruitful.
from react-media-recorder.
Related Issues (20)
- ReferenceError: Worker is not defined HOT 12
- How to find useful url of the recorded video to store the video in database HOT 1
- can't pass pre-commit checks
- Blob is not defined HOT 5
- MP4 file missing all meta info HOT 5
- Unable to playback the recorded video on iOS HOT 1
- How to mute on initial start of recording.
- How to use with webpack.config throw error
- Add support on audio/ogg by using "opus-media-recorder"?
- ERR_REQUEST_RANGE_NOT_SATISFIABLE while using Constraints object
- Mobile Browser Not Supported HOT 4
- Error: unmuteAudio is not a function HOT 1
- onError method
- why the pauseRecording function don't stop also the preview ? HOT 1
- Start play button doesn't show video on screen while recoding
- Recorder asking permission to use camera and micro many times, on IOS
- Videoframe distoring and blinking @1.6.0
- not working on ipad
- Switch camera and mic HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-media-recorder.