An Interest In:
Web News this Week
- March 20, 2024
- March 19, 2024
- March 18, 2024
- March 17, 2024
- March 16, 2024
- March 15, 2024
- March 14, 2024
August 20, 2021 07:58 am GMT
Original Link: https://dev.to/baransel/youtubevideoinfo-flutter-package-2mn7
"youtube_video_info" flutter package
pub.dev/youtube_video_info
github.com/kaex/youtube_video_info
This is a lightweight package to fetch video info for YouTube from the url
To install, add to pubspec.yaml
flutter: sdk: flutteryoutube_video_info: ^1.0.0
and then run flutter pub get
Import the library
import 'package:youtube_video_info/youtube.dart';
Calling the method
YoutubeDataModel videoData = await YoutubeData.getData(link);
Example
var title = videoData.title; // "Ed Sheeran - Bad Habits [Official Video]"var averageRating = videoData.averageRating; // 4.13242var durationSeconds = videoData.durationSeconds; // 167
Original Link: https://dev.to/baransel/youtubevideoinfo-flutter-package-2mn7
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To