3

how can I make AVPlayerLayer display the exact video's frame in method seekToTime.

Now [AVPlayer seekToTime:CMTimeMakeWithSeconds(CMTimeGetSeconds(A, B))], the AVPlayerLayer only displays the frame at every 1-second change for example 1.50-2.50-3.50. I want it to display frame at 4.45 second for example. Is it possible?

4

1 回答 1

7

您可以使用[AVPlayer seekToTime: toleranceBefore: toleranceAfter:]来获得更高精度的随机媒体访问。
要获得尽可能高的精度,kCMTimeZero请作为两个公差的参数传递。请注意,这可能会在搜索期间增加明显的延迟。

于 2014-02-18T14:03:24.327 回答