DeltaCircuit / react-media-recorder

react-media-recorder is a react component with render prop that can be used to record audio/video streams using MediaRecorder API.
https://npmjs.com/react-media-recorder
MIT License
463 stars 122 forks source link

Chrome saves file like video/x-matroska #73

Open PaoConcepcion opened 2 years ago

PaoConcepcion commented 2 years ago

Hi! I'm recording videos on chrome and firefox but the mimeType is always diferent in each browser, on chrome is saved like video/x-matroska while in firefox is a video/webm. If I download the video, it is saved like .webm but is a .mkv My code

`const confVideo = { width: 1080, height: 720, frameRate: 20, };

const mediaRecorderOptions = { mimeType: "video/webm", };

const blobPropertyBag = { type: "video/webm", };

const { status, startRecording, stopRecording, mediaBlobUrl } = useReactMediaRecorder({ screen: true, video: confVideo, mediaRecorderOptions: mediaRecorderOptions, blobPropertyBag: blobPropertyBag });`

I read some documentation https://chromium.googlesource.com/chromium/src/+/HEAD/third_party/blink/renderer/modules/mediarecorder/README.md image

mayurc137 commented 2 years ago

Same issue with audio too! It is saving the mimeType as audio/x-matroska, even after defining the blobPropertyBag as "audio/mpeg"

adenta commented 3 months ago

@mayurc137 @PaoConcepcion did either of you figure out what the issue was here? It seems this library isn't really supported anymore

adenta commented 3 months ago

@DeltaCircuit is this library still supported? If not, any suggestions on what to use?