0 Replies Latest reply on Sep 27, 2012 11:06 PM by davinny

    how to publish a local audio stream using NetStream?


      As all we know, if we want to publish a stream to FMS or Red5, we can code like below:


      var nc:NetConnection = new NetConnection();
      var ns:NetStream = new NetStream(nc);
      ns.publish("audio", "live");


      my problem is that we can pass an instance of Microphone to ns.attachAudio() only, if I want to attach a local audio stream,like playing a local sample.flv file to become a audio stream, how can I do?


      this issue has been asked 7 years ago, see the post. but i can not find any solutions.


      any tips will be appreciated. thx in advance.