6 Replies Latest reply on Dec 22, 2013 5:47 AM by JPspecial

    Firefox not playing OGG audio

    amber_abb

      I have created ogg files by simply saving mp3 files "save as" ogg. But firfox is still not playing. They were playing 2 weeks ago so Im confused whether firefox changed something.

       

      Following is my code. Please let me know if I had to save ogg files in some specific sample rate or something

       

      // creation complete

      try {

          yepnope({

              load: "http://cdn.edgecommons.org/an/1.0.2/js/min/EdgeCommons.js",

              callback: function() {

       

          var assetsPath = "wp-content/uploads/audio/";

       

       

          EC.Sound.setup(

               [

                      {src: assetsPath + "bgMusic.mp3|" + assetsPath + "bgMusic.ogg", id: 'bgMusic'},

                      {src: assetsPath + "click.mp3|" + assetsPath + "click.ogg", id: 'click'},

       

               ],

               function(){ EC.info("Sound setup finished", "Sound with Edge Commons"); }

          );

       

       

                  }

          });

      }

       

      catch(error) {

          console.error("sw", error);

      }

       

       

       

      following is the setting I used in Adobe Edge

      Screen shot 2013-11-11 at 5.21.53 PM.png

       

       

      Following is the information that appears on my server where I upload the music

      Screen shot 2013-11-11 at 5.23.12 PM.png

        • 1. Re: Firefox not playing OGG audio
          elainecc Adobe Employee

          Hi, Amber-

           

          Does the OGG file play outside of Animate?  That's probably the first thing for you to check.

           

          Thanks,

           

          -Elaine

          1 person found this helpful
          • 2. Re: Firefox not playing OGG audio
            amber_abb Level 1

            Yes. Its playing fine in adobe audition. Infact the files were playing on firefox 2 weeks ago. Im wondering what happened as they are playing on other browsers too.

             

            Is there another browser that only plats ogg files? Maybe i should test it there too

            • 3. Re: Firefox not playing OGG audio
              jbowden Adobe Employee

              Hi there,

               

              Two things I'd look at:

               

              1. The server MIME type should be audio/ogg, and not audio/x-generic
              2. Try changing the sample type from 32 bit to 16 bit in Audition when you save it

               

               

              amber_abb wrote:

               

              Is there another browser that only plats ogg files? Maybe i should test it there too

               

               

              Opera supports ogg (and not mp3, at least on Mac), so try it there as well.

               

              hth,

              Joe

              • 4. Re: Firefox not playing OGG audio
                amber_abb Level 1

                I tried changing sample rate to 16 bit. It still does not work.

                 

                The file is being saved as ogg. I am not sure why it is displayed as audio/x-generic when I upload it to my server. I tried looking into this problem but did not find an answer. But like I said before, this was working fine few days ago. So I am confused what caused it.

                 

                I checked my code again but that looks good.

                 

                I opened it on Opera, the animation is working fine but I am not sure if it's reading the mp3 files or ogg files. It appears as if Opera supports both

                 

                Date: Tue, 12 Nov 2013 11:42:23 -0800

                From: forums_noreply@adobe.com

                To: amber.abbas@hotmail.com

                Subject: Firefox not playing OGG audio

                 

                 

                 

                 

                 

                 

                      

                           

                           

                           

                    Re: Firefox not playing OGG audio

                 

                 

                    created by Joe Bowden in Edge Animate CC - View the full discussion

                 

                 

                 

                Two things I'd look at:

                The server type should be audio/ogg, and not audio/x-genericTry changing the sample type from 32 bit to 16 bit in Audition when you save it

                • 5. Re: Firefox not playing OGG audio
                  amber_abb Level 1

                  Ok Guys. I have figured something out. But this is confusing now.

                   

                  I was loading the Edge Commons library from

                  load: "http://cdn.edgecommons.org/an/1.0.2/js/min/EdgeCommons.js",

                   

                  But I have changed that to another source.

                          load: "http://simonwidjaja.github.com/EdgeCommons/live/EdgeCommons-0.6.0.js",

                   

                   

                  Now the sound is playing so I am assuming that there are issues with the original library source. Maybe they are updating something. If you guys know anything about this, please share.

                   

                   

                  So my question is, is it ok to load both libraries so maybe in future when one is not working, the other can do the job. If that is possible what would be the correct format in the yepnote command to upload libraries from both of the above sources?

                   

                  Thanks

                   

                  Date: Tue, 12 Nov 2013 11:42:23 -0800

                  From: forums_noreply@adobe.com

                  To: amber.abbas@hotmail.com

                  Subject: Firefox not playing OGG audio

                   

                   

                   

                   

                   

                   

                        

                             

                             

                             

                      Re: Firefox not playing OGG audio

                   

                   

                      created by Joe Bowden in Edge Animate CC - View the full discussion

                   

                   

                   

                  Two things I'd look at:

                  The server type should be audio/ogg, and not audio/x-genericTry changing the sample type from 32 bit to 16 bit in Audition when you save it

                  1 person found this helpful
                  • 6. Re: Firefox not playing OGG audio
                    JPspecial

                    My newest Firefox (26) does not play ogg audio with EdgeCommons either.

                     

                    If I'm correct EdgeCommons sound javascript is based on CreateJS, SoundJS codebase. Now check this soundJS demo page, the sound is also not working there with the newest Firefox:

                     

                    http://www.createjs.com/#!/SoundJS/demos/soundGrid

                     

                    But, a new version of soundJS has been released recently addressing Firefox issues:

                    http://community.createjs.com/discussions/soundjs/1208-firefox-25-web-audio-support

                     

                    May be the EdgeCommons sound scripts need to be updated. Please verify