Skip to main content
Participant
December 7, 2006
Answered

Streams not recording

  • December 7, 2006
  • 2 replies
  • 280 views
I'm new to FMS, so hopefully this problem has a simple answer. I'm recording video streams using a simple call to NetStream.publish('path', 'record'). It was working fine a few days ago, but now it's not and I'm not sure why -- it seems that everything is fine on the client, but no FLV files are appearing on the server.

Tracing out the status event from NetStream:

-- status --
description,Connection succeeded.
code,NetConnection.Connect.Success
level,status
-- status --
clientid,112165952
description,test is now published.
code,NetStream.Publish.Start
level,status
-- status --
clientid,112165952
description,Stopped recording test.
code,NetStream.Record.Stop
level,status
-- status --
clientid,112165952
description,test is now unpublished.
code,NetStream.Unpublish.Success
level,status

The server log just says a connection has taken place. The weird thing is that In the console, under "streams", it lists the stream name but says its type is "live" even though I passed "record" to NetStream.publish().

My application's directory (program files/macromedia/flash media server 2/applications/photobooth) is completely empty.

I've tried restarting the server and the computer and everything.

Does this sound familiar to anyone? Thanks.
    This topic is closed to new replies. Start a new post to keep the conversation going.
    Correct answer endquote
    Problem solved -- I was calling Camera.setQuality with dimensions that were too large for the camera I am using (though not too large for a different camera I was using). It would sure be nice to be able to get a list of valid modes of a camera.

    2 replies

    endquoteAuthorCorrect answer
    Participant
    December 7, 2006
    Problem solved -- I was calling Camera.setQuality with dimensions that were too large for the camera I am using (though not too large for a different camera I was using). It would sure be nice to be able to get a list of valid modes of a camera.
    endquoteAuthor
    Participant
    December 7, 2006
    I noticed in the above that I am not getting a NetStream.Record.Start event, but I'm getting NetStream.Record.Stop. Weird, right? Here is my client-side code:

    __connection = new NetConnection();
    __connection.onStatus = Delegate.create(this, onStatus);
    __connection.connect(APP_URL);

    __output = new NetStream(__connection);
    __output.onStatus = Delegate.create(this, onStatus);
    __output.attachVideo(__camera);
    __output.publish('test', 'record');

    Later...

    __output.close();