Skip to main content
Known Participant
January 12, 2009
Question

FLV playback stopping early

  • January 12, 2009
  • 2 replies
  • 976 views
I have an intermittant problem with FLV playback. I am using FMS 3.0.1r123 and FLVPlayback component to play RTMP streams that have been recorded using a webcam via RTMP.

Maybe 1 in 10 recordings will not play back the last couple of seconds of the movie. A day or two later they are fine and play completely! I have made some tests;

1. Using Video object instead makes no difference (it seems the Event.COMPLETE message arrives early)
2. Using HTTP playback fixes the problem (but I want to try and keep the RTMP playback if possible though but I guess this is one way out)
3. The duration before the movies plays back properly seems to vary but is always at least 24 hours later (is that weird or what?)
4. Seeking past the 'end' will play the last couple of seconds.
5. The metadata duration reported at the start is correct (but how can you force FLVPlayback to use this length?)

any clues greatly appreciated

Andi Freeman
correspondent.com
    This topic has been closed for replies.

    2 replies

    Participating Frequently
    April 23, 2010

    Maybe 1 in 10 recordings will not play back the last couple of seconds of the movie.

         How are you concluding that last couple of seconds are not played back - is it on visual inspection?

    1. Using Video object instead makes no difference (it seems the Event.COMPLETE message arrives early)

         Are you speaking about "NetStream.Play.Stop" - is yes, why you say its early?

    3. The duration before the movies plays back properly seems to vary but is always at least 24 hours later (is that weird or what?)

         I did not get what did you mean by this?

    4. Seeking past the 'end' will play the last couple of seconds.

         How are you concluding that they are last couple of seconds and what is inside the buffer?

    5.The metadata duration reported at the start is correct (but how can you force FLVPlayback to use this length?)

         You don't have to force anything, it ideally plays the whole file for entire duration mentioned in metadata.

    Let me know still if you are running into issues.

    Known Participant
    January 13, 2009
    I have cross checked this problem using the sample AS3 player on the Adobe Developer Centre (Bill Sanders Finite State Machine exmple) and the same thing is happening. The NetStream.Play.Stop is being sent early. Has anyone else encountered this problem before?
    Known Participant
    April 22, 2010

    I have the same problem...