-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AVPlayer timescale warnings #52
Comments
Basically CMTime is a struct { int64 value; int32 timescale; }, it is a numerator / denominator representation, so the time is value / timescale. But notice that the value is an int64. So what the above is saying is you wanted to represent 1.1 as a CMTime, with a timescale of 1, which means 1.1 will be truncated to 1, so that's why the -0.1 error is introduced. I am not sure where the timescale of 1 came from, but I guess it's from curtime.timescale... I don't know why [player currentTime] would return a timescale of 1. I had sort of thought it would always use the same timescale, but perhaps not. I would have thought timescale was related to the frames per second of the video and would just always be constant, so the value portion would sort of be the frame number. I've seen some code that gets timescale from the duration instead of from currentTime, but not sure if that would make a difference. Perhaps it's just that currentTime is zero and zero always has a timescale of 1? Anyway, I think the options would be:
|
You explanation was really helpful for me @deanm, thank you! |
I'm getting following error when using player.seekToTime(1.1)
I can see that you have marked plask_bindings.mm#L7491 as
FIXME
, why?The text was updated successfully, but these errors were encountered: