Skip to content

Instantly share code, notes, and snippets.

@KickedDroid
Created May 10, 2019 19:19
Show Gist options
  • Save KickedDroid/545261917d39de56bb4f3832a991bcd9 to your computer and use it in GitHub Desktop.
Save KickedDroid/545261917d39de56bb4f3832a991bcd9 to your computer and use it in GitHub Desktop.
import 'package:youtube_extractor/youtube_extractor.dart';
var extractor = YouTubeExtractor();
main() async {
// Get the stream info for the passed video
var streamInfo = await extractor.getMediaStreamsAsync('a1ExYqrBJio');
// Print the audio stream url
print('Audio URL: ${streamInfo.audio.first.url}');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment