14 lines
468 B
Dart
14 lines
468 B
Dart
import 'package:youtube_explode_dart/youtube_explode_dart.dart';
|
|
|
|
Future<void> main() async {
|
|
var yt = YoutubeExplode();
|
|
var video = await yt.videos.get(VideoId('https://www.youtube.com/watch?v=bo_efYhYU2A'));
|
|
var streamManifest = await yt.videos.streamsClient.getManifest(VideoId('https://www.youtube.com/watch?v=bo_efYhYU2A'));
|
|
|
|
print('Title: ${video.title}');
|
|
print(streamManifest.streams());
|
|
|
|
// Close the YoutubeExplode's http client.
|
|
yt.close();
|
|
}
|