capacitor-voice-recorder-wav-stereo 7.0.1 → 7.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -27,11 +27,7 @@ class CustomMediaRecorder {
27
27
  do {
28
28
  recordingSession = AVAudioSession.sharedInstance()
29
29
  originalRecordingSessionCategory = recordingSession.category
30
- try recordingSession.setCategory(.playAndRecord, options: [
31
- .allowBluetoothA2DP,
32
- .allowBluetooth, // HFPも許可しつつ優先順位制御
33
- .allowAirPlay
34
- ])
30
+ try recordingSession.setCategory(AVAudioSession.Category.playAndRecord, options: [.allowBluetoothA2DP, .defaultToSpeaker])
35
31
  try recordingSession.setActive(true)
36
32
  audioFilePath = getDirectoryToSaveAudioFile().appendingPathComponent("\(UUID().uuidString).wav")
37
33
  audioRecorder = try AVAudioRecorder(url: audioFilePath, settings: settings)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "capacitor-voice-recorder-wav-stereo",
3
- "version": "7.0.1",
3
+ "version": "7.0.2",
4
4
  "description": "Capacitor plugin for voice recording in wav format",
5
5
  "main": "dist/plugin.cjs.js",
6
6
  "module": "dist/esm/index.js",