// TODO: I moved the sample timeline data to a dedicated file, and delayed the loading to 1 sec with useEffect. as such, alot of the ogics are broken. I need to make sure the delayed timeline should work like normal /** * ======================================== * VIDEO EDITOR SYSTEM ARCHITECTURE OVERVIEW * ======================================== * * This VideoEditor component is the core orchestrator of a multi-video timeline editing system. * It manages synchronized playback of multiple video elements with precise timing control. * * SYSTEM FLOW: * * 1. INITIALIZATION PHASE: * - Loads timeline data (delayed by 1s to simulate async loading) * - Creates HTML video elements for each timeline video with multiple source formats * - Loads poster images and calculates optimal scaling/positioning for canvas * - Sets up cross-component event communication via MittContext * * 2. VIDEO SETUP PHASE: * - For each video: creates