1 2 Previous Next 44 Replies Latest reply: Mar 14, 2013 9:42 AM by mondain RSS

    Flash Player 11.2.202.228 no longer plays my audio flv

    ppongsclub

      After updating to the new flash player (version 11.2.202.228) audio only flv files no longer play.

      air3.2 update too.

       

      In the source code below:

      red5 server is used for audio recording and playback

      ns.play() does not run.

      But, there is no problem with recording [ns.publish()]

       

       

      /**NetConnection**/

      private function setupNC():void{

       

         myServer = "rtmp://ip";
         nc = new NetConnection();

         nc.connect(myServer);
         nc.client = this;
         nc.addEventListener(NetStatusEvent.NET_STATUS, netStatus1);
         nc.addEventListener(AsyncErrorEvent.ASYNC_ERROR, asyncErrorHandler);
         nc.addEventListener(SecurityErrorEvent.SECURITY_ERROR, securityErrorHandler);
         nc.connect(myServer);
      }

       

       

      /*** ns.publish ***/

      private function record_start():void{

       

         tbSoundFile = rndSoundFile(); //sound file

         initMic("0xff0000");
         ns = new NetStream(nc);
         ns.addEventListener(NetStatusEvent.NET_STATUS, netStatus2);
         ns.attachAudio(myMic);
         ns.publish(tbSoundFile, "record");
      }

       


      private function record_play():void{

       

         var myClient:Object = new Object();
         ns = new NetStream(nc);
         ns.addEventListener(NetStatusEvent.NET_STATUS, netStatus3);
         ns.bufferTime = 5;
         ns.client = myClient;

       

         myClient.onMetaData = function(myMeta:Object):void {
             myDuration = myMeta["duration"];

          }


          myClient.onPlayStatus = function(myPBstatus:Object):void{
              if(myPBstatus["code"] == "NetStream.Play.Complete"){
                  recordingState = "idle";
               }
           }

       

           mySoundFile = tbSoundFile;    //sound file

           ns.play(mySoundFile);     

      }

       

      private function netStatus3(event:NetStatusEvent):void {

       

           trace(event.info.description);   <<<<<<< (1)


            switch (event.info.code){
                  case "NetConnection.Connect.Success" :
                      ns = new NetStream(nc);
                      ns.attachAudio(myMic);
                      nc.removeEventListener(NetStatusEvent.NET_STATUS, netStatus);
                      break;
                  case "NetStream.Play.Failed" :     <<<<<<<<<<< (2)

                       record_stop();
                       break;
            }
      }

       

       

      Trace results for event.info.description (1):

        playing and resetting <file_name>

        Started playing <file_name>

        undefined

        undefined

       

       

      Trace results for event.info.code (2):

      Netstream.Play.Failed

        1 2 Previous Next