Skip to main content
Inspiring
March 13, 2009
Answered

audio dropping from recorded stream during playback

  • March 13, 2009
  • 6 replies
  • 769 views
NOTE: I posted this same question on the Adobe Groups FMS Users page.

I am using Stream.play() on the server side to set up a hub to switch between live streams and recorded streams. Basically, I have a live video stream that we want to switch in a recorded segment (flv) at the end of which we go back to the live stream. Both the live stream and the recorded stream are at the same data rate.

I'm following the code samples from:

http://livedocs.adobe.com/flashmediaserver/3.0/hpdocs/help.html?content=00000386.html

The problem I'm having is that the audio starts for the recorded segment but goes silent after the first 2-3 seconds of audio. This happens every time the clip is played. This clip plays fine when linked to directly, without being part of the hub system using Stream.play(). I have tried this with several recorded segments with the same result.

Has anyone seen this happen before?
    This topic has been closed for replies.
    Correct answer michael_penwell
    OK... it turns out I was doing something wrong.

    In the code above, I was setting the reset param for "shortDemo" to false. In order for this to work, I was calling application.mainStream(false) prior to this call. This forced the stream to stop prior to playing the "shortDemo". This caused all sorts of problems listed above.

    To fix this, I set the reset param to true for "shortDemo" and removed the stream(false) call. The results is that the clips all play as expected now.

    Thanks you so much for your help/suggestions. It is appreciated.
    - michael

    6 replies

    michael_penwellAuthorCorrect answer
    Inspiring
    March 19, 2009
    OK... it turns out I was doing something wrong.

    In the code above, I was setting the reset param for "shortDemo" to false. In order for this to work, I was calling application.mainStream(false) prior to this call. This forced the stream to stop prior to playing the "shortDemo". This caused all sorts of problems listed above.

    To fix this, I set the reset param to true for "shortDemo" and removed the stream(false) call. The results is that the clips all play as expected now.

    Thanks you so much for your help/suggestions. It is appreciated.
    - michael
    March 17, 2009
    Hi Michael,

    Yes, these config parameters were supported in 3.0. Did you set <AggregateMessages enabled="false"></AggregateMessages> in the Application.xml file?

    Also, you could try setting a higher buffer time: Stream.setBufferTime().

    Jody
    Inspiring
    March 16, 2009
    Thanks for the suggestion Jody. Would this work in 3.0.3 as I am not on 3.5 yet? I tried adding this to the fms.ini for 3.0.3 and nothing changed. It may also be worth noting that I am having the issue even with only a single user connected.

    When the client sends a message to the server to play my "demo" the server calls the following lines of code:

    application.mainStream = Stream.get("foo");
    application.mainStream.play("shortDemo", 0, -1, false, application.myVODConn);
    application.mainStream.play("liveEncoderVideo", -1, -1, false);

    This should switch from the currently playing "liveEncoderVideo" stream to the "shortDemo" and then back.

    The myVODConn is getting set up right as I can see the demo but again the audio just drops out after 2-3 secs. I also tried to use the AdobeBand sample files and I get the same thing.
    March 16, 2009
    Inspiring
    March 16, 2009
    I upgraded my Flash player today to 10.0.22.87 - same problem
    I also upgraded my FMS install to 3.0.3 - same problem

    Also of note is that I have downloaded the Adobe Flash Media Interactive Server Feature Explorer AIR application and when I run the Streaming/Switch Streams example, the audio of both the Train and the Sequence videos drop after a second or two.

    My next step is to try installing FMS on a new, clean box to see if this is an issue with my installed FMS version.

    Any other thoughts?

    Thanks, - michael
    March 14, 2009
    What is the flash player version where you observe audio going silent?
    Inspiring
    March 14, 2009
    Player 10 debug version... 10.0.12.36

    So it looks like this isn't the most recent version. I'll try on Monday to update that and see if that fixes the issue.