File tree 2 files changed +8
-1
lines changed
2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -155,6 +155,12 @@ export interface AudioRecorderOptions {
155
155
*/
156
156
sessionRouteSharingPolicy ?: AVAudioSessionRouteSharingPolicy ;
157
157
158
+ /**
159
+ * iOS: The set of options associated with the current audio session category.
160
+ * https://developer.apple.com/documentation/avfaudio/avaudiosession/categoryoptions-swift.property?language=objc
161
+ */
162
+ sessionCategoryOptions ?: number ;
163
+
158
164
/**
159
165
* Callback to execute when playback has an error.
160
166
* @returns {Object } An object containing the native values for the error callback.
Original file line number Diff line number Diff line change @@ -79,7 +79,8 @@ export class TNSRecorder extends Observable {
79
79
options . sessionCategory !== undefined ? options . sessionCategory : AVAudioSessionCategoryRecord ,
80
80
options . sessionMode !== undefined ? options . sessionMode : AVAudioSessionModeDefault ,
81
81
options . sessionRouteSharingPolicy !== undefined ? options . sessionRouteSharingPolicy : AVAudioSessionRouteSharingPolicy . Default ,
82
- options . audioMixing ? AVAudioSessionCategoryOptions . MixWithOthers : AVAudioSessionCategoryOptions . DuckOthers ,
82
+ options . sessionCategoryOptions ?? ( options . audioMixing ? AVAudioSessionCategoryOptions . MixWithOthers : AVAudioSessionCategoryOptions . DuckOthers ) ,
83
+
83
84
//@ts -ignore
84
85
errorRef
85
86
) ;
You can’t perform that action at this time.
0 commit comments