Skip navigation
afukada
Currently Being Moderated

Audio capture using AMS Standard

Aug 16, 2013 11:24 AM

Tags: #live #streaming #rtmp #record #5.0.1

I'm trying to capture audio from a mic and save on an AMS server running AMS Standard.

I can make a connection without problems with "rtmp://server_name/live", but when I try to start recording audio with

 

  mic = Microphone.getMicrophone();

  mic.rate = 44;

  mic.gain = 100;

  mic.setSilenceLevel(0);

 

  try {

        nsPublish = new NetStream(nc);

        nsPublish.addEventListener(NetStatusEvent.NET_STATUS, netStatus);

        nsPublish.attachAudio(mic);

        nsPublish.publish("recordTest", "record");

   } catch(error:Error) {

       setStatus(error.toString());

       return;

   }

 

I get the following error: Application doesn't have permissions for server-side record/append of streams; access denied to stream recordTest.

 

Can anyone tell me why and how to fix it?

 

Thank you!

 
Replies
  • Currently Being Moderated
    Aug 19, 2013 5:12 AM   in reply to afukada

    Hi

    For record, use rtmp://server_name/livepkgr instead of rtmp://server_name/live

    Hope that helps

    Karishma

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points