Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get the video thumbnail from Dailymotion video from the video id of that video like in youtube?

Tags:

People also ask

How do I get the thumbnail of my YouTube video ID?

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