Monday, 15 March 2010

ios - ALAsset "real" filename -



ios - ALAsset "real" filename -

i have transfered mp4 itunes ipad. if open videos app can see listed - there's thumbnail , filename below (my_file.mp4). actual filename of asset changed in ios unique value - img_001.mov, example. the original filename listed in videos app (my_file.mp4). how find this?

thanks

here code real name of assetsfile

alassetsgroupenumerationresultsblock assetsenumerationblock = ^(alasset *result, nsuinteger index, bool *stop) { if (result) { [self.arrassetsmedia addobject:result]; } alassetrepresentation *rep = [result defaultrepresentation]; if (rep.filename!=nil) { nslog(@"file name is::%@",rep.filename); [arrmediafilename addobject:rep.filename]; } };

note:alassetrepresentation has property - (nsstring *)filename help of can file name

ios xcode alassetslibrary alasset

No comments:

Post a Comment