Created
August 30, 2020 12:44
-
-
Save agammahajan1/5aa181ebf04a1455a43c0a8dfbcf2b8e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if let cacheUrl = FindCachedVideoURL(forVideoId: videoId) { | |
let cacheAsset = AVURLAsset(url: cacheUrl) | |
asynchronouslyLoadURLAssets(cacheAsset) | |
} | |
else { | |
asynchronouslyLoadURLAssets(newAsset) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment