90 Seconds Recorded, 6 Seconds Saved — The Traps That "Silently" Break A/V Sync and Recording in AI Avatars
A practical write-up, told as a debugging story, of three A/V sync and recording traps hit while building an unattended AI avatar livestream: separating mechanical offset from perceived lip-sync mismatch, correcting setInterval's cumulative frame drift against the wall clock, and MediaRecorder halting video along with audio when the audio track runs dry.



