I’m presuming you’re targeting iOS here. In that case, there’s two basic strategies you might use:
If the video is a single file, you can download it using
URLSession. As videos are typically large, you’ll want to use a background session so that the download can continue while your app is in the background.
If this is an HTTP Live Streaming video, you’ll want to look at
As none of this is directly related to Swift the language, my recommendation is that you post your follow-up questions on DevForums. Specifically:
Share and Enjoy
Quinn “The Eskimo!” @ DTS @ Apple