Recording Audio Stream using Adobe Flash Media Server


Recording live microphone audio content is one of the great feature provided by Flash Media Server. This articles will guide you on how we can record Microphone Audio at runtime using Adobe Flash Media Server.

NOTE:

  • Will be using microphones to accept users audio content, will content will get publish on Flash Media Server
  • Also the Files published will be of FLV format so that files can be streamed by FMS


Code Explanation:

  • NetStream class is responsible for playing the FLV files and here we are using this class to attach the Audio content from the MicroPhone and publish the FLV file out of it
  • Microphone.get() function is required as it will show a popup window asking user to allow Microphone access to Flash, if yes then mic variable holds the object of your Microphone
  • recordAudio() function is responsible for recording the Audio content from the Microphone. Here it stores all the audio content inside Hello.flv file. Also “record” is required to tell the NetStream Class to record the audio content
  • stopRecordingAudio() function is responsible for publish the audio content and store it on the server
  • playRecordedAudio() function is responsible for playing the recorded audio content
Tagged . Bookmark the permalink.

8 Responses to Recording Audio Stream using Adobe Flash Media Server

  1. Raffaele says:

    haha ^^ nice, is there a section to follow the RSS feed

  2. Danny D says:

    Thanks!

    Do you know of any as3 code examples for this stuff?

    Cheers

  3. Irfan Ahmed says:

    Hi,

    Have you been able to post a AS3 example of recording audio file on server?

    It is correct that AS3 can save audio files without having Media Server at the backend on server?

    Need your help in this regard. Thanks in advance.

    I am looking for a scenario:

    I am facing a scenario where I would like the user of my page record their voices from their login where they

    will purchase certain minutes for recording and as well as for listening.

    How do I manage the audio frames sent back to the server? Is that possible to only stream audio for a length of

    10 minutes, while actual length of audio is 1 hour?

    Questions:
    - Do I have to write or develop a flash player completely?
    - Is there any already developed solution?
    - Do I have to use Media Server in this scenario?

    Waiting for the response. Thanks in advance.

  4. Irfan Ahmed says:

    Hi,

    Have you been able to post a AS3 example of recording audio file on server?

    It is correct that AS3 can save audio files without having Media Server at the backend on server?

    Need your help in this regard. Thanks in advance.

    I am looking for a scenario:

    I am facing a scenario where I would like the user of my page record their voices from their login where they

    will purchase certain minutes for recording and as well as for listening.

    How do I manage the audio frames sent back to the server? Is that possible to only stream audio for a length of

    10 minutes, while actual length of audio is 1 hour?

    Questions:
    - Do I have to write or develop a flash player completely?
    - Is there any already developed solution?
    - Do I have to use Media Server in this scenario?

    Waiting for the response. Thanks in advance.

  5. syaam says:

    How to save recorded file as mp3? Can u have some any pointers regarding that?

  6. seo experts says:

    seo experts can get the streaming service widely available to the web easily.

  7. Contus says:

    Excellent tutorial. Just wanted to say thanks for taking the time to write it! :)

Leave a Reply