Skip to main content
Known Participant
January 15, 2007
Question

Audio prioritization over Video with webcams

  • January 15, 2007
  • 1 reply
  • 376 views
Apparently FMS automatically prioritizes audio over video in a webcam conversation. In my experience this doesn't really happen. In my app, possibly due to bandwidth limitations, webcam stream runs with a delay of a few seconds (starts ok, but the delay grows as the conversation continues). When the delay happens, audio is synced with the webcam stream. I can live with seeing a video delay of a few seconds (or lower quality or even totally interrupted), but I certainly don't want that to happen to the audio.

Is there something that I need to do for FMS to limit the video stream in favour of keeping audio as close to "live" as possible. Right now, video lags and audio is always synced with it.
    This topic has been closed for replies.

    1 reply

    January 15, 2007
    If you're using 1 netstream with with audio and video attached to it then try using 2 seperate netstreams ; 1 for audio and 1 for video.

    Or the other way around if you're now using 2 netstreams, try to use a combined one.

    fyi Live Videostreams will always lag because your flash players has to buffer some webcamimages before it can send them to the FMS server and the FMS server has to buffer a few incoming images before it has enough "images" to send them to other clients. In practise you will always see a "delay" of 3 seconds of more.

    You could play a bit with timeouts of the buffer (see docs) etc to let viewing clients show the stream as fast as possible but that has a negative impact on (smooth) playback.
    January 15, 2007
    I hear what Daniel is saying. FMS_Developer this is great feedback, but can you or can anyone else in the community or at Adobe that can help define the FMS configuration and AS elements that need to be tweaked (read as "set") to help FMS developers quickly get past what should be a simple set up in their app rather than a science project or a guessing game?

    (e.g. Here are the items to consider - Network (User (Bandwidth) to Server to (Bandwidth)Users) and based on these connections if are you trying to achieve near real time audio / video communication there is a balance between video / audio quality, the number of connections and the amount of dropped packets. Here are the AS items and FMS files to tweak and why. 1) NetStream.setBufferTime() on the Client and the Server 2) Client.setBandwidthLimit( ), NetStream.currentFps, etc. The NetStream.setBufferTime() is important helps you to … )

    I found the same thing as Dan – I cannot find the FMS configuration and AS elements that need to be tweaked spelled out anywhere in a single spot towards easily understanding how to proceed with audio / video chat apps.

    Can anyone in the community or at Adobe that can help define the FMS configuration and AS elements that need to be tweaked (read as "set") to help FMS developers quickly get past what should be a simple set up in their app rather than a science project or a guessing game? Or do you know of any resource on the net that would assist?

    Thanks in advance
    -SR