One way to do this is to save AVURLAsset in a variable ( tempAsset = player.playerItem.asset ), and then replace playerItem on your player with zero. When you are ready to play it again, you can create a new playerItem from the asset that you saved earlier.
almas source share