use mimeType video/webm with vp9 video and opus audio

This commit is contained in:
MarconLP 2023-07-15 08:17:56 +02:00
parent 2e5f83411d
commit 4f2f629283
No known key found for this signature in database
GPG key ID: A08A9C8B623F5EA5

View file

@ -91,7 +91,9 @@ export default function Recorder({ closeModal, step, setStep }: Props) {
setStream(mediaStream);
recorderRef.current = new RecordRTC(mediaStream, {
type: "video",
mimeType: "video/webm;codecs=vp8",
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-ignore
mimeType: 'video/webm;codecs="vp9,opus"',
});
recorderRef.current.startRecording();