It is through this for sure. You will experience this glitch no matter what you do. The reason is how AVQueuePlayer works. It loads the next item when the previous one is finished. Therefore, if your videos are large, you can also see a blank screen for 2-3 seconds. One solution is what you mentioned, i.e. Using two AVQueuePlayer . But, as you said, this does not work for you, and even if you earn, it will be awkward.
The best and cleanest AVMutableComposition solution. It may look complicated at first, but it's quick and one-time. You create a composition of all your videos and play simple AVPlayer . And in your case, I suppose you just need to play it, so you don't even need to export it.
To learn how to use AVMutableComposition , click here. He will explain you the exact code.
source share