AVAggregateAssetDownloadTask不支持currentRequest属性。
创始人
2024-11-12 17:00:45
0

AVAggregateAssetDownloadTask不支持currentRequest属性,但可以通过实现AVAssetDownloadDelegate的方法来获取下载请求。例如:

let downloadTask = AVAggregateAssetDownloadTask(asset: asset, mediaSelections: mediaSelections, options: options)

downloadTask.delegate = self
downloadTask.resume()

...

// Implement AVAssetDownloadDelegate methods

extension ViewController: AVAssetDownloadDelegate {

    func urlSession(_ session: URLSession, assetDownloadTask: AVAssetDownloadTask, didFinishDownloadingTo location: URL) {

        if let originalRequest = assetDownloadTask.value(forKey: "originalURLRequest") as? URLRequest {
            print("Download request: \(originalRequest)")
        }

        // Handle downloaded asset here
    }
}

在AVAssetDownloadDelegate中的didFinishDownloadingTo方法中,通过获取originalURLRequest属性来获取下载请求。

相关内容

热门资讯

wepoker透视方法!德州辅... wepoker透视方法!德州辅助工具到底怎么样(透视)技巧-确实分享是有挂1、超多福利:超高返利,海...
有消息称!雀姬手游透视辅助,禅... 有消息称!雀姬手游透视辅助,禅游游戏辅助(透视)器-一贯真的是有挂1、游戏颠覆性的策略玩法,独创攻略...
wepoker买脚本靠谱吗!w... wepoker买脚本靠谱吗!wepoker有透视功能吗(透视)软件-原来解迷存在有挂wepoker有...
经核实!微信四川熊猫辅助软件,... 经核实!微信四川熊猫辅助软件,川南休闲辅助(透视)软件-真是是有挂微信四川熊猫辅助软件辅助器是一种具...
hhpoker真的有透视吗!w... hhpoker真的有透视吗!wejoker内置辅助(透视)插件-一贯教你有挂1)hhpoker真的有...
受玩家影响!创思维激k透视软件... 受玩家影响!创思维激k透视软件,中至小程序破解(透视)技巧-果然有挂1、每一步都需要思考,不同水平的...
fishpoker透视底牌!p... fishpoker透视底牌!pokemmo脚本辅助器下载(透视)神器-真是科普是有挂1、在pokem...
受玩家影响!微信微乐小程序辅助... 受玩家影响!微信微乐小程序辅助器免费安装,九游破解辅助插件hhpoker(透视)技巧-果然真的有挂微...
wepoker网页版透视方法!... wepoker网页版透视方法!hhpoker破解工具(透视)插件-好像总结真的是有挂1、每一步都需要...
据权威媒体报道!新漫游大厅辅助... 据权威媒体报道!新漫游大厅辅助,阿拉斗牌辅助(透视)app-都是真的有挂1、玩家可以在新漫游大厅辅助...