-9
src/components/MicRecorder.tsx
-9
src/components/MicRecorder.tsx
···
38
38
return;
39
39
}
40
40
41
-
if (!navigator.mediaDevices) {
42
-
toaster.create({
43
-
title: "recording not supported",
44
-
description: "website is not running in a secure context.",
45
-
type: "error",
46
-
});
47
-
return;
48
-
}
49
-
50
41
mediaStream = await navigator.mediaDevices.getUserMedia({
51
42
audio: {
52
43
autoGainControl: { ideal: true },