I want to use the method Seek of the class AVPlayer. But this method take a parameter CMTime.
Could anyone knows about this object.
In order to move the playback cursor to a given time.
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.
The Apple documentation contains information on the CMTime struct.
As I understand it, you set the “TimeScale” to a timescale suitable for the media (e.g. 44100 = 1/44100 sec – which might be suitable for a CD). Then the “Value” represents units of that timescale. So, a value of 88200 would be 2 secs.
Isn’t too clear though, I’ll grant you.