AVAssetReader how to get file size
AVAssetReader how to get file size
- Subject: AVAssetReader how to get file size
- From: Andy Davidson <email@hidden>
- Date: Tue, 14 Jun 2016 12:33:27 -0700
- Thread-topic: AVAssetReader how to get file size
I need to read an asset from a users iPod library and convert it to LPCM. I want put up an import progress bar. Any idea how I can find the number of bytes I need to read? PMediaItemPropertyPlaybackDuration returns the play back duration in sec.
AVAssetReader *assetReader = [[AVAssetReader assetReaderWithAsset:songAsset
error:&assetError]
retain]; AVAssetReaderOutput *assetReaderOutput = [[AVAssetReaderAudioMixOutput assetReaderAudioMixOutputWithAudioTracks:songAsset.tracks audioSettings: nil] retain]; if (! [assetReader canAddOutput: assetReaderOutput]) { return; }
[assetReader addOutput: assetReaderOutput];
fileSize = [assetReader ????] Thanks in advance
Andy
|
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden