Iphone SDK: Music Player With Controls (Part 2)

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
8,249
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jun 21, 2009

This tutorial teaches you how to make an app on xcode that has a play button pause and stop button and it controls a song that repeats often used for back ground music... Don't Forget to subscribe, rate, and comment!!!

Category:

Education

Tags:

License:

Standard YouTube License

  • likes, 2 dislikes

Link to this comment:

Share to:
see all

All Comments (29)

Sign In or Sign Up now to post a comment!
  • Nice tutorial but what's the difference between stop and pause? Both are same, aren't they?

    Just set the current time in zero

    [myMusic setCurrentTime:0];

    [myMusic stop];

  • thanks for the tutorial

  • @karamsafwat Hi I have the same problem! meaby you already solved the problem or you know how play music or a sound with code.

    I hope you can help me :)

  • everything with 'myMusic' is 'undeclared'. Can anyone help me?

  • how do I lose the gap in the sound when looping? if i play an audio sound using this method there is a gap. If i want a sound to have no gap such as a background audio do you have aby ideas how to do this? there is a PrepareToPlay method? that preloads the buffer but i cant seem to make it work. has anyone used this? thanks...

  • Anyone got the source code?

  • Exactly how long did it take you to figure out you never declared the volume variable?

  • I did all what you did but i have one warning which says:

    AVFoundation.framework/AVFound­ation, missing required architecture i386 in file

    and an error which says: "_OBJC_CLASS_$_AVAudioPlayer", referenced from: objc-class-ref-to-AVAudioPlaye­r in songViewController.o

    ld: symbol(s) not found

    collect2: ld returned 1 exit status.

    Please do you or any body have any idea how to fix this issues.thanks.

  • [myMusic setCurrentTime:0];

    [myMusic pause];

  • Ah now i found it , my volume was on 0,2 , put it on 1 and it works !

    But , now when i press on stop its like pause !

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more