Seamless video playback with AVFoundation

I know the ways to use AVQueuePlayer and AVPlayerLooper,

and use NotificationCenter.default.addObserver(…, name: .AVPlayerItemDidPlayToEndTime, …).
But I feel little gap when video returns first frame.
I need the same situation for audio player setted AVAudioPlayer.numberOfLoops = -1.
Is there good way to play video seamlessly?

Powered by WPeMatico

You may also like...

Comments are closed.