How to extract Dart/Flutter video metadata?

Posted by Editorial Staff | Updated on

Want to extract Dart/Flutter video metadata? You can use the VideoPlayerController.file constructor from the official video player plugin (which is maintained by the official google team so you don’t have to worry about its future and stability) to access the file and get the following meta after you install the package:

first this is your VideoPlayerController:

1. Duration:

2. Video Name, this should already be possessed with you as you can reach the file path and pass it to the player constructor.

3.Video Size:

4.As for when the video was taken I can’t help you with this. You have to find another way to figure it out.

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@] Your question and answer will appear on and help other developers.

Related Questions & Answers