i created a music player with previous and next functionality in my app.i want to impliment song playback slider. how to do this?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use a
UISlidersetting the maxValue to the current playing song duration (in seconds) and the minValue to 0.Assuming that you’re using an
MPMusicPlayerControlleruse thecurrentPlaybackTimeto get the current time of the playing track and use that value to update the slider each second