iOS7 Audio Player Controls

Does Apple provide us with some audio controls like their standard ones we see in Control Center and the native Music app? Something we can add as a subview?

Or do we have to create our own?



No, they do not. You have to create all of these controls on your own.

They do however offer several frameworks that are useful when it comes to making music playing applications. Once you create your own buttons, you can hook them up to the music API of your choice.

If you're looking to control the device's built in iPod, you'll want the Media Player Framework, but if you're looking to create something more your own, you probably want AVFoudation.

Try in Simple steps:

Step 1: #import <MediaPlayer/MediaPlayer.h>

Step 2: Set delegate in .h file UIViewController<MPMediaPlayback>

Step 3: Write this code on .m file

- (void)viewDidLoad
    [super viewDidLoad];
    NSURL *vedioURL =[NSURL fileURLWithPath:fileLocation];
    MPMoviePlayerViewController *videoPlayerView = [[MPMoviePlayerViewController alloc] initWithContentURL:vedioURL];
    [self presentMoviePlayerViewControllerAnimated:videoPlayerView];
    [videoPlayerView.moviePlayer play];

    [self.navigationController popViewControllerAnimated:NO];

    [self.navigationController popViewControllerAnimated:NO];

Need Your Help

get details on file then insert to database

php database file csv readfile

I have a .txt file with details of all countries in this format:

Unusual use of a Boolean expression

c++ lint

This is a part of my code base