In YouTube Data API v3, you can get video's thumbnails with the videos->list function. From snippet. thumbnails. (key), you can pick the default, medium or high resolution thumbnail, and get its width, height and URL.
For youtube I use something like this:
<img class="video-thumbnail" src="http://img.youtube.com/vi/<?php echo $video_id; ?>/0.jpg" alt="" width="190">
where
$video_id is the code of that video from url.
Can I do something similar for Dailymotion videos
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With