Skip to main content
Participant
October 5, 2010
Answered

Recording not in proper location

  • October 5, 2010
  • 1 reply
  • 511 views

I'm trying to record an audio/video program and the resulting .flv is in the wrong directory.  It always ends up in application/live.  I copied the sample application to application/eTutor and have the following code:

private var rtmpPath:String = "rtmp://x.x.x.x/eTutor";
private var rtmpSession:String = "0_738_0_9_6_6_2012_8_00_00_AM";

...

   nc2.addEventListener(NetStatusEvent.NET_STATUS,onFMSNetStatus);
   nc2.client = this;
   nc2.connect(rtmpPath2 + "/" + rtmpSession);
...

   case "NetConnection.Connect.Success":
    ns2 = new NetStream(nc2);
    ns2.client = this;
    ns2.addEventListener(NetStatusEvent.NET_STATUS,onFMSNetStatus);
    ns2.attachAudio(mic);
    ns2.attachCamera(cam);
    ns2.publish("LS" + hostCallCount.toString(),"record");

The .flv always ends up in application/live... why?

sr

    This topic has been closed for replies.
    Correct answer SE_0208

    I suppose you must have copied entire folder of live and renamed it. The reason why its getting recorded in "live" is because your application folder have Application.xml and it has virtual directory setting which points to ${LIVE_DIR } which in turn points to "live" folder.

    Now if you want recordings to happen in your application folder namely eTutor, you can configure Application.xml to point your folder.

    i.e. if your application is present at following location: C:\Program Files\Adobe\Flash Media Server\applications\eTutor then make following changes to Application.xml

    <Streams>C:\Program Files\Adobe\Flash Media Server\applications\eTutor<\Streams>

    1 reply

    SE_0208Correct answer
    Participating Frequently
    October 5, 2010

    I suppose you must have copied entire folder of live and renamed it. The reason why its getting recorded in "live" is because your application folder have Application.xml and it has virtual directory setting which points to ${LIVE_DIR } which in turn points to "live" folder.

    Now if you want recordings to happen in your application folder namely eTutor, you can configure Application.xml to point your folder.

    i.e. if your application is present at following location: C:\Program Files\Adobe\Flash Media Server\applications\eTutor then make following changes to Application.xml

    <Streams>C:\Program Files\Adobe\Flash Media Server\applications\eTutor<\Streams>

    Participant
    October 5, 2010

    OMG... I'm an idiot!   Yes, you are quite correct.  I took out the streams name completely and it's saving the .flv in the proper location.  Thanks for the reply.

    sr

    Participating Frequently
    October 5, 2010

    Hey Steve, we all have our idiotic days - so we all belong to same group

    Glad that it solved your problem