Replies: 1 comment 3 replies
-
I think Remotion would be a great fit for this! I also thought about building this. The JSON would be the input props. |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
My goal is to create a simulation/demo of a whatsapp style chat thread that is driven by a JSON file and constructed (and repurposed) on-the-fly. I am thinking that Remotion could be a good fit?..
The concept
You have 2 users that have a conversation over time. The speech bubbles within the thread would animate into place. The first user's speech bubbles would appear on the left and the second user on the right. The thread playback would pause between messages until the conversation ends.
JSON to drive a chat thread
Here's some dummy JSON that I think is a good starting point:
So over time a conversation between Sam and Christina would take place. The duration of the video would be based on the totalled duration of items in the thread property. Simply by switching out this JSON data, you could make a new conversation example with a thread duration as long as necessary.
A dynamic non-linear timeline?
With the above example, the thread array and its inner objects would not just drive the duration, but also the structure. Based on the type of thread event, the message content and the user speaking at the time, the threads visuals would be built over time.
Questions
Is the above feasible within Remotion? I see you can control duration, but am wondering about controlling the structure of the composition based on the configuration of the thread array data.
Thanks very much!
Beta Was this translation helpful? Give feedback.
All reactions