youtube_explode_dart 2.3.1 youtube_explode_dart: ^2.3.1 copied to clipboard
A port in dart of the youtube explode library. Supports several API functions without the need of Youtube API Key.
// ignore_for_file: avoid_print
import 'package:youtube_explode_dart/youtube_explode_dart.dart';
Future<void> main() async {
final yt = YoutubeExplode();
final streamInfo = await yt.videos.streamsClient
.getManifest('fRh_vgS2dFE', ytClients: [YoutubeApiClient.mediaConnect]);
print(streamInfo);
print(streamInfo.muxed.first.url);
// Close the YoutubeExplode's http client.
yt.close();
}