Im making a iPhone app and want to make a seek bar for a AVPlayer. I want to make it with a UISlider. How can I 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.
You can map the duration of the file being played by the AVPlayer to the UISlider’s range (maximum and minimum values) using the
durationproperty of AVPlayer and make changes in the slider position to set thecurrentTimeof the AVPlayer.