1 Reply Latest reply on Jun 6, 2007 7:51 AM by ForceMorph

    Stream to Sound object

    scorpion219
      Hi,

      I have the below snippet

      stream = new NetStream(netConnection);
      stream.client = this;
      stream.play("FILE_NAME");

      which basically plays a stream located on my Flash Media Server.

      Instead of playing the flv file with the stream object, I want to make use of the Sound object , sth. like

      var request:URLRequest = new URLRequest(url);
      var s:Sound = new Sound();
      s.load(request);

      How can I achieve this, any snippets
        • 1. Re: Stream to Sound object
          ForceMorph
          You'd have to use an RTMP address, which the Sound object can't get to. I'm not sure if this is because of encoding problems or simple because rtmp can't be accessed that way. Also, a lot of the functionality of the SoundChannel object is lost (like any attempt at visualization) when streaming through FMS.

          I like how the LiveDocs list explicitly "stream through FMS" as one of the options for the Sound object, but offer no explanation of how to do so.