Skip to content

Commit

Permalink
Update video_download example.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hexer10 committed Apr 1, 2024
1 parent c99e38a commit 6ab8ce3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/video_download.dart
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ Future<void> download(String id) async {
final streams = manifest.audioOnly;

// Get the audio track with the highest bitrate.
final audio = streams.first;
final audio = streams.withHighestBitrate();
final audioStream = yt.videos.streamsClient.get(audio);

// Compose the file name removing the unallowed characters in windows.
Expand Down

0 comments on commit 6ab8ce3

Please sign in to comment.