Skip to main content
Participant
January 12, 2009
Question

Stream live audio

  • January 12, 2009
  • 1 reply
  • 614 views
Hi,
I would like to develop a chat with voice.
I found several examples of stream live audio-video, but just want audio.
What search?
    This topic has been closed for replies.

    1 reply

    January 12, 2009
    The principle is the same, just don't attach a camera to the publishing netstream.
    Participant
    January 12, 2009
    quote:

    Originally posted by: JayCharles
    The principle is the same, just don't attach a camera to the publishing netstream.


    It is truth!
    But, the sequence for reading the incoming stream, then, would be:
    //Stream In
    nsIn=new NetStream(nc);
    nsIn.play("");
    vidStream.attachNetStream(nsIn);// vidStream:Video

    Attach the stream to the video object.
    I just want attach to the Audio.

    I am mistaken?



    Participating Frequently
    February 4, 2009
    Publisher client:
    var p:NetStream = new NetStream(nc);
    p.publish("audio");
    p.attachAudio(Microphone.getMicrophone());

    Subscriber client:
    var s:NetStream = new NetStream(nc);
    p.play("audio");

    Audio will start play automatically.