diff --git a/example/video_download.dart b/example/video_download.dart index 36cbdbe..c573948 100644 --- a/example/video_download.dart +++ b/example/video_download.dart @@ -32,7 +32,7 @@ Future 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.