I am getting video URLs in the response from server (i.e from API not stored in local-device) as follwos ;
videos": [
"<iframe width=\\"560\\" height=\\"315\\" src=\\"//www.youtube.com/embed/-OB7y6ELDks?list=UUYv2cbGZE2SmAYPDZQRKiig\\" frameborder=\\"0\\" allowfullscreen></iframe>",
"<iframe width=\\"560\\" height=\\"315\\" src=\\"//www.youtube.com/embed/igcIaNi-eHA?list=UUYv2cbGZE2SmAYPDZQRKiig\\" frameborder=\\"0\\" allowfullscreen></iframe>",
"<iframe width=\\"560\\" height=\\"315\\" src=\\"//www.youtube.com/embed/3kGNMUfajJc?list=UUYv2cbGZE2SmAYPDZQRKiig\\" frameborder=\\"0\\" allowfullscreen></iframe>"
],
Currently it contains only youtube videos, but it is not sure, it may also contain url videos from other resources (i.e other than youtube).
I extracted youtube urls from this response. And want to display thumbnails of these videos in the UICollectionView.
How can i do this?
I searched a lot about this but could not get any proper solution.
Please help me.
Thanks..