Buying HTML5 Audio Tag Internet Explorer 9 Autoplay Problem

Discussion in 'Programming' started by creztor, Feb 18, 2012.

  1. #1
    Trying to embed an mp3 file on a page using audio tag and embed tag.
    Currently I have it working fine in Chrome but it keeps autoplaying in IE9.
    How can this be disabled?
    Here is the code I am using and IE9 autoplays.

    <audio controls="controls" height="50px" width="100px">
    <source src="sound/1.mp3" type="audio/mpeg" />
    <embed height="50px" width="100px" src="sound/1.mp3" />
    </audio>
    Code (markup):
    Let me know your price to get this so it doesn't autoplay in IE9.
     
    creztor, Feb 18, 2012 IP
  2. nikipatel

    nikipatel Member

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    36
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    Instead you can use

    <audio src="sound/1.mp3" autostart=false controls preload>
    <embed height="50px" width="100px" src="sound/1.mp3" />
    </audio>

    Let me know it helped u or what?
     
    nikipatel, Feb 18, 2012 IP