2

I am using a combination of video_player and chewie packages in flutter to play a video in my app.

The documentation does not tell anything about video frames, so I was wondering if anyone has a method to get the current playing frame on a playing video. Or if that is even possible.

creativecreatorormaybenot
  • 114,516
  • 58
  • 291
  • 402
codeKiller
  • 5,493
  • 17
  • 60
  • 115
  • Not sure if you can do this but there is a way to take a screenshot of the widget, https://stackoverflow.com/questions/51117958/how-to-take-a-screenshot-of-the-current-widget-flutter this might help as a work around – Andres Castro Aug 13 '19 at 19:50
  • Do you mean an `Image` or an `int`? Either way, I think that you should [file an issue for `video_player`](https://github.com/flutter/flutter/issues/new?assignees=&labels=&template=feature_request.md&title=[video_player]%20%3CTitle%20here%3E) because it does not expose it at the moment. – creativecreatorormaybenot Nov 01 '19 at 13:18
  • @creativecreatorormaybenot I wanted to get the frame number, so probably an int, however, as you mentioned, this is not exposed at the time of this writing...so I had to make some maths to...more or less....get the frame number.....good enough if no other better solution available. – codeKiller Nov 04 '19 at 07:45

0 Answers0