0
我怎樣才能播放視頻使用MPMoviePlayerController下載解析保存爲PFFile? 我下載這段代碼的視頻文件:我怎樣才能啓動從MPMoviePlayerController解析下載的視頻
var query = PFQuery(className:"Video")
query.whereKey("Nome", equalTo:"prova")
query.findObjectsInBackgroundWithBlock {
(objects: [AnyObject]?, error: NSError?) -> Void in
if error == nil {
// The find succeeded.
println("Successfully retrieved \(objects!.count) scores.")
if let objects = objects as? [PFObject] {
for object in objects {
var imageFile:PFFile =object.objectForKey("Video")
imageFile.getDataInBackgroundWithBlock {
(imageData: NSData?, error: NSError?) -> Void in
?????????????
}
}
} else {
println("Error: \(error!) \(error!.userInfo!)")
}
}