Flutter VideoPlayer from bytes

Viewed 58

I am trying to build an application in which the backend generates a short video and returns it as a file in the response. In the Flutter frontend i am parsing the response object to get the bytes representing the video. Using these bytes, I would like to create a Video Player.

Here's my question: How can I initialize the VideoPlayerController the byte array I received from the response?

According to the docs, VideoPlayerController.file() is not working as that would require dart.io which is not available on web. This only leaves me the network or asset options.

0 Answers
Related