Skip to main content
Known Participant
Nov 22, 2010 7:33 PM UTC
Question

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

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 is closed to new replies. Start a new post to keep the conversation going.

    2 replies

    Inspiring
    Nov 23, 2010 10:35 PM UTC

    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?

    Translate
    tehxike1Author
    Known Participant
    Nov 23, 2010 10:41 PM UTC

    "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.

    Translate