Loading PHAsset data FAST.

徘徊边缘 提交于 2019-12-24 14:53:17

问题


I am using requestimageforasset to load assets, just as described in the Apple Dev Documentation.

It works and all, but I find it very very VERY slow when it comes to very large assets, such as videos of several hundreds of megabytes.

My goal is to load an asset, copy a chunk of its data, and send that chunk to a server.

I load chunks because of obvious reasons, RAM limitation.

I have a couple of questions in mind about this:

  1. How can I copy chunks of large video assets really fast?

  2. Can I get any direct and fast access to asset data without calling requestimageforasset?

  3. Should I maintain the requestimageforasset open until I send the data and then leave it's completion block?

So, what approach should I take and where can I find info about this?

来源:https://stackoverflow.com/questions/32918479/loading-phasset-data-fast

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!