Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 10-15-2011, 01:07 PM   #1 (permalink)
Registered Member
 
Join Date: Oct 2011
Posts: 24
FabinhoSmash is on a distinguished road
Default Doing a music player app! previous and next track

How can I make a app to iphone without using ipod library, and doing the next song and the previous song??

I think the best way is doing an array with the songs, but I don't know how to do. Someone can helps me??

My app is working, with pause, play, current time and volume slider... but this part of next song I really don't know!

Thanks a lot.


- (void)viewDidLoad {

//initialize string to the path of the song in the resource folder
NSString *myMusic = [[NSBundle mainBundle]pathForResource:@"gastando" ofType:@"mp3"];
player = [[AVAudioPlayer alloc]initWithContentsOfURL:[NSURL fileURLWithPath:myMusic] error:NULL];
player.numberOfLoops = 0;
player.volume = slider.value;
timeSlider.maximumValue = player.duration;

timer = [NSTimer scheduledTimerWithTimeInterval:0.1 target:self selector:@selector(timeLoader) userInfo:nil repeats:YES];

[super viewDidLoad];
}
FabinhoSmash is offline   Reply With Quote
Old 10-16-2011, 11:52 AM   #2 (permalink)
Registered Member
 
Join Date: Oct 2011
Posts: 24
FabinhoSmash is on a distinguished road
Default

someone? =/
FabinhoSmash is offline   Reply With Quote
Reply

Bookmarks

Tags
audio, ios, music, player, track

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 407
15 members and 392 guests
13dario13, 7twenty7, buggen, eski, EvilElf, glenn_sayers, j.b.rajesh@gmail.com, LunarMoon, morterbaher, n00b, QuantumDoja, sacha1996, Sami Gh, VinceYuan
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,673
Threads: 94,122
Posts: 402,906
Top Poster: BrianSlick (7,990)
Welcome to our newest member, morterbaher
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 05:25 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0