Skip to main content
Inspiring
December 20, 2006
Question

Strange increasing latency when streaming

  • December 20, 2006
  • 2 replies
  • 350 views
Hi all,

I have a quick question about something weird I am experiencing when streaming live media. I hope somebody can help.

I have written a two very simple Flash clients: one captures video from the webcam and streams it to FMS2.0, the other is used to view that video stream. The NetStream on the viewer client has a 2-second buffer.

The weird part is if I run both clients on the same computer the viewer client falls farther and farther behind the capture client. Eventually it is playing video that was captured hours previously. For some reason it is not playing the video as fast as it is being captured (I have set the capture frame rate at 15 fps).

This only happens (so far) when both clients are running on the same computer. It happens whether I run them via the Flash IDE or in a browser. Everything works great when I stream between two different computers.

Both clients are extremely bare-boned and don't do anything complicated. (they were copied from examples in the official Macromedia course for FMS2.0). The FMS application doesn't contain any code at all.

Any and all suggestion are much appreciated!


Thanks,
Barry
    This topic has been closed for replies.

    2 replies

    Barry_FAuthor
    Inspiring
    December 20, 2006
    More updates (thanks for your patience):

    It happens with some computers and not others. There is no pattern. I am using the same FMS in every case. Sometimes there is increasing latency and sometimes the streaming is perfect.

    Thanks in advance.
    January 29, 2007
    Hi Barry,

    Did you get anywhere with this? I'm interested to see how it turned out.

    TIA
    -SR
    Barry_FAuthor
    Inspiring
    December 20, 2006
    Important update: It turns out that it does also happen when streaming between different computers. :(