以前用avfile(9.0以前的版本),[AVFile filewith:urlString]; 然后[file getDataInBackgroundWithBlock:^(NSData *data, NSError *error)就可以直接下载了。
更新后,我看重构了了AVFile,但用AVFile *file=[AVFile fileWithRemoteURL:url]; 然后[file downloadWithProgress:^(NSInteger number){}completionHandler:^(NSURL * _Nullable filePath, NSError * _Nullable error) {},没办法下载,报错:@"Not get a Permanent Location Path."。
调试了下,好像是用[AVFile fileWithRemoteURL:url]方法时,创建的file没有objectId。
请问现在是不是不能使用AVFile直接从远程地址下载?