@mcfarljw/capacitor-audio 1.0.3 → 1.0.4
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.
|
@@ -15,7 +15,7 @@ public class CapacitorAudioPlugin: CAPPlugin {
|
|
|
15
15
|
|
|
16
16
|
@objc func play(_ call: CAPPluginCall) {
|
|
17
17
|
let path = call.getString("path") ?? ""
|
|
18
|
-
let track = call.getInt("
|
|
18
|
+
let track = call.getInt("track", 0)
|
|
19
19
|
|
|
20
20
|
implementation.play(path, track)
|
|
21
21
|
|
|
@@ -23,7 +23,7 @@ public class CapacitorAudioPlugin: CAPPlugin {
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
@objc func stop(_ call: CAPPluginCall) {
|
|
26
|
-
let track = call.getInt("
|
|
26
|
+
let track = call.getInt("track", 0)
|
|
27
27
|
|
|
28
28
|
implementation.stop(track)
|
|
29
29
|
|