Skip to main content
Known Participant
November 22, 2010
Question

Any way to start buffering and fetch meta without .play()?

  • November 22, 2010
  • 1 reply
  • 469 views

I want to get the meta from an FMS server and start buffering (really I just want the first frame).  Is there any way to do this other than calling play() and waiting for meta to call pause?

    This topic has been closed for replies.

    1 reply

    Inspiring
    November 23, 2010

    When you say you want to the first frame, do you mean you want the metadata frame first or do you want the metadata and the first video frame? Also which FMS edition are you using?

    tehxike1Author
    Known Participant
    November 23, 2010

    "the metadata and the first video frame" << this

    I'm using FMS 3.5.3.

    I do play/pause to force NetStream to receive the meta for the video I'm playing.  This is critical to get the duration, framerate, etc.  An added bonus of this is the video will fill bufferTime and I get the first frame of the video.  It's extremely hack'ish though- I can't call pause() until my metaHandler is called, so I have to set a flag indicating that when meta is received, the stream should be paused and seek back to the initially requested time.  The quick play/pause/seek hack even breaks NetStream sometimes, confusing it into thinking that NetStream.time = 4294967.261 or 4294967.295.