我保存了项目网址:
var itemUrl: URL? = nil
itemUrl = (qryAlbums.collections[currAlbum].items[currItem].assetURL!)
let tempString: String = (track.last?.value(forKey: “url”) as! String?)!
track.setValue(itemUrl?.absoluteString, forKey: “url”)
现在我可以用AVPLayer播放这个项目:
AudioPlayerManager.sharedInstance.play(itemUrl)
问:现在有项目网址如何获取收藏和项目索引?