capacitor-plugin-playlist 0.1.12 → 0.1.16
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/ios/Plugin/Plugin.m
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
|
|
4
4
|
// Define the plugin using the CAP_PLUGIN Macro, and
|
|
5
5
|
// each method the plugin supports using the CAP_PLUGIN_METHOD macro.
|
|
6
|
-
CAP_PLUGIN(PlaylistPlugin, "
|
|
6
|
+
CAP_PLUGIN(PlaylistPlugin, "Playlist",
|
|
7
7
|
CAP_PLUGIN_METHOD(setOptions, CAPPluginReturnPromise);
|
|
8
8
|
CAP_PLUGIN_METHOD(initialize, CAPPluginReturnPromise);
|
|
9
9
|
CAP_PLUGIN_METHOD(release, CAPPluginReturnPromise);
|
package/ios/Plugin/Plugin.swift
CHANGED
|
@@ -78,7 +78,7 @@ public class PlaylistPlugin: CAPPlugin, StatusUpdater {
|
|
|
78
78
|
}
|
|
79
79
|
@objc func seekTo(_ call: CAPPluginCall) {
|
|
80
80
|
let to = call.getFloat("position", 0.0)
|
|
81
|
-
audioPlayerImpl.seek(to: to
|
|
81
|
+
audioPlayerImpl.seek(to: to, isCommand: false)
|
|
82
82
|
call.resolve();
|
|
83
83
|
}
|
|
84
84
|
@objc func playTrackByIndex(_ call: CAPPluginCall) {
|
|
@@ -99,17 +99,17 @@ public class PlaylistPlugin: CAPPlugin, StatusUpdater {
|
|
|
99
99
|
}
|
|
100
100
|
@objc func setPlaybackVolume(_ call: CAPPluginCall) {
|
|
101
101
|
let volume = call.getFloat("volume", 1)
|
|
102
|
-
audioPlayerImpl.setPlaybackVolume(volume
|
|
102
|
+
audioPlayerImpl.setPlaybackVolume(volume)
|
|
103
103
|
call.resolve();
|
|
104
104
|
}
|
|
105
105
|
@objc func setLoop(_ call: CAPPluginCall) {
|
|
106
106
|
let loop = call.getBool("loop", true)
|
|
107
|
-
audioPlayerImpl.setLoopAll(loop
|
|
107
|
+
audioPlayerImpl.setLoopAll(loop)
|
|
108
108
|
call.resolve();
|
|
109
109
|
}
|
|
110
110
|
@objc func setPlaybackRate(_ call: CAPPluginCall) {
|
|
111
111
|
let rate = call.getFloat("rate", 1)
|
|
112
|
-
audioPlayerImpl.setPlaybackRate(rate
|
|
112
|
+
audioPlayerImpl.setPlaybackRate(rate)
|
|
113
113
|
call.resolve();
|
|
114
114
|
}
|
|
115
115
|
|
|
@@ -375,7 +375,7 @@
|
|
|
375
375
|
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
|
376
376
|
GCC_WARN_UNUSED_FUNCTION = YES;
|
|
377
377
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
|
378
|
-
IPHONEOS_DEPLOYMENT_TARGET =
|
|
378
|
+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
|
|
379
379
|
MTL_ENABLE_DEBUG_INFO = YES;
|
|
380
380
|
ONLY_ACTIVE_ARCH = YES;
|
|
381
381
|
SDKROOT = iphoneos;
|
|
@@ -429,7 +429,7 @@
|
|
|
429
429
|
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
|
|
430
430
|
GCC_WARN_UNUSED_FUNCTION = YES;
|
|
431
431
|
GCC_WARN_UNUSED_VARIABLE = YES;
|
|
432
|
-
IPHONEOS_DEPLOYMENT_TARGET =
|
|
432
|
+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
|
|
433
433
|
MTL_ENABLE_DEBUG_INFO = NO;
|
|
434
434
|
SDKROOT = iphoneos;
|
|
435
435
|
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
|
|
@@ -477,7 +477,7 @@
|
|
|
477
477
|
DYLIB_INSTALL_NAME_BASE = "@rpath";
|
|
478
478
|
INFOPLIST_FILE = Plugin/Info.plist;
|
|
479
479
|
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
|
|
480
|
-
IPHONEOS_DEPLOYMENT_TARGET =
|
|
480
|
+
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
|
|
481
481
|
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks $(FRAMEWORK_SEARCH_PATHS)";
|
|
482
482
|
ONLY_ACTIVE_ARCH = NO;
|
|
483
483
|
PRODUCT_BUNDLE_IDENTIFIER = com.getcapacitor.Plugin;
|