FLUTTER ECOSYSTEM

Dimolll/cached_video_preview

원격 또는 로컬 비디오 미리보기 이미지를 가져오고 캐시하는 데 도움이 되는 Flutter 플러그인입니다.

cached_video_preview 프로젝트 이미지
Stars
8
Forks
9
최근 푸시(UTC)
2022. 6. 22.
프로젝트 상태
활성
Dmytro Bondarchuk GitHub avatar
GITHUB User

Dmytro Bondarchuk ↗

Flutter Developer

언어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.