v1.0.6
cached_video_preview
원격 또는 로컬 비디오 미리보기 이미지를 가져오고 캐시하는 데 도움이 되는 Flutter 플러그인입니다.
27좋아요 34430일 다운로드125Pub 점수
AndroidiOS
원격 또는 로컬 비디오 미리보기 이미지를 가져오고 캐시하는 데 도움이 되는 Flutter 플러그인입니다.
{"sdk":"flutter"}^0.4.1^0.5.0^4.4.1^4.0.0^0.5.0^2.0.2^1.8.0^3.1.0{"sdk":"flutter"}^4.4.1^2.1.1^1.0.1아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
Cached Video Preview can help you get remote or local video preview image and cache it.
This is example code how to implement this package.
CachedVideoPreview(
path: 'https://www.youtube.com/watch?v=b_sQ9bMltGU',
type: SourceType.remote,
remoteImageBuilder: (BuildContext context, url) =>
Image.network(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),
)
final File video = File('video.mp4');
CachedVideoPreview(
path: video.path,
type: SourceType.local,
fileImageBuilder: (context, bytes) =>
Image.memory(bytes),
)
Thanks to the authors of these libraries metadata_fetch and video_thumbnail.
Use Issue Tracker for any questions or bug reports.