FLUTTER ECOSYSTEM

Dimolll/cached_video_preview

एक Flutter प्लगइन जो आपकी सहायता कर सकता है दूरस्थ या स्थानीय वीडियो प्रीव्यू छवि प्राप्त करने और इसे कैश करने में।

cached_video_preview प्रोजेक्ट कवर
Stars
8
Forks
9
अंतिम पुश (UTC)
22 जून 2022
प्रोजेक्ट स्थिति
सक्रिय
Dmytro Bondarchuk GitHub avatar
भाषाएँDartRubySwiftKotlinObjective-C

इस रिपॉज़िटरी के पैकेज

उपयोग की गई निर्भरताएँ

निर्भरता सूची 13 आइटम

मूल README

यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।

README खोलें / बंद करें

Introduction

Cached Video Preview can help you get remote or local video preview image and cache it.

USAGE

This is example code how to implement this package.

Get Remote Video Image Preview extracting metadata in web pages

CachedVideoPreview(
  path: 'https://www.youtube.com/watch?v=b_sQ9bMltGU',
  type: SourceType.remote,
  remoteImageBuilder: (BuildContext context, url) =>
      Image.network(url),
)

Get Remote Video Image Preview from video url

CachedVideoPreview(
  path: 'https://flutter.github.io/assets-for-api-docs/assets/videos/bee.mp4',
  type: SourceType.remote,
  httpHeaders: const <String, String>{},
  remoteImageBuilder: (BuildContext context, url) =>
      Image.network(url),
)

Get Local Video Image Preview from File path
final File video = File('video.mp4');

CachedVideoPreview(
  path: video.path,
  type: SourceType.local,
  fileImageBuilder: (context, bytes) =>
      Image.memory(bytes),
)

Acknowledgments

Thanks to the authors of these libraries metadata_fetch and video_thumbnail.

Contact and bugs

Use Issue Tracker for any questions or bug reports.