react-media-recorder icon indicating copy to clipboard operation
react-media-recorder copied to clipboard

Chrome saves file like video/x-matroska

Open PaoConcepcion opened this issue 4 years ago • 3 comments

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

PaoConcepcion avatar Nov 18 '21 21:11 PaoConcepcion

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

mayurc137 avatar Apr 22 '22 23:04 mayurc137

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

adenta avatar Mar 27 '24 18:03 adenta

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

adenta avatar Mar 27 '24 18:03 adenta