Download YouTube Videos, Thumbnails, and More
Published on by Flutter News Hub
YouTubeDownloader is a powerful library that enables you to effortlessly download YouTube videos, thumbnails, and other metadata.
Thumbnails
To obtain a YouTube thumbnail, utilize the YouTubeThumbnail class. Supply the YouTube video ID as a string and the desired video size as parameters.
Image Function | Size |
---|---|
hd | 1280x720 |
standard | 640x480 |
hq | 480x360 |
mq | 320x180 |
defaults | 120x90 |
Example:
Image.network(YoutubeThumbnail(youtubeId: 'TicGJQqrq2M').hd()),
Image.network(YoutubeThumbnail(youtubeId: 'TicGJQqrq2M').standard()),
Image.network(YoutubeThumbnail(youtubeId: 'TicGJQqrq2M').hq()),
Image.network(YoutubeThumbnail(youtubeId: 'TicGJQqrq2M').mq()),
Image.network(YoutubeThumbnail(youtubeId: 'TicGJQqrq2M').small()),
Other Upcoming Features
In the near future, YouTubeDownloader will boast a host of additional features, such as:
- Video downloads
- Metadata retrieval (title, description, tags, etc.)
- Subtitle extraction
- Live stream support