Created
May 10, 2019 19:19
-
-
Save KickedDroid/545261917d39de56bb4f3832a991bcd9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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