cached_video_preview

Creator: coderz1093

Last updated:

0 purchases

cached_video_preview Image
cached_video_preview Images

Languages

Categories

Add to Cart

Description:

cached video preview

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),
)

copied to clipboard
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),
)

copied to clipboard
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),
)

copied to clipboard
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.

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Customer Reviews

There are no reviews.