youtube_explode/example/example.dart

16 lines
440 B
Dart
Raw Normal View History

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 {
var yt = YoutubeExplode();
2020-11-01 15:05:19 +01:00
var manifest = await yt.videos.closedCaptions
2020-11-13 09:21:36 +01:00
.getManifest('Pxgvgh9IFqA', autoGenerated: true);
print(manifest.tracks);
print('\n\n---------------------\n\n');
manifest = await yt.videos.closedCaptions
.getManifest('Pxgvgh9IFqA', autoGenerated: false);
print(manifest.tracks);
yt.close();
2020-02-20 19:50:10 +01:00
}