Vid data reader/writer for flutter.
|
7 сар өмнө | |
---|---|---|
.vscode | 3 жил өмнө | |
lib | 7 сар өмнө | |
.gitignore | 3 жил өмнө | |
.metadata | 3 жил өмнө | |
CHANGELOG.md | 3 жил өмнө | |
LICENSE | 3 жил өмнө | |
README.md | 2 жил өмнө | |
pubspec.yaml | 2 жил өмнө |
Only support read VID file, not support write VID file. Carotid3D extended data is not support for now. Only support CanvasKit engine while running on web.
Add dependency in pubspec.yaml
dependencies:
flutter:
sdk: flutter
vid:
git:
url: http://git.ius.plus:88/Project-Wing/flutter_vid
var imageData = new VidUsImageData(vidData.buffer.asUint8List());
var frameRate = imageData.probe.frameRate;
var vidImage = imageData.getImage(i);
var image = Image.memory(vidImage.imageData);
Now, support using async way downloading and playing images from remote vid file.
var vidData = HttpVidUsImageData('https://localhost/test.vid');
//Must call initialize before geting data from HttpVidUsImageData.
await vidData.initialize();
var frameRate = imageData.probe.frameRate;
var vidImage = await data.getImage(index);
var image = Image.memory(vidImage.imageData);