Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
...
guard let videoURL = URL(string: "https://www.youtube.com/watch?v=3x7_w9Oz8lQ") else
{
return
}
// Creamos el objeto con el que recuperamos el detalle
let metadataProvider = LPMetadataProvider()
metadataProvider.startFetchingMetadata(for: videoURL, completionHandler: { (metadata: LPLinkMetadata?, error: Error?) -> Void in
if let desappstreMetadata = metadata
{
let linkView = LPLinkView(metadata: desappstreMetadata)
}
})
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.