Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Converting audio and video to NSData

I would like to confirm what the recommended ways are to convert audio and video files into NSData objects. Is + dataWithContentsOfFile: the best way to do this?

like image 871
RunLoop Avatar asked Oct 19 '09 14:10

RunLoop


1 Answers

For videos since the only thing you have is the URL, yes dataWithContentsofFile is probably the best way to get the data for it.

like image 186
Daniel Avatar answered Nov 14 '22 21:11

Daniel