Skip to main content
Participant
March 24, 2011
Question

FMS 4 / AS3 - FLV not saving

  • March 24, 2011
  • 1 reply
  • 517 views

Hi,

I'm really hoping someone can help me, as I'm under a tight deadline, going crazy, and not sure what is going on.

I'm trying to record video from the users webcam and play it back at a later date.

I call

__ns.publish(__fileID, "record");

to start recording. To stop recording i was calling __ns.publish("false"); but that didn't seem to be closing the nets stream properly, so now i'm trying

__ns.publish(null);

__ns.close();

that appears to be working.

However, when I look at the FMS Admin Console at the streams in app/_definst_, their types are either "NetStream" or "Live". If they were being saved wouldn't they say "Stored"? After I close the application doing the recording, the "NetStream" type stream disappears, and after a while all the "Live" typed streams are gone too. Nothing is saved.

I have no idea what is happening. I don't know if it's a problem with my AS3 code not closing the recording properly or if I'm doing something else wrong, or maybe somethgin isn't right in the FMS?

Does anyone have any info that could help?

Thanks!!!

    This topic has been closed for replies.

    1 reply

    Participating Frequently
    March 25, 2011

    If I am not mistaken there is no concept of ns.publish("false") in AS3 - so that's the reason it was not working at first place.

    I think its enough to do _ns.close() (i dont know whether ns.publish(null) has any effect at all)

    Coming to second point, of recordings not happening. I would be interested in knowing two things:

    1. What edition of FMS you have (Admin Console -> Manage Server - > License tab - you should see edition here)
    2. What is the application you are using - is it "live" or "vod" or custom application