Sliding Music Player iOS

* * * * (17 ratings)
Sliding Music Player | App Code for Sale | Hero

Screenshots

Overview

“Sliding Music Player“ is a custom control that is easy to integrate in every project. It allows you to play music files that are stored both locallly or on a server.

“Sliding Music Player“ is easy to customize, data is stored in property list (XML file). All included images have retina (HD) support. Control have animated image when music is playing.

The package contains:

  • source code

  • complete documentation

  • retina images

“Sliding Music Player“ can easily be added to your project with few lines of code, all you need to do is to allocate SlidingMusicPlayerView with and add it to your view.

UPDATE 25th May 2012 Remote streaming Audio Bug solved

How To

Create new project or open existing one and add following files to project (from Source folder):

  • SlidingMusicPlayerView.h

  • SlidingMusicPlayerView.m

  • playlist.plist

Add all images from Assets folder to your project. Control requires following frameworks, please include them to your project:

  • CoreMedia.framework

  • AVFoundation.framework

  • QuartzCore.framework

“Sliding Music Player“ can easily be added to your project with few lines of code, all you need to do is to allocate SlidingMusicPlayerView with and add it to your view.

// Allocate control, define it's frame to be 320.0f, 50.0f
SlidingMusicPlayerView *SMPlayer = [[SlidingMusicPlayerView alloc] initWithFrame:CGRectMake(100.0f, 50.0f, 320.0f, 50.0f)];
// Add control to view
[self.view addSubview:SMPlayer];
// Release control
[SMPlayer release];

Don't forget to include control in your header file:

#import " SlidingMusicPlayerView.h";

You can edit playlist by opening playlist.plist file. Each item is defined with:

  • Title: name of song that will be displayed on player control
  • Type: “local“ or “remote“ file (local means included in project, remote is file that is played from internet)
  • Path: name of local file or URL address
  • Extension: file extension
19 Comments Leave a comment

19 Comments

Please login in order to leave a comment.

Newest first
  • rachel_david_61489 2014-09-06 14:58:26 Thread #39126

    Good day! I simply wish to give you a big thumbs up for your excellent information you’ve got here on this post. I am returning to your site for more soon. Check it out of my new Music Player Code Script - http://gentleninja.com/musicplayercodescript

  • madage 2014-07-09 23:02:34 Thread #31077

    The music continues in the back ground once views are changed. When I summon another view and put the code in the player doesn't recognize it is already playing. How can i show the same player? Or at least how would I get the audio to stop playing once I change views? I've been waiting on a response for months now, please help.

  • madage 2014-05-06 20:12:07 Thread #22723

    The music continues in the back ground once views are changed. When I summon another view and put the code in the player doesn't recognise it is already playing. How can i show the same player?  Or at least how would I get the audio to stop playing once I change views?  Thanks!

  • lino.sky Buyer 2014-02-09 14:19:37 Thread #11316

    I bought the code but never had any type of support, and I had some questions were not answered, a problem arose today, and I need an answer, I added the "UIBackgroundModes" so the audio is running in the background, but is not working, what can I do to make it happen?

  • eeijb120803 Buyer 2013-10-09 03:56:26 Thread #5633

    Hi, I would like to know if this component work with ios 7 and xcode 5?

    Than you...

  • lino.sky Buyer 2013-10-02 16:48:19 Thread #5399

    How can I start componete open and playing the music?

  • lino.sky Buyer 2013-07-05 16:22:31 Thread #3254

    I am disappointed with the service of you.

  • lino.sky Buyer 2013-06-24 15:43:38 Thread #3063

    Friend has somehow starting with the player application open and playing?

  • lino.sky Buyer 2013-06-21 20:40:10 Thread #3025

    Hello, I need to do exactly what "Kittsapps" want to do, give me a hand? Another thing, put a music local, and is not playing, he seeks this song on itunes library? At most, congratulations, your code is show.

  • AlejandroLuengoGomez Buyer 2013-02-02 20:36:50 Thread #1113

    How can I play a stream like http://108.61.73.119:10002 or a .pls?