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 than youtube).
I extracted youtube urls from this response. And want to display thumbnail of these videos in the collectionview.
How can i do this?
I searched a lot but could not get any proper solution.
Please help me.
Thanks
Aucun commentaire:
Enregistrer un commentaire