{"id":961,"date":"2006-11-17T13:32:36","date_gmt":"2006-11-17T19:32:36","guid":{"rendered":"http:\/\/www.conradaskland.com\/blog\/?p=961"},"modified":"2010-06-18T14:40:32","modified_gmt":"2010-06-18T20:40:32","slug":"html-code-to-auto-play-mp3-audio-files","status":"publish","type":"post","link":"https:\/\/conradaskland.com\/blog\/html-code-to-auto-play-mp3-audio-files\/","title":{"rendered":"HTML Code to Auto-Play MP3 Audio Files"},"content":{"rendered":"<p>Autoplay of audio files has long been considered bad form for websites, but I just can&#8217;t help myself. It&#8217;s just too fun. I&#8217;ve set a piece to play at the entrance of my site and will setup a short audio sample to play on the front of my blog.<\/p>\n<p>You don&#8217;t have to embed in a flash player, and you can call up whatever audio format you want (.wav, MP3. .ra, etc.). If you are super evil like me you can set the file to &#8220;hidden &#8211; true&#8221; so no one can turn the music off. My front page is a splash page so if people don&#8217;t like the song they can always click to another section.<\/p>\n<p>Here&#8217;s the code to autoplay MP3 audio music files on your website page:<br \/>\n*********************<\/p>\n<p>embed src=&#8221;http:\/\/www.yourwebsite.com\/audiofolder\/youraudio.mp3&#8243; loop=&#8221;true&#8221; autoplay=&#8221;false&#8221; width=&#8221;145&#8243; height=&#8221;60&#8243;&gt;&lt;\/embed<\/p>\n<p>*********************<\/p>\n<p><strong>NOTE: You will need to put a &#8220;&lt;&#8221; at the beginning of code and a &#8220;&gt; &#8221; at the end. I  couldn&#8217;t post it  with the  tags because my blog think&#8217;s it is HTML code (which it is).<\/strong><\/p>\n<p>Autostart &#8211; is to automatically start the song playing.<br \/>\nHidden &#8211; is setting for audio controls.<br \/>\nIf control is hidden then dimensions are not shown anyway.<br \/>\nReplace URL with exact location of your audio file.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Autoplay of audio files has long been considered bad form for websites, but I just can&#8217;t help myself. It&#8217;s just too fun. I&#8217;ve set a piece to play at the entrance of my site and will setup a short audio sample to play on the front of my blog. You don&#8217;t have to embed in [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"footnotes":""},"categories":[6],"tags":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p3C0LX-fv","_links":{"self":[{"href":"https:\/\/conradaskland.com\/blog\/wp-json\/wp\/v2\/posts\/961"}],"collection":[{"href":"https:\/\/conradaskland.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/conradaskland.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/conradaskland.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/conradaskland.com\/blog\/wp-json\/wp\/v2\/comments?post=961"}],"version-history":[{"count":5,"href":"https:\/\/conradaskland.com\/blog\/wp-json\/wp\/v2\/posts\/961\/revisions"}],"predecessor-version":[{"id":5120,"href":"https:\/\/conradaskland.com\/blog\/wp-json\/wp\/v2\/posts\/961\/revisions\/5120"}],"wp:attachment":[{"href":"https:\/\/conradaskland.com\/blog\/wp-json\/wp\/v2\/media?parent=961"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/conradaskland.com\/blog\/wp-json\/wp\/v2\/categories?post=961"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/conradaskland.com\/blog\/wp-json\/wp\/v2\/tags?post=961"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}