Skip to content

kaex/youtube_video_info

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

youtube_video_info

flutter dart

pub.dev/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: flutter
youtube_video_info: ^1.0.2

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.13242
var durationSeconds = videoData.durationSeconds; // 167

example gif

About

This is a lightweight⚡ package to fetch video info for YouTube from the url

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published