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?

Post not yet marked as solved Up vote post of Yoshi2Ski Down vote post of Yoshi2Ski
705 views

Replies

The way to use Core Media Framework directry is suitable ?
Is there any example using Core Media directry?