I've a question in Objective-C, I'm working on an iOS application that should play a specific mp3 set of files -242 mp3 files exactly-, So could someone tell me what is the best way to play them all, I mean should I put them in a server, making them all local or what ? and how should I code them in Xcode.
Asked
Active
Viewed 6,798 times
2
-
http://stackoverflow.com/questions/9577471/avplayer-and-local-files,Thsi post explain how to play mp3 file form local and from url – Mukesh Jul 28 '15 at 03:23
-
Thank you all guys. – Abdulrahman Jami May 15 '17 at 12:02
2 Answers
0
You could do something like this:
NSUrl *videoUrl = [NSUrl urlWithString:@"url"];
MPMoviePlayerViewController *playerViewController =
[[MPMoviePlayerViewController alloc]initWithContentURL:[NSURL URLWithString: videoUrl]];
[self presentMoviePlayerViewControllerAnimated:playerViewController];