flutter_video_info
비디오 파일의 기본 메타데이터 정보를 가져오는 플러터 플러그인입니다.
비디오 파일의 기본 메타데이터 정보를 가져오는 플러터 플러그인입니다.
아래는 영문 원문 스냅샷입니다. 최신 내용은 GitHub에서 확인하세요.
This plugin uses MediaMetadataRetriever class of native android to get basic meta information of a video file.
The following info can be extracted by this plugin:
title
path
author
mimetype
height
width
filesize
duration
orientation
date
framerate
location
Add flutter_video_info as a dependency in your pubspec.yaml file (what?).
dependencies:
flutter_video_info: <current version>
Import FlutterVideoInfo in your dart file.
import 'package:flutter_video_info/flutter_video_info.dart';
final videoInfo = FlutterVideoInfo();
String videoFilePath = "your_video_file_path";
var info = await videoInfo.getVideoInfo(videoFilePath);
//String title = info.title; to get title of video
//similarly path,author,mimetype,height,width,filesize,duration,orientation,date,framerate,location can be extracted.
If you select a video from your photo library, Add the following keys to your Info.plist file, located in /ios/Runner/Info.plist:
NSPhotoLibraryUsageDescription - describe why your app needs permission for the photo library. This is called Privacy - Photo Library Usage Description in the visual editor.
Checkout here
Anyone can pr for these issues
의존성 목록 3 개
{"sdk":"flutter"}^1.9.0{"sdk":"flutter"}사용 목적에 따라 검색하고 개발 활동을 비교한 뒤 원본 저장소에서 요구 사항을 확인하세요.
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗