@capgo/capacitor-audio-session 7.1.9 → 7.1.11
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.
package/README.md
CHANGED
|
@@ -11,6 +11,18 @@
|
|
|
11
11
|
|
|
12
12
|
This plugin is a port of <https://github.com/saghul/cordova-plugin-audioroute> and allows iOS applications to get notified about audio session interruptions and route changes (for example when a headset is connected). To query and override the audio device in use is also supported.
|
|
13
13
|
|
|
14
|
+
## Why Capacitor AudioSession?
|
|
15
|
+
|
|
16
|
+
The only **free** and **maintained** iOS audio session plugin for Capacitor:
|
|
17
|
+
|
|
18
|
+
- **Audio route control** - Detect and manage headphones, Bluetooth, speakers
|
|
19
|
+
- **Interruption handling** - Respond to phone calls, alarms, and other interruptions
|
|
20
|
+
- **Output override** - Force audio to speaker or restore default routing
|
|
21
|
+
- **Same JavaScript API** - Compatible interface with paid alternatives
|
|
22
|
+
- **iOS-specific** - Leverages AVAudioSession for deep iOS integration
|
|
23
|
+
|
|
24
|
+
Essential for VoIP apps, music players, podcast apps, and any app requiring precise audio routing control.
|
|
25
|
+
|
|
14
26
|
## Documentation
|
|
15
27
|
|
|
16
28
|
The most complete doc is available here: https://capgo.app/docs/plugins/audiosession/
|
|
@@ -16,7 +16,7 @@ import org.json.JSONObject;
|
|
|
16
16
|
|
|
17
17
|
@CapacitorPlugin(name = "AudioSession")
|
|
18
18
|
public class AudioSessionPlugin extends Plugin {
|
|
19
|
-
private final String pluginVersion = "7.1.
|
|
19
|
+
private final String pluginVersion = "7.1.11";
|
|
20
20
|
|
|
21
21
|
public static String LOG_TAG = "CapgoAudioSession";
|
|
22
22
|
|
|
@@ -3,7 +3,7 @@ import Capacitor
|
|
|
3
3
|
|
|
4
4
|
@objc(AudioSessionPlugin)
|
|
5
5
|
public class AudioSessionPlugin: CAPPlugin, CAPBridgedPlugin {
|
|
6
|
-
private let pluginVersion: String = "7.1.
|
|
6
|
+
private let pluginVersion: String = "7.1.11"
|
|
7
7
|
public let identifier = "AudioSessionPlugin"
|
|
8
8
|
public let jsName = "AudioSession"
|
|
9
9
|
public let pluginMethods: [CAPPluginMethod] = [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@capgo/capacitor-audio-session",
|
|
3
|
-
"version": "7.1.
|
|
3
|
+
"version": "7.1.11",
|
|
4
4
|
"description": "This capacitor plugin allows iOS applications to get notified audio about interrupts & route changes (for example when a headset is connected), and also query and override the audio device in use.",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|