direct_link 0.2.2 direct_link: ^0.2.2 copied to clipboard
Direct link extractor from URL to stream and download directly.
direct_link #
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 #
- Youtube
- Dailymotion
- Vimeo
- VK
- SoundCloud
- Tiktok
- Threads
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 #
Use check
class to check your link have been existed my support sites
var directLink = DirectLink();
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('-' * 20);
}
}
Contribution #
Feel free to file an issue if you find a problem or make pull requests.
All contributions are welcome :)