direct_link 0.2.3 copy "direct_link: ^0.2.3" to clipboard
direct_link: ^0.2.3 copied to clipboard

Direct link extractor from URL to stream and download directly.

direct_link #

pub package Last Commits GitHub repo size License
Uploaded By

For those who want to create a movie and downloader app, this is a useful package.

You can get a direct link from the URL that my support sites.

Support Websites #

  • Facebook
  • Instagram
  • Youtube
  • Twitter
  • Dailymotion
  • Vimeo
  • VK
  • SoundCloud
  • Tiktok
  • Reddit
  • Threads

Screenshot #

Screenshot

Getting Started #

In the pubspec.yaml of your flutter project, add the following dependency:

dependencies:
  ...
  direct_link: latest

In your library add the following import:

import 'package:direct_link/direct_link.dart';

Usage #

var directLink = DirectLink();

Initialize the plugin for notification

directLink.init(
  allowNotification: true,
  androidInitializationSettings:
    const AndroidInitializationSettings('launch_background'), // add your logo
);

Use check function to check your link have been existed my support sites

var data = await directLink.check('url'); // add your url

Example #

if (data != null) {
  print(data.title);
  print(data.thumbnail);
  print(data.duration);
  for (var e in data.links!) {
    print(e.type);
    print(e.quality);
    print(e.link);
    print('-' * 20);
  }
}

If you want to download use download function.

await directLink.download(
  url: data.links[0].link, // use link from data.links
  savedDir: dir,
  fileName: fileName,
);

Contribution #

Feel free to file an issue if you find a problem or make pull requests.

All contributions are welcome :)

69
likes
150
pub points
81%
popularity

Publisher

unverified uploader

Direct link extractor from URL to stream and download directly.

Repository (GitHub)
View/report issues

Documentation

API reference

Funding

Consider supporting this project:

paypal.me
ko-fi.com

License

MIT (license)

Dependencies

easy_downloader, easy_downloader_flutter_lib, flutter, flutter_inappwebview, flutter_local_notifications, html, puppeteer

More

Packages that depend on direct_link