I have to make sure that I have fully loaded the videos before playing them. I went through the Apple documentation but couldn't find how to do it.

I tried AVAssetDownloadTask but I don't want to keep the files. I want them to be deleted after the app is closed. Is there a recommended method for this?

I need to make sure the videos are fully downloaded and ready to play. So AVPlayer's default behavior doesn't work for me