capacitor-plugin-playlist 0.2.5 → 0.3.2
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/CapacitorPluginPlaylist.podspec +2 -2
- package/android/.gradle/8.0.2/checksums/checksums.lock +0 -0
- package/android/.gradle/8.0.2/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/8.0.2/checksums/sha1-checksums.bin +0 -0
- package/android/.gradle/8.0.2/dependencies-accessors/dependencies-accessors.lock +0 -0
- package/android/.gradle/8.0.2/fileHashes/fileHashes.lock +0 -0
- package/android/.gradle/buildOutputCleanup/buildOutputCleanup.lock +0 -0
- package/android/.gradle/buildOutputCleanup/cache.properties +2 -2
- package/android/.gradle/checksums/checksums.lock +0 -0
- package/android/.gradle/checksums/md5-checksums.bin +0 -0
- package/android/.gradle/checksums/sha1-checksums.bin +0 -0
- package/android/build.gradle +24 -15
- package/android/gradle/wrapper/gradle-wrapper.jar +0 -0
- package/android/gradle/wrapper/gradle-wrapper.properties +2 -1
- package/android/gradle.properties +1 -2
- package/android/gradlew +164 -105
- package/android/gradlew.bat +9 -6
- package/android/src/main/AndroidManifest.xml +1 -1
- package/android/src/main/java/org/dwbn/plugins/playlist/playlist/AudioPlaylistHandler.java +47 -0
- package/dist/docs.json +782 -0
- package/ios/Plugin/AVBidirectionalQueuePlayer.swift +4 -1
- package/ios/Plugin.xcodeproj/project.pbxproj +22 -2
- package/ios/Plugin.xcworkspace/contents.xcworkspacedata +10 -0
- package/ios/Plugin.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +8 -0
- package/ios/Podfile +1 -1
- package/package.json +11 -9
|
@@ -26,6 +26,7 @@
|
|
|
26
26
|
//
|
|
27
27
|
|
|
28
28
|
import AVFoundation
|
|
29
|
+
import MediaPlayer
|
|
29
30
|
|
|
30
31
|
let AVBidirectionalQueueAddedItem = "AVBidirectionalQueuePlayer.AddedItem"
|
|
31
32
|
let AVBidirectionalQueueAddedAllItems = "AVBidirectionalQueuePlayer.AddedAllItems"
|
|
@@ -199,6 +200,8 @@ class AVBidirectionalQueuePlayer: AVQueuePlayer {
|
|
|
199
200
|
super.removeAllItems()
|
|
200
201
|
queuedAudioTracks.removeAll()
|
|
201
202
|
|
|
203
|
+
MPNowPlayingInfoCenter.default().nowPlayingInfo?.removeAll()
|
|
204
|
+
|
|
202
205
|
NotificationCenter.default.post(name: NSNotification.Name(AVBidirectionalQueueCleared), object: self, userInfo: nil)
|
|
203
206
|
}
|
|
204
207
|
|
|
@@ -207,7 +210,7 @@ class AVBidirectionalQueuePlayer: AVQueuePlayer {
|
|
|
207
210
|
removeTrackObservers(item)
|
|
208
211
|
}
|
|
209
212
|
}
|
|
210
|
-
|
|
213
|
+
|
|
211
214
|
func removeTrackObservers(_ playerItem: AudioTrack?) {
|
|
212
215
|
NotificationCenter.default.removeObserver(self, name: .AVPlayerItemDidPlayToEndTime, object: playerItem)
|
|
213
216
|
NotificationCenter.default.removeObserver(self, name: .AVPlayerItemPlaybackStalled, object: playerItem)
|
|
@@ -15,6 +15,11 @@
|
|
|
15
15
|
50ADFFA42020D75100D50D53 /* Capacitor.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 50ADFFA52020D75100D50D53 /* Capacitor.framework */; };
|
|
16
16
|
50ADFFA82020EE4F00D50D53 /* Plugin.m in Sources */ = {isa = PBXBuildFile; fileRef = 50ADFFA72020EE4F00D50D53 /* Plugin.m */; };
|
|
17
17
|
50E1A94820377CB70090CE1A /* Plugin.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50E1A94720377CB70090CE1A /* Plugin.swift */; };
|
|
18
|
+
513CD8672A5D16D300BDE4DE /* DispatchQueue.swift in Sources */ = {isa = PBXBuildFile; fileRef = 513CD8622A5D16D300BDE4DE /* DispatchQueue.swift */; };
|
|
19
|
+
513CD8682A5D16D300BDE4DE /* Constants.swift in Sources */ = {isa = PBXBuildFile; fileRef = 513CD8632A5D16D300BDE4DE /* Constants.swift */; };
|
|
20
|
+
513CD8692A5D16D300BDE4DE /* AVBidirectionalQueuePlayer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 513CD8642A5D16D300BDE4DE /* AVBidirectionalQueuePlayer.swift */; };
|
|
21
|
+
513CD86A2A5D16D300BDE4DE /* RmxAudioPlayer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 513CD8652A5D16D300BDE4DE /* RmxAudioPlayer.swift */; };
|
|
22
|
+
513CD86B2A5D16D300BDE4DE /* AudioTrack.swift in Sources */ = {isa = PBXBuildFile; fileRef = 513CD8662A5D16D300BDE4DE /* AudioTrack.swift */; };
|
|
18
23
|
/* End PBXBuildFile section */
|
|
19
24
|
|
|
20
25
|
/* Begin PBXContainerItemProxy section */
|
|
@@ -38,6 +43,11 @@
|
|
|
38
43
|
50ADFFA52020D75100D50D53 /* Capacitor.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; path = Capacitor.framework; sourceTree = BUILT_PRODUCTS_DIR; };
|
|
39
44
|
50ADFFA72020EE4F00D50D53 /* Plugin.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; path = Plugin.m; sourceTree = "<group>"; };
|
|
40
45
|
50E1A94720377CB70090CE1A /* Plugin.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Plugin.swift; sourceTree = "<group>"; };
|
|
46
|
+
513CD8622A5D16D300BDE4DE /* DispatchQueue.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DispatchQueue.swift; sourceTree = "<group>"; };
|
|
47
|
+
513CD8632A5D16D300BDE4DE /* Constants.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Constants.swift; sourceTree = "<group>"; };
|
|
48
|
+
513CD8642A5D16D300BDE4DE /* AVBidirectionalQueuePlayer.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AVBidirectionalQueuePlayer.swift; sourceTree = "<group>"; };
|
|
49
|
+
513CD8652A5D16D300BDE4DE /* RmxAudioPlayer.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RmxAudioPlayer.swift; sourceTree = "<group>"; };
|
|
50
|
+
513CD8662A5D16D300BDE4DE /* AudioTrack.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = AudioTrack.swift; sourceTree = "<group>"; };
|
|
41
51
|
5E23F77F099397094342571A /* Pods-Plugin.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Plugin.debug.xcconfig"; path = "Pods/Target Support Files/Pods-Plugin/Pods-Plugin.debug.xcconfig"; sourceTree = "<group>"; };
|
|
42
52
|
91781294A431A2A7CC6EB714 /* Pods-Plugin.release.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-Plugin.release.xcconfig"; path = "Pods/Target Support Files/Pods-Plugin/Pods-Plugin.release.xcconfig"; sourceTree = "<group>"; };
|
|
43
53
|
96ED1B6440D6672E406C8D19 /* Pods-PluginTests.debug.xcconfig */ = {isa = PBXFileReference; includeInIndex = 1; lastKnownFileType = text.xcconfig; name = "Pods-PluginTests.debug.xcconfig"; path = "Pods/Target Support Files/Pods-PluginTests/Pods-PluginTests.debug.xcconfig"; sourceTree = "<group>"; };
|
|
@@ -91,6 +101,11 @@
|
|
|
91
101
|
isa = PBXGroup;
|
|
92
102
|
children = (
|
|
93
103
|
50E1A94720377CB70090CE1A /* Plugin.swift */,
|
|
104
|
+
513CD8662A5D16D300BDE4DE /* AudioTrack.swift */,
|
|
105
|
+
513CD8642A5D16D300BDE4DE /* AVBidirectionalQueuePlayer.swift */,
|
|
106
|
+
513CD8632A5D16D300BDE4DE /* Constants.swift */,
|
|
107
|
+
513CD8622A5D16D300BDE4DE /* DispatchQueue.swift */,
|
|
108
|
+
513CD8652A5D16D300BDE4DE /* RmxAudioPlayer.swift */,
|
|
94
109
|
50ADFF8B201F53D600D50D53 /* Plugin.h */,
|
|
95
110
|
50ADFFA72020EE4F00D50D53 /* Plugin.m */,
|
|
96
111
|
50ADFF8C201F53D600D50D53 /* Info.plist */,
|
|
@@ -302,8 +317,13 @@
|
|
|
302
317
|
isa = PBXSourcesBuildPhase;
|
|
303
318
|
buildActionMask = 2147483647;
|
|
304
319
|
files = (
|
|
320
|
+
513CD8692A5D16D300BDE4DE /* AVBidirectionalQueuePlayer.swift in Sources */,
|
|
305
321
|
50E1A94820377CB70090CE1A /* Plugin.swift in Sources */,
|
|
306
322
|
50ADFFA82020EE4F00D50D53 /* Plugin.m in Sources */,
|
|
323
|
+
513CD86A2A5D16D300BDE4DE /* RmxAudioPlayer.swift in Sources */,
|
|
324
|
+
513CD8672A5D16D300BDE4DE /* DispatchQueue.swift in Sources */,
|
|
325
|
+
513CD86B2A5D16D300BDE4DE /* AudioTrack.swift in Sources */,
|
|
326
|
+
513CD8682A5D16D300BDE4DE /* Constants.swift in Sources */,
|
|
307
327
|
);
|
|
308
328
|
runOnlyForDeploymentPostprocessing = 0;
|
|
309
329
|
};
|
|
@@ -452,7 +472,7 @@
|
|
|
452
472
|
DYLIB_INSTALL_NAME_BASE = "@rpath";
|
|
453
473
|
INFOPLIST_FILE = Plugin/Info.plist;
|
|
454
474
|
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
|
|
455
|
-
IPHONEOS_DEPLOYMENT_TARGET =
|
|
475
|
+
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
|
|
456
476
|
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks $(FRAMEWORK_SEARCH_PATHS)\n$(FRAMEWORK_SEARCH_PATHS)\n$(FRAMEWORK_SEARCH_PATHS)";
|
|
457
477
|
ONLY_ACTIVE_ARCH = YES;
|
|
458
478
|
PRODUCT_BUNDLE_IDENTIFIER = com.getcapacitor.Plugin;
|
|
@@ -477,7 +497,7 @@
|
|
|
477
497
|
DYLIB_INSTALL_NAME_BASE = "@rpath";
|
|
478
498
|
INFOPLIST_FILE = Plugin/Info.plist;
|
|
479
499
|
INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
|
|
480
|
-
IPHONEOS_DEPLOYMENT_TARGET =
|
|
500
|
+
IPHONEOS_DEPLOYMENT_TARGET = 13.0;
|
|
481
501
|
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks $(FRAMEWORK_SEARCH_PATHS)";
|
|
482
502
|
ONLY_ACTIVE_ARCH = NO;
|
|
483
503
|
PRODUCT_BUNDLE_IDENTIFIER = com.getcapacitor.Plugin;
|
package/ios/Podfile
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "capacitor-plugin-playlist",
|
|
3
|
-
"version": "0.2
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "Playlist ",
|
|
5
5
|
"main": "dist/plugin.cjs.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -22,7 +22,8 @@
|
|
|
22
22
|
"eslint": "eslint . --ext ts",
|
|
23
23
|
"prettier": "prettier \"**/*.{css,html,ts,js,java}\"",
|
|
24
24
|
"swiftlint": "node-swiftlint",
|
|
25
|
-
"
|
|
25
|
+
"docgen": "docgen --api PlaylistPlugin --output-readme README.md --output-json dist/docs.json",
|
|
26
|
+
"build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.js",
|
|
26
27
|
"clean": "rimraf ./dist",
|
|
27
28
|
"watch": "tsc --watch",
|
|
28
29
|
"prepublishOnly": "npm run build",
|
|
@@ -31,23 +32,24 @@
|
|
|
31
32
|
"author": "phiamo",
|
|
32
33
|
"license": "MIT",
|
|
33
34
|
"devDependencies": {
|
|
34
|
-
"@capacitor/android": "^
|
|
35
|
-
"@capacitor/core": "^
|
|
35
|
+
"@capacitor/android": "^5.0.0",
|
|
36
|
+
"@capacitor/core": "^5.0.0",
|
|
36
37
|
"@capacitor/docgen": "^0.0.10",
|
|
37
|
-
"@capacitor/ios": "^
|
|
38
|
+
"@capacitor/ios": "^5.0.0",
|
|
38
39
|
"@ionic/prettier-config": "^1.0.1",
|
|
39
40
|
"@ionic/swiftlint-config": "^1.1.2",
|
|
41
|
+
"@ionic/eslint-config": "^0.3.0",
|
|
40
42
|
"@types/hls.js": "^0.13.2",
|
|
41
|
-
"eslint": "^7.
|
|
43
|
+
"eslint": "^7.26.0",
|
|
42
44
|
"prettier": "~2.2.0",
|
|
43
45
|
"prettier-plugin-java": "~1.0.0",
|
|
44
46
|
"rimraf": "^3.0.2",
|
|
45
47
|
"rollup": "^2.21.0",
|
|
46
48
|
"swiftlint": "^1.0.1",
|
|
47
|
-
"typescript": "~
|
|
49
|
+
"typescript": "~5.0.2"
|
|
48
50
|
},
|
|
49
51
|
"peerDependencies": {
|
|
50
|
-
"@capacitor/core": "^
|
|
52
|
+
"@capacitor/core": "^5.0.0"
|
|
51
53
|
},
|
|
52
54
|
"prettier": "@ionic/prettier-config",
|
|
53
55
|
"swiftlint": "@ionic/swiftlint-config",
|
|
@@ -77,4 +79,4 @@
|
|
|
77
79
|
"publishConfig": {
|
|
78
80
|
"@phiamo:registry": "https://npm.pkg.github.com"
|
|
79
81
|
}
|
|
80
|
-
}
|
|
82
|
+
}
|