A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: capture frame from stream?

  1. #1
    Member
    Join Date
    Aug 2001
    Posts
    42

    capture frame from stream?

    I would like to be able to capture a single "frame" of a users local video source (webcam usually) and send just that frame back to the other clients viewing the stream. So that you get a sequence of captures over time, not a single stream with one frame which updates over time.

    Is it possible for flashcom (or flash itself) to grab just one frame from a live stream and save it as a single-framed-flv or jpeg?
    ---------------------

  2. #2
    psx = new Moderator();
    Join Date
    Jan 2001
    Posts
    923
    Flash/flashcom alone can't save the frame as a jpeg, but you can use flashcom to save it as a separate, 1-frame flv file, using server-side code:

    Code:
    var snap = Stream.get("singleFrame");
    snap.play("liveStreamName", -1, 1);
    snap.record();
    Then to view the snapshot, simply play "singleFrame" on the client-side.

    psx

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center