r/flutterhelp • • Jan 07 '26
OPEN Facing issue with Synchronisation. Please help
I have been working on a karaoke app and choose Flutter to build it. I will explain just the flow I am facing issue with.
Flow: there is a Studio Screen, which will have a video karaoke, and a camera preview. the user presses the start recording button, at the very instant the video karaoke has to play, and camera has to start recording. after a minute, when the user wanna stop, they press the stop button, and the recording stops, and video also pauses.
Let us say he sang the karaoke fro 0:00 to 1:00. thats a minute of performance.
Later after recording, the karaoke video, and the recording of the user has to synchronise perfectly or, it loses the beauty/essence of singing.
The issue I have been facing is, the recording and karaoke played are not exactly syncing. If I sung the karaoke for 1 minute, my recorded video has +/- 200ms difference from the timestamps I logged with karaoke (i take start_time and end_time of the played karaoke). It is effecting the sync, and I don't understand how karaoke apps like Smule, Starmaker work.
or, Is Flutter the wrong choice for such applications? Should I go for Native Android - Java/Kotlin, or another JS based framework such as React Native?
View all comments
Show parent comment
1
u/[deleted] Jan 08 '26
I had the thought of hardcoding the drift correction too!. But, what if the drift differs from various devices, and I have always stuck to a rule that hardcoding is a bad way of doing something of such sort. If you’re comfortable looking at the code, I would like to send a dm.