Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get a thumbnail or snapshot of a youtube video at a specific "second" with Youtube javascript API?

I want to take a thumbnail image of a youtube video, let's say http://www.youtube.com/watch?v=ffaTjpA1scI at 30s or 120s. How can I do that with youtube API?

I do think this is possible, because when I watch a Youtube video, if I move my cursor to the timeline, I can immediately see snapshots at specific time. I just want to retrieve these snapshots programmatically.

I also tried http://img.youtube.com/vi//0.jpg, actually this can get the thumbnail of course, but it cannot get a snapshots at a specific time.

like image 582
nan Avatar asked Nov 23 '12 08:11

nan


1 Answers

Those specific type thumbnails (used for the timeline snapshots) are not exposed via any sort of official URL scheme or API. I wouldn't recommend trying to reverse-engineer a solution, either.

like image 195
Jeff Posnick Avatar answered Sep 19 '22 08:09

Jeff Posnick