@@ -13,21 +13,21 @@ class TNSRecorderDelegate extends NSObject implements AVAudioRecorderDelegate {
13
13
}
14
14
15
15
audioRecorderDidFinishRecording ( recorder : any , success : boolean ) {
16
- const owner = this . _owner . get ( ) ;
17
- if ( owner ) {
18
- // owner.notify({
19
- // eventName: 'RecorderFinished',
20
- // })
21
- }
16
+ // const owner = this._owner? .get();
17
+ // if (owner) {
18
+ // owner.notify({
19
+ // eventName: 'RecorderFinished',
20
+ // })
21
+ // }
22
22
}
23
23
24
24
audioRecorderDidFinishRecordingSuccessfully ( recorder : AVAudioRecorder , flag ) {
25
- const owner = this . _owner . get ( ) ;
26
- if ( owner ) {
27
- // owner.notify({
28
- // eventName: 'RecorderFinishedSuccessfully',
29
- // })
30
- }
25
+ // const owner = this._owner? .get();
26
+ // if (owner) {
27
+ // owner.notify({
28
+ // eventName: 'RecorderFinishedSuccessfully',
29
+ // })
30
+ // }
31
31
}
32
32
}
33
33
@@ -75,7 +75,7 @@ export class TNSRecorder extends Observable {
75
75
const errorRef = new interop . Reference < NSError > ( ) ;
76
76
77
77
this . _recordingSession . setCategoryModeRouteSharingPolicyOptionsError (
78
- options . sessionCategory !== undefined ? options . sessionCategory : AVAudioSessionCategoryPlayAndRecord ,
78
+ options . sessionCategory !== undefined ? options . sessionCategory : AVAudioSessionCategoryRecord ,
79
79
options . sessionMode !== undefined ? options . sessionMode : AVAudioSessionModeDefault ,
80
80
options . sessionRouteSharingPolicy !== undefined ? options . sessionRouteSharingPolicy : AVAudioSessionRouteSharingPolicy . Default ,
81
81
options . audioMixing ? AVAudioSessionCategoryOptions . MixWithOthers : AVAudioSessionCategoryOptions . DuckOthers ,
0 commit comments