youtube_extractor 1.0.4

Dart native js
Flutter Android iOS web

YouTube Extractor is a dart and flutter library for extracting YouTube audio and video streams without the requirement of an API key.

YouTube Extractor #

Pub

YouTube Extractor is a library for Dart (and Flutter) that provides an interface to resolve and download YouTube video and audio streams. This library is being primarily developed to provide YouTube support for the mobile SoundByte apps.

YouTube Extractor is a port of YouTubeExplode for Dart (minus some extra features that were not needed).

Features #

  • Download YouTube audio and video streams.
  • Access the YouTube live steaming url.

Usage #

YouTube Extractor has a single entry point, the YouTubeExtractor class. See the example folder for more information.

Get an audio stream #

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}');
}
20
likes
90
pub points
81%
popularity

YouTube Extractor is a dart and flutter library for extracting YouTube audio and video streams without the requirement of an API key.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

dominic.maas@live.com

License

MIT (LICENSE)

Dependencies

http, xml

More

Packages that depend on youtube_extractor