html5 audio play doesn't work on firefox/chrome












1















I would like to play big mp3 file (30MB) with tag in my web site, but it doesn't seem like working on Firefox 8.0 and Chrome 16.0.912. It works well with Safari tho. Under Firefox and Chrome, small mp3 file works but not big one. Here's simple codes I used:



<audio autobuffer controls>
<src="mp3 file" preload="auto">
</audio>


Is it the problem of browsers?










share|improve this question





























    1















    I would like to play big mp3 file (30MB) with tag in my web site, but it doesn't seem like working on Firefox 8.0 and Chrome 16.0.912. It works well with Safari tho. Under Firefox and Chrome, small mp3 file works but not big one. Here's simple codes I used:



    <audio autobuffer controls>
    <src="mp3 file" preload="auto">
    </audio>


    Is it the problem of browsers?










    share|improve this question



























      1












      1








      1








      I would like to play big mp3 file (30MB) with tag in my web site, but it doesn't seem like working on Firefox 8.0 and Chrome 16.0.912. It works well with Safari tho. Under Firefox and Chrome, small mp3 file works but not big one. Here's simple codes I used:



      <audio autobuffer controls>
      <src="mp3 file" preload="auto">
      </audio>


      Is it the problem of browsers?










      share|improve this question
















      I would like to play big mp3 file (30MB) with tag in my web site, but it doesn't seem like working on Firefox 8.0 and Chrome 16.0.912. It works well with Safari tho. Under Firefox and Chrome, small mp3 file works but not big one. Here's simple codes I used:



      <audio autobuffer controls>
      <src="mp3 file" preload="auto">
      </audio>


      Is it the problem of browsers?







      audio browser html5






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 25 '11 at 7:39







      REALFREE

















      asked Dec 25 '11 at 6:56









      REALFREE REALFREE

      1942316




      1942316






















          2 Answers
          2






          active

          oldest

          votes


















          1














          Safari is just doing the best job of the three (Safari, Chrome, and Firefox) which currently support this element in handling the errors presented to it via the syntax you've used.



          It should look like this:



          <audio controls preload="auto">
          <source src="song.mp3" type="audio/mpeg" />
          This text displays if the audio tag isn't supported.
          </audio>


          The autobuffer attribute doesn't exist in HTML and should be removed.



          Sources:




          1. W3Schools

          2. W3C HTML5 Spec Section 4.8.7: The audio element






          share|improve this answer































            1














            First of all, your syntax is incorrect. It should be:



            <audio controls preload="auto"> 
            <source src="file.mp3" />
            </audio>


            It appears that Safari is reading your code as intended, while Firefox/Chrome is reading it as written; i.e. with and without the preload attribute.






            share|improve this answer

























              Your Answer








              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "3"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f371415%2fhtml5-audio-play-doesnt-work-on-firefox-chrome%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              1














              Safari is just doing the best job of the three (Safari, Chrome, and Firefox) which currently support this element in handling the errors presented to it via the syntax you've used.



              It should look like this:



              <audio controls preload="auto">
              <source src="song.mp3" type="audio/mpeg" />
              This text displays if the audio tag isn't supported.
              </audio>


              The autobuffer attribute doesn't exist in HTML and should be removed.



              Sources:




              1. W3Schools

              2. W3C HTML5 Spec Section 4.8.7: The audio element






              share|improve this answer




























                1














                Safari is just doing the best job of the three (Safari, Chrome, and Firefox) which currently support this element in handling the errors presented to it via the syntax you've used.



                It should look like this:



                <audio controls preload="auto">
                <source src="song.mp3" type="audio/mpeg" />
                This text displays if the audio tag isn't supported.
                </audio>


                The autobuffer attribute doesn't exist in HTML and should be removed.



                Sources:




                1. W3Schools

                2. W3C HTML5 Spec Section 4.8.7: The audio element






                share|improve this answer


























                  1












                  1








                  1







                  Safari is just doing the best job of the three (Safari, Chrome, and Firefox) which currently support this element in handling the errors presented to it via the syntax you've used.



                  It should look like this:



                  <audio controls preload="auto">
                  <source src="song.mp3" type="audio/mpeg" />
                  This text displays if the audio tag isn't supported.
                  </audio>


                  The autobuffer attribute doesn't exist in HTML and should be removed.



                  Sources:




                  1. W3Schools

                  2. W3C HTML5 Spec Section 4.8.7: The audio element






                  share|improve this answer













                  Safari is just doing the best job of the three (Safari, Chrome, and Firefox) which currently support this element in handling the errors presented to it via the syntax you've used.



                  It should look like this:



                  <audio controls preload="auto">
                  <source src="song.mp3" type="audio/mpeg" />
                  This text displays if the audio tag isn't supported.
                  </audio>


                  The autobuffer attribute doesn't exist in HTML and should be removed.



                  Sources:




                  1. W3Schools

                  2. W3C HTML5 Spec Section 4.8.7: The audio element







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Dec 28 '11 at 10:14









                  Shawn SolomonShawn Solomon

                  361




                  361

























                      1














                      First of all, your syntax is incorrect. It should be:



                      <audio controls preload="auto"> 
                      <source src="file.mp3" />
                      </audio>


                      It appears that Safari is reading your code as intended, while Firefox/Chrome is reading it as written; i.e. with and without the preload attribute.






                      share|improve this answer






























                        1














                        First of all, your syntax is incorrect. It should be:



                        <audio controls preload="auto"> 
                        <source src="file.mp3" />
                        </audio>


                        It appears that Safari is reading your code as intended, while Firefox/Chrome is reading it as written; i.e. with and without the preload attribute.






                        share|improve this answer




























                          1












                          1








                          1







                          First of all, your syntax is incorrect. It should be:



                          <audio controls preload="auto"> 
                          <source src="file.mp3" />
                          </audio>


                          It appears that Safari is reading your code as intended, while Firefox/Chrome is reading it as written; i.e. with and without the preload attribute.






                          share|improve this answer















                          First of all, your syntax is incorrect. It should be:



                          <audio controls preload="auto"> 
                          <source src="file.mp3" />
                          </audio>


                          It appears that Safari is reading your code as intended, while Firefox/Chrome is reading it as written; i.e. with and without the preload attribute.







                          share|improve this answer














                          share|improve this answer



                          share|improve this answer








                          edited Dec 29 '11 at 6:12

























                          answered Dec 25 '11 at 7:55









                          iglvzxiglvzx

                          19.5k1167112




                          19.5k1167112






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Super User!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f371415%2fhtml5-audio-play-doesnt-work-on-firefox-chrome%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Plaza Victoria

                              In PowerPoint, is there a keyboard shortcut for bulleted / numbered list?

                              How to put 3 figures in Latex with 2 figures side by side and 1 below these side by side images but in...