video_provider 1.2.3+2 copy "video_provider: ^1.2.3+2" to clipboard
video_provider: ^1.2.3+2 copied to clipboard

This library enables you to extract mp4 videos from various video providers.

example/example.dart

import 'package:video_provider/video_provider.dart';

void main() {
  /**
   * If you only care for quick link conversion and want to check the result
   * yourself, use the VideoProvider:
   */
  var potentialUris = VideoProvider.fromUri(
    Uri.parse('https://i.imgur.com/example.gifv'),
  ).getVideos();

  // prints https://i.imgur.com/example.mp4
  for (var video in potentialUris) {
    print(video.uri);
  }

  /**
   * If you want to make sure the videos provided are actually available,
   * use the CheckedVideoProvider:
   */
  var checkedUris = CheckedVideoProvider.fromUri(
    Uri.parse('https://gfycat.com/ScratchyBarrenDeermouse-mobile'),
  ).getVideos();

  /**
   * Only prints 'https://thumbs.gfycat.com/ScratchyBarrenDeermouse-mobile.mp4',
   * as this particular video does not have a HighRes version
   */
  checkedUris.forEach((video) => print(video.uri));
}
1
likes
40
pub points
49%
popularity

Publisher

unverified uploader

This library enables you to extract mp4 videos from various video providers.

Repository (GitHub)
View/report issues

License

GPL-3.0 (LICENSE)

Dependencies

http

More

Packages that depend on video_provider