Skip to main content
October 15, 2010
Question

Recording of video and audio is asynchronous

  • October 15, 2010
  • 1 reply
  • 737 views

Hi,

I'm currently able to record audio and video (from a webcam) to a Flash Media Server. However, in some cases users have a webcam with no builtin

microphone. In that case the flash client uses the default microphone with 'Microphone.getMicrophone();' and possibly selects the micrphone of the PC.

A delay between audio and video is caused in cases with a separated webcam and microphone. There isn't a lot of delay on an internal network (e.g. LAN) however, there is a very large delay between audio and video on an external network (e.g. WAN).

Is there a solution to this problem? I know i'm not able to check if a webcam has a builtin microphone...

Thanks in advance,

Ferhat Yildiz

    This topic has been closed for replies.

    1 reply

    Participating Frequently
    October 16, 2010

    I think you can use Microphone.names - this will return names of all sound capture devices - now if this returns the name of your micrphone of your PC - you can choose to "not attach the microphone" to the netstream

    October 16, 2010

    How could I use this to make a distinction between a PC microphone and a webcam microphone (not just on my PC but possibly hundreds or thousands of PC's)?

    I've tested the Youtube webcam recording application with a separate microphone and webcam (for uploading webcam recordings to Youtube). I was amazed that they're able to record synchronous audio and video with a separate webcam and microphone. Is there an easy way to combine the two separate sources of input? I'm ofcourse using one NetStream object to send both audio and video.

    Regards,

    FY