@capgo/native-audio 7.7.6 → 7.7.8

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
@@ -38,6 +38,22 @@ Click on video to see example 💥
38
38
 
39
39
  [![YouTube Example](https://img.youtube.com/vi/XpUGlWWtwHs/0.jpg)](https://www.youtube.com/watch?v=XpUGlWWtwHs)
40
40
 
41
+ ## Why Native Audio?
42
+
43
+ The only **free**, **full-featured** audio playback plugin for Capacitor:
44
+
45
+ - **HLS/M3U8 streaming** - Play live audio streams and adaptive bitrate content
46
+ - **Remote URLs** - Stream from HTTP/HTTPS sources with built-in caching
47
+ - **Low-latency playback** - Optimized native audio engine for sound effects and music
48
+ - **Full control** - Play, pause, resume, loop, seek, volume, playback rate
49
+ - **Multiple channels** - Play multiple audio files simultaneously
50
+ - **Background playback** - Continue playing when app is backgrounded
51
+ - **Position tracking** - Real-time currentTime events (100ms intervals)
52
+ - **Modern package management** - Supports both Swift Package Manager (SPM) and CocoaPods (SPM-ready for Capacitor 8)
53
+ - **Same JavaScript API** - Compatible interface with paid alternatives
54
+
55
+ Perfect for music players, podcast apps, games, meditation apps, and any audio-heavy application.
56
+
41
57
  ## Maintainers
42
58
 
43
59
  | Maintainer | GitHub | Social |
@@ -51,7 +51,7 @@ import java.util.Map;
51
51
  )
52
52
  public class NativeAudio extends Plugin implements AudioManager.OnAudioFocusChangeListener {
53
53
 
54
- private final String PLUGIN_VERSION = "";
54
+ private final String pluginVersion = "";
55
55
 
56
56
  public static final String TAG = "NativeAudio";
57
57
 
@@ -727,7 +727,7 @@ public class NativeAudio extends Plugin implements AudioManager.OnAudioFocusChan
727
727
  public void getPluginVersion(final PluginCall call) {
728
728
  try {
729
729
  final JSObject ret = new JSObject();
730
- ret.put("version", this.PLUGIN_VERSION);
730
+ ret.put("version", this.pluginVersion);
731
731
  call.resolve(ret);
732
732
  } catch (final Exception e) {
733
733
  call.reject("Could not get plugin version", e);
@@ -11,7 +11,7 @@ enum MyError: Error {
11
11
  /// here: https://capacitor.ionicframework.com/docs/plugins/ios
12
12
  @objc(NativeAudio)
13
13
  public class NativeAudio: CAPPlugin, AVAudioPlayerDelegate, CAPBridgedPlugin {
14
- private let PLUGIN_VERSION: String = "7.7.6"
14
+ private let pluginVersion: String = "7.7.8"
15
15
  public let identifier = "NativeAudio"
16
16
  public let jsName = "NativeAudio"
17
17
  public let pluginMethods: [CAPPluginMethod] = [
@@ -635,7 +635,7 @@ public class NativeAudio: CAPPlugin, AVAudioPlayerDelegate, CAPBridgedPlugin {
635
635
  }
636
636
 
637
637
  @objc func getPluginVersion(_ call: CAPPluginCall) {
638
- call.resolve(["version": self.PLUGIN_VERSION])
638
+ call.resolve(["version": self.pluginVersion])
639
639
  }
640
640
 
641
641
  @objc func deinitPlugin(_ call: CAPPluginCall) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@capgo/native-audio",
3
- "version": "7.7.6",
3
+ "version": "7.7.8",
4
4
  "description": "A native plugin for native audio engine",
5
5
  "license": "MIT",
6
6
  "main": "dist/plugin.cjs.js",