@dwbn/capacitor-plugin-playlist 8.4.3 → 8.4.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.
- package/README.md +3 -3
- package/android/build.gradle +1 -1
- package/android/src/main/java/org/dwbn/plugins/playlist/AudioDrm.java +1 -1
- package/android/src/main/java/org/dwbn/plugins/playlist/AudioDrmSession.java +1 -1
- package/android/src/main/java/org/dwbn/plugins/playlist/AudioMediaItemFactory.java +1 -1
- package/android/src/main/java/org/dwbn/plugins/playlist/AudioOfflineProvider.java +1 -1
- package/android/src/main/java/org/dwbn/plugins/playlist/PlaylistPlugin.kt +7 -3
- package/android/src/main/java/org/dwbn/plugins/playlist/RmxAudioPlayer.java +15 -2
- package/android/src/main/java/org/dwbn/plugins/playlist/data/AudioTrack.kt +1 -1
- package/android/src/main/java/org/dwbn/plugins/playlist/manager/PlaylistManager.kt +1 -1
- package/android/src/main/java/org/dwbn/plugins/playlist/offline/OfflineDownloads.kt +2 -2
- package/android/src/main/java/org/dwbn/plugins/playlist/offline/OfflineStorage.kt +1 -1
- package/android/src/main/java/org/dwbn/plugins/playlist/playlist/AudioPlaylistHandler.java +2 -4
- package/android/src/main/java/org/dwbn/plugins/playlist/service/HandoffForwardingPlayer.kt +1 -1
- package/dist/docs.json +3 -3
- package/dist/esm/interfaces.d.ts +3 -3
- package/dist/esm/web.d.ts +1 -1
- package/dist/esm/web.js +2 -2
- package/dist/esm/web.js.map +1 -1
- package/dist/plugin.cjs.js +2 -2
- package/dist/plugin.cjs.js.map +1 -1
- package/dist/plugin.js +2 -2
- package/dist/plugin.js.map +1 -1
- package/ios/Sources/PlaylistPlugin/AudioDrm.swift +5 -5
- package/ios/Sources/PlaylistPlugin/AudioOffline.swift +2 -2
- package/ios/Sources/PlaylistPlugin/AudioOfflineProvider.swift +1 -1
- package/ios/Sources/PlaylistPlugin/AudioTrack.swift +3 -3
- package/ios/Sources/PlaylistPlugin/Plugin.swift +3 -3
- package/ios/Sources/PlaylistPlugin/RmxAudioPlayer.swift +2 -2
- package/ios/Sources/PlaylistPlugin/offline/AvAssetOfflineEngine.swift +1 -1
- package/ios/Sources/PlaylistPlugin/offline/OfflineDownloads.swift +3 -3
- package/ios/Sources/PlaylistPlugin/offline/OfflineMetaStore.swift +1 -1
- package/ios/Tests/PlaylistPluginTests/AudioDrmTests.swift +4 -5
- package/ios/Tests/PlaylistPluginTests/AudioOfflineTests.swift +1 -1
- package/ios/Tests/PlaylistPluginTests/OfflineDownloadsTests.swift +1 -1
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// OfflineDownloads.swift
|
|
3
3
|
// PlaylistPlugin
|
|
4
4
|
//
|
|
5
|
-
//
|
|
5
|
+
// Download orchestration. Order on start: read FairPlay `skd://` from the remote
|
|
6
6
|
// HLS → `provider.acquire` (background) → only then start the download task, so a refused
|
|
7
7
|
// licence (incl. `offlineDeviceLimit`) fetches no media. Licences and renewal belong
|
|
8
8
|
// to the host `AudioOfflineProvider`; this class never touches drm-kit.
|
|
@@ -45,7 +45,7 @@ struct DownloadInfo {
|
|
|
45
45
|
let needsRenewal: Bool
|
|
46
46
|
}
|
|
47
47
|
|
|
48
|
-
/// Download orchestration
|
|
48
|
+
/// Download orchestration.
|
|
49
49
|
final class OfflineDownloads: OfflineEngineListener {
|
|
50
50
|
typealias EventSink = (DownloadEvent) -> Void
|
|
51
51
|
typealias Work = () -> Void
|
|
@@ -95,7 +95,7 @@ final class OfflineDownloads: OfflineEngineListener {
|
|
|
95
95
|
emit(downloadId, DownloadStates.completed, 1, nil)
|
|
96
96
|
return nil
|
|
97
97
|
}
|
|
98
|
-
// Leftover media with an unusable licence
|
|
98
|
+
// Leftover media with an unusable licence: drop and re-acquire.
|
|
99
99
|
removeAll(downloadId)
|
|
100
100
|
}
|
|
101
101
|
let token = NSObject()
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// PlaylistPlugin
|
|
4
4
|
//
|
|
5
5
|
// Plugin-owned download metadata: only the licence clock. Delivery URLs are never stored here.
|
|
6
|
-
//
|
|
6
|
+
// Lives under Application Support and is excluded from backup.
|
|
7
7
|
//
|
|
8
8
|
|
|
9
9
|
import Foundation
|
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
// AudioDrmTests.swift
|
|
3
3
|
// PlaylistPluginTests
|
|
4
4
|
//
|
|
5
|
-
//
|
|
6
|
-
//
|
|
7
|
-
//
|
|
8
|
-
// `
|
|
9
|
-
// `PlaylistPlugin.drmNoProviderRejection(for:)`, the guard actually wired into
|
|
5
|
+
// Replaces the old `PlaylistDrm.notSupportedRefusal` coverage with `AudioDrm`
|
|
6
|
+
// registry and typed-error coverage (mirrors `VideoDrmTests`) plus an `AudioTrack`
|
|
7
|
+
// DRM-wiring test (mirrors `FullScreenVideoPlayerViewDrmWiringTests`) and direct
|
|
8
|
+
// coverage of `PlaylistPlugin.drmNoProviderRejection(for:)`, the guard wired into
|
|
10
9
|
// `setPlaylistItems`/`addItem`/`replaceItem`/`addAllItems`.
|
|
11
10
|
//
|
|
12
11
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// AudioOfflineTests.swift
|
|
3
3
|
// PlaylistPluginTests
|
|
4
4
|
//
|
|
5
|
-
//
|
|
5
|
+
// registry, typedError (incl. offlineDeviceLimit), attachOffline, queue downloadId.
|
|
6
6
|
//
|
|
7
7
|
|
|
8
8
|
import AVFoundation
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// OfflineDownloadsTests.swift
|
|
3
3
|
// PlaylistPluginTests
|
|
4
4
|
//
|
|
5
|
-
//
|
|
5
|
+
// licence-first download orchestration, expiry maths, pending guard, HLS skd://
|
|
6
6
|
// parse, backup exclusion. No FairPlay in XCTest — the engine is a fake.
|
|
7
7
|
//
|
|
8
8
|
|