Spaces:
Building
Building
Update flare-ui/src/app/services/audio-stream.service.ts
Browse files
flare-ui/src/app/services/audio-stream.service.ts
CHANGED
@@ -52,7 +52,11 @@ export class AudioStreamService implements OnDestroy {
|
|
52 |
}
|
53 |
|
54 |
static checkBrowserSupport(): boolean {
|
55 |
-
return !!(
|
|
|
|
|
|
|
|
|
56 |
}
|
57 |
|
58 |
async startRecording(): Promise<void> {
|
|
|
52 |
}
|
53 |
|
54 |
static checkBrowserSupport(): boolean {
|
55 |
+
return !!(
|
56 |
+
navigator.mediaDevices &&
|
57 |
+
typeof navigator.mediaDevices.getUserMedia === 'function' &&
|
58 |
+
window.MediaRecorder
|
59 |
+
);
|
60 |
}
|
61 |
|
62 |
async startRecording(): Promise<void> {
|