开发者

AVAssetTrack totalSampleDataLength is 0

开发者 https://www.devze.com 2023-01-31 09:07 出处:网络
I\'m programming an iPhone app which uses an AVAssetReader to read samples from an AVAssetTrack, I need to allocate some memory which depe开发者_C百科nds on the number of samples in the AVAssetTrack,

I'm programming an iPhone app which uses an AVAssetReader to read samples from an AVAssetTrack, I need to allocate some memory which depe开发者_C百科nds on the number of samples in the AVAssetTrack, but for some reason totalSampleDataLength is returning 0.

Any ideas?


< warning - guess! >

Perhaps it's something to do with the AVAsynchronousKeyValueLoading protocol - do you have to ask it to load the value for that key before it's populated?

0

精彩评论

暂无评论...
验证码 换一张
取 消