@capgo/native-audio 7.7.7 → 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
|
[](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 |
|
|
@@ -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 pluginVersion: String = "7.7.
|
|
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] = [
|