youtube_explode/example/example.dart

15 lines
417 B
Dart
Raw Normal View History

2021-03-11 14:20:10 +01:00
// ignore_for_file: avoid_print
2020-02-20 22:45:36 +01:00
import 'package:youtube_explode_dart/youtube_explode_dart.dart';
2020-02-20 19:50:10 +01:00
Future<void> main() async {
2021-03-11 14:20:10 +01:00
final yt = YoutubeExplode();
2020-02-20 19:50:10 +01:00
2021-03-11 14:20:10 +01:00
var manifest = await yt.videos.closedCaptions.getManifest('Pxgvgh9IFqA');
2020-11-13 09:21:36 +01:00
print(manifest.tracks);
print('\n\n---------------------\n\n');
2021-03-11 14:20:10 +01:00
manifest = await yt.videos.closedCaptions.getManifest('Pxgvgh9IFqA');
2020-11-13 09:21:36 +01:00
print(manifest.tracks);
yt.close();
2020-02-20 19:50:10 +01:00
}