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

Derfder picture Derfder · Nov 1, 2012 · Viewed 29.2k times · Source

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

Answer

Ravi picture Ravi · Nov 1, 2012

You just need to add an extra thumbnail into the link.

Video URL

https://www.dailymotion.com/video/{video_id}

Thumbnail URL

https://www.dailymotion.com/thumbnail/video/{video_id}