PDA

View Full Version : Synchronizing playback of FLV and MP3 files - help needed


majidm
08-15-2005, 05:16 PM
Hey all,

I'm not sure if anybody's run into this situation before, but here's what I need to do. I need to record sound using a microphone and play it back with music in the background (basically a karaoke box). However, I'm having difficulties synchronizing the FLV (recorded voice) to the MP3 (pre-existing sound). What can I do to improve sync?

- I tried using setBufferTime to set it to 30 seconds (my FLV's length is 15 seconds, so it SHOULD have prebuffered it) - but that didn't work;

- I tried using an onLoadComplete handler for the MP3 loading, and flag the MP3 as NON-streaming, and start playback of both after the MP3 has done loading ... that didn't help;

What can I do at this stage? I realise that I probably can never have PERFECT sync, but I want to try at least...

- can I convert my MP3 to FLV, and real-time mix them on playback?
- can I somehow record the voice to FLV and then somehow superimpose it on my MP3?

I don't mind wasting the space, I just want it to work.

Any ideas appreciated.