Skip to main content
Participant
Oct 5, 2010 1:15 AM UTC
Answered

Recording not in proper location

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 is closed to new replies. Start a new post to keep the conversation going.
    SE_0208Correct answer
    Participating Frequently
    Oct 5, 2010 4:10 AM UTC

    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>

    3 replies

    SE_0208Correct answer
    Participating Frequently
    Oct 5, 2010 4:10 AM UTC

    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>

    Translate
    Participant
    Oct 5, 2010 11:00 AM UTC

    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

    Translate
    Participating Frequently
    Oct 5, 2010 11:03 AM UTC

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

    Glad that it solved your problem

    Translate