@capgo/native-audio 6.1.35 → 6.1.36
Sign up to get free protection for your applications and to get access to all the features.
- package/ios/Plugin/Plugin.swift +2 -5
- package/package.json +1 -1
package/ios/Plugin/Plugin.swift
CHANGED
@@ -35,12 +35,9 @@ public class NativeAudio: CAPPlugin {
|
|
35
35
|
}
|
36
36
|
|
37
37
|
let focus = call.getBool(Constant.FocusAudio) ?? false
|
38
|
-
|
39
38
|
do {
|
40
|
-
|
41
39
|
if focus {
|
42
|
-
|
43
|
-
try self.session.setCategory(AVAudioSession.Category.playback)
|
40
|
+
try self.session.setCategory(AVAudioSession.Category.playback, options: .duckOthers)
|
44
41
|
|
45
42
|
}
|
46
43
|
|
@@ -78,7 +75,7 @@ public class NativeAudio: CAPPlugin {
|
|
78
75
|
|
79
76
|
if focus {
|
80
77
|
|
81
|
-
try self.session.setCategory(AVAudioSession.Category.ambient)
|
78
|
+
try self.session.setCategory(AVAudioSession.Category.ambient, options: .duckOthers)
|
82
79
|
|
83
80
|
} else {
|
84
81
|
|