I'm developing an application that needs to work offline. And in it the user uploads a video that needs to be shown to him the moment he uploads it, as well as temporarily saved on the device so that, when the user connects to the internet again, the video is uploaded to the backend.
The closest solution I found so far was to save the media in base64 in an Appstate, and insert the necessary prefixes through a custom function for the app to recognize them as png/mp4. This solution works in Flutterflow's test mode, but the images are no longer displayed in the mobile version of the app (TestFlight).
I can't find any native solution or custom code on Flutterflow that allows the user to store the video on the device so that it is both displayed on the screen and stored.
I've already tried using "uploaded local file", but the FF video player doesn't accept playing files in Bytes format, only accepts the path.
I also tried saving the video in base64 in an App State. I managed to save it, but I still haven't been able to make any widget directly play a base64 video.
I also tried saving the uploadedFile's videopath to an App State, but that wasn't possible either because I didn't find enough logic.
Does anyone please know a possible solution for this? Thanks in advance.