mirror of
https://github.com/yattee/yattee.git
synced 2025-08-09 20:24:06 +00:00
Model improvements
This commit is contained in:
@@ -31,6 +31,10 @@ class Stream: Equatable {
|
||||
assets.allSatisfy { $0.statusOfValue(forKey: "playable", error: nil) == .loaded }
|
||||
}
|
||||
|
||||
var loadedAssets: [AVURLAsset] {
|
||||
assets.filter { $0.statusOfValue(forKey: "playable", error: nil) == .loaded }
|
||||
}
|
||||
|
||||
func cancelLoadingAssets() {
|
||||
assets.forEach { $0.cancelLoading() }
|
||||
audioAsset = AVURLAsset(url: audioAsset.url)
|
||||
|
Reference in New Issue
Block a user