7 Replies Latest reply: May 17, 2012 11:29 PM by SE_0208 RSS

    Audio Recording Working Sporadically Since 4.5 Upgrade

    mrwizzer2 Community Member

      The audio recording feature we've built into one of the activities on our educational website has been faultering since our recent upgrade to FMS4.5 .

       

      We're using the "publish" feature of NetStream.

       

      It seems to work fine for a while, then it stops working.

       

      Has there been a change in the 4.5 update that may be the cause?

       

      Is anyone else having this problem?

       

      Thanks,

       

      Mike

        • 1. Re: Audio Recording Working Sporadically Since 4.5 Upgrade
          SE_0208 Adobe Employee

          If it has been working on past - there is no reason why it should not be working now. Can you elaborate more of what are you trying to publish - what Codec are you using, what encoder (I suppose its FP - if so which version of FP) and which OS (client/server) are you on?

          • 2. Re: Audio Recording Working Sporadically Since 4.5 Upgrade
            mrwizzer2 Community Member

            Thanks for your response, SE_0208. 

             

            We're simply attaching audio that's incoming via the user's microphone to an instance of the NetStream class, which show up as .flv files in the application's "recordings" directory.  Code snippet as follows:

             

                 var nsRecord:NetStream = new NetStream(ncRecord);

                 nsRecord.setBufferTime(2);

             

                 var mic:Microphone = Microphone.get();

                 mic.setRate(11);

                 mic.setSilenceLevel(1);

                 mic.setUseEchoSuppression(true);

             

                 nsRecord.attachAudio(mic);

             

                 function playRecordedAudio():Void {

                        nsRecord.play(fileName);

                 }

             

            It's worked without a hitch for three years, (and we get 10,000 visitors a day), but ever since we updated to FMS 4.5, it'll work fine for a day or two, then it suddenly stops recording the files.  (No new files show up in the recordings directory). 

             

            One clue, in case it helps, is that when the problem arises and it quits working, the Flash Media Administration Console shows a huge number of Active Clients, (1000+).  When it's working fine, that number is significantly smaller, (around 20).   I'm wondering if it's failing to recognize when users have disconnected, thus accumulating and maxing out on Active Clients and crashing the application.  

             

            Your thoughts?


            Thanks,

            Mike

            • 3. Re: Audio Recording Working Sporadically Since 4.5 Upgrade
              mrwizzer2 Community Member

              By the way, that's 20 Active Clients showing on that particular application.  The same website uses the FMS to deliver videos, and the Active Clients average between 250 and 300.  (that application is working fine).

               

              We can fix the problem temporarily by using the "Reload this application" button on the FMS Administration Console -- that gets the application working again.  But we obviously can't be monitoring it 24 hours a day, and since the website is used heavily by users all around the world, we need it to be running smoothly 24/7.   

               

              If we can't find a solution as to why it's happening with the new version of the server, is there a way to schedule an automatic Application Reload?

              • 4. Re: Audio Recording Working Sporadically Since 4.5 Upgrade
                mrwizzer2 Community Member

                *BUMP*

                 

                Hoping to get a little support advice here soon.  Our site gets 700,000 hits a day, and the complaints are pouring in in wheelbarrows.

                 

                Thanks,


                Mike

                • 5. Re: Audio Recording Working Sporadically Since 4.5 Upgrade
                  SE_0208 Adobe Employee

                  Sorry have been busy with other work so have not got time to look into this - so very sorry about it. It might take sometime for us to repro it at our end and though i would not like you to go that way but since you ask for workaround in terms of reload i would suggest how to do it.

                   

                  You can just write small server-side or client-side application which would reload the application after fixed time interval(which you need to figure out - what works for you or fits this case). The way to do it is to use "reloadApp" Admin API - you can find details here : http://help.adobe.com/en_US/flashmediaserver/adminapi/WSa4cb07693d12388431df580a12a34991eb c-8000.html#WS5b3ccc516d4fbf351e63e3d11a0d3edb98-7ff6AdminAPI

                  • 6. Re: Audio Recording Working Sporadically Since 4.5 Upgrade
                    mrwizzer2 Community Member

                    Hi SE_208,

                     

                    Thanks for the link, I'll check it out.   One question... is there a way to revised the above code so that the restart would occur only once the number of Active Connections rises to a certain level?  I've noticed that the number of Active Connections rises to a huge number whenever the application breaks down, so it would be great to have the restart respond to that instead of on a timed basis, which would kick off connected users when it may not be necessary.

                     

                    Thanks again,

                     

                    Mike

                    • 7. Re: Audio Recording Working Sporadically Since 4.5 Upgrade
                      SE_0208 Adobe Employee

                      Yes you can use other Admin API command (getAppStats) to check active connections for particular application - see here: http://help.adobe.com/en_US/flashmediaserver/adminapi/WSa4cb07693d12388431df580a12a34991eb c-8000.html#WS5b3ccc516d4fbf351e63e3d11a0d3edb98-7ffeAdminAPI

                       

                      So what you can do is set up timer to call a function after designated time interval and issue above command - check Active Connections and then call reloadApp

                       

                      I have asked my teammate to look into original issue - i'll see he got to it. Sorry again and thanks for having patience. Hope above workaround atleast temporary allows some time to breath for you,