Time for some video playback tips on iOS with AVFoundation.
Take these with a grain of salt. Behavior depends on media type, device, and evolves with new OS versions. A fair bit here is focused on HLS, but some suggestions are broadly applicable.
1. Create an AVURLAsset first. Don’t use a URL to initialize a AVPlayer or AVPlayerItem directly. Do this well in advance of when you want playback to start.