Jerky playback from avplayer on Applying Rate greater than 2x

后端 未结 4 653
难免孤独
难免孤独 2021-01-07 00:15

I want to tweak Avplayer rate , I able to do with help of

[_avplayer play];
[_avplayer setRate:1.5];

Also disabled audio tracks , it is ru

4条回答
  •  心在旅途
    2021-01-07 00:47

    This seems to be a bug in AVFoundation. It can play smoothly at fast rates for many videos where, under most circumstances, it doesn't. For example, one can use AVPlayerView's floating controller style to expose a fast-forward button. Clicking this button repeatedly results in smooth, fast playback where simply setting AVPlayer.rate does not.

    In my answer to this question I explain a workaround for this problem.

提交回复
热议问题