Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

youtube_explode_dart package has wrong documentation

I am trying to use flutter youtube_explode_dart package but I am facing some errors mainly two

  1. with video.property

Code:-

 var video = yt.videos.get('https://youtube.com/watch?v=Dpp1sIL1m5Q');
 var title = video.title; // Error in this line 
  1. with streamManifest

    Code:-

     // Error saying streamManifest is not defined
     var streamInfo = streamManifest.muxed.withHigestVideoQuality();
    

Link to the documentation code :- https://pub.dev/packages/youtube_explode_dart

If anyone has used the package or knows the fix PLEASE HELP!

like image 726
Programmerz Avatar asked Oct 20 '25 11:10

Programmerz


1 Answers

use manifest=yt.videos.streamsClient.getManifest(url); after getting manifest then var streamInfo = manifest.muxed.withHigestVideoQuality(); then use this hopefully your error will be solved please let me know if solved

like image 87
M Ahsan Ali 009 Avatar answered Oct 23 '25 02:10

M Ahsan Ali 009