I would like to implement feature like instagram story(only text overlay).
I was able to come to the point where user can add some text on video like screen shot below(upper right icon starts entering text, upper left just back to previous page).
After user put some text I want store the video into Firebase storage
.
But the problem is how can I keep this text in the video?
Is there any way to rewrite the file(re-encode) which has text overlay user put?
Or do I have to store text info into database then fetch it and display every time?
相关问题
- Flutter : Prepare list data from http request
- How to schedule an alarm on specific time in Flutt
- MappedListIterable is not a SubType
- 'firebase_messaging/FirebaseMessagingPlugin.h&
- What is the difference between generics and dynami
相关文章
- Observatory server failed to start - Fails to crea
- Flutter error retrieving device properties for ro.
- Adding Shadows at the bottom of a container in flu
- Flutter. Check if a file exists before loading it
- Flutter - http.get fails on macos build target: Co
- Receive share file intents with Flutter
- Do stateless widgets dispose on their own?
- How to clean your build with Flutter RP2 in Androi
I can only give a partial answer, I hope it helps anyway.
You can use a
PictureRecorder
to export a bitmap or png of aCanvas
in Flutter.The png image should have the same size as the source video, and you can overlay it over the video with a simple
Image
widget.You can also upload this png image to Firebase, then download it on other clients to get exactly the same appearance (even when fonts are not installed).
The cool thing is that you can even save things like hand drawings, stickers, gradients and complex shapes (everything you can draw on a canvas) in the png image.
I guess you could also use some kind native library to bake the png image into the video if that is a requirement.
Here is a simple example to show how to generate and display such a png image: