File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
projects/stream-chat-angular/src/lib/voice-recorder Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
import { Injectable , NgModule } from '@angular/core' ;
2
2
import { AmplitudeRecorderService } from './amplitude-recorder.service' ;
3
- import { isSafari } from '../is-safari' ;
4
3
import { MediaRecorderConfig , MultimediaRecorder } from './media-recorder' ;
5
4
import { NotificationService } from '../notification.service' ;
6
5
import { ChatClientService } from '../chat-client.service' ;
@@ -21,7 +20,9 @@ export class AudioRecorderService extends MultimediaRecorder<
21
20
* - For all other browsers we use audio/webm (which is then transcoded to wav)
22
21
*/
23
22
config : MediaRecorderConfig = {
24
- mimeType : isSafari ( ) ? 'audio/mp4;codecs=mp4a.40.2' : 'audio/webm' ,
23
+ mimeType : MediaRecorder . isTypeSupported ( 'audio/webm' )
24
+ ? 'audio/webm'
25
+ : 'audio/mp4;codecs=mp4a.40.2' , // fallback for Safari
25
26
} ;
26
27
27
28
constructor (
You can’t perform that action at this time.
0 commit comments