{"id":19134,"date":"2013-03-22T17:12:57","date_gmt":"2013-03-22T22:12:57","guid":{"rendered":"http:\/\/www.shamusyoung.com\/twentysidedtale\/?p=19134"},"modified":"2013-03-22T17:39:51","modified_gmt":"2013-03-22T22:39:51","slug":"diecast-autoplay","status":"publish","type":"post","link":"https:\/\/www.shamusyoung.com\/twentysidedtale\/?p=19134","title":{"rendered":"Diecast Autoplay"},"content":{"rendered":"<p><table   class=\"\" cellpadding='0' cellspacing='0' border='0' align='center'><tr><td><img src='https:\/\/www.shamusyoung.com\/twentysidedtale\/images\/splash_old_computer.jpg' class='insetimage'   alt='splash_old_computer.jpg' title='splash_old_computer.jpg'\/><\/td><\/tr><\/table><\/p>\n<p>Three people so far have messaged me complaining that the diecast podcasts are &#8220;set to autoplay&#8221; when you visit the site.  Like, you show up at the blog and the podcast just starts rolling for no reason.<\/p>\n<p>Obviously this isn&#8217;t happening for everyone, or else the comments would be a ragestorm of indignation. Auto-play audio is so 1997 web design. However, it&#8217;s clearly happening to SOME people. And given that most people just hit the back button when they hit autoplay media, the actual number of affected people could be be a lot higher than it seems from these three messages.<\/p>\n<p>So let&#8217;s see if we can figure this out.  I&#8217;ve loaded up the site on Firefox and Chrome and it works fine. However, on IE 64 bit, the idiot browser does indeed load up the page and play every damn embedded file on the site like the giant heap of poorly engineered code it is. For the record, here is the embed code I&#8217;m using:<\/p>\n<p><!--more--><tt><br \/>\n&lt;audio controls height='50' width='300'&gt;<br \/>\n&lt;source src='\/diecast\/diecast5.mp3' type='audio\/mpeg'&gt;<br \/>\n&lt;source src='\/diecast\/diecast5.ogg' type='audio\/ogg'&gt;<br \/>\n&lt;embed height='50' width='300' src='\/diecast\/diecast5.mp3'&gt;<br \/>\n&lt;\/audio&gt;<br \/>\n<\/tt><\/p>\n<p>Nothing in there should be causing auto-play. Of course, IE is doing some crazy stupid stuff where it pulls in Media Player and embeds THAT instead of using a more lightweight built-in player. <\/p>\n<p>It&#8217;s very hard for me to not go into a eye-bulging red-faced white-knuckled tirade about now. There are so many things wrong that just explaining all the layers of failure would delay our search for a solution. Speaking of solutions:<\/p>\n<ol>\n<li>We need a solution. IE is in the minority among my users, but it&#8217;s not some obscure browser, either. And auto-play is basically a massive no-no, right up there with popup ads and &#8220;Download now&#8221; buttons that take you to other pages with &#8220;Download Now&#8221; buttons.\n<li>Sneering at people to &#8220;use a REAL browser&#8221; &#8211; while perhaps therapeutic &#8211; is not a solution.\n<li>Sneering &#8220;get rid of the embedded player&#8221; is also not a solution in the same way that walking is not a solution to a flat tire. We are engineers, not savages.\n<li>We&#8217;ve got three parts to the embed code above: One is the Mp3 embed. The other is the ogg embed, which is for certain flavors or configurations of Linux that can play ogg and not MP3. Then inside of those tags is another legacy HTML tag for older browsers. This solution is taken <a href=\"http:\/\/www.w3schools.com\/html\/html_sounds.asp\">directly from W3 Schools<\/a>, which until now has ALWAYS been on top of stuff like this and aware of variations in browser behavior.\n<li>The W3 Schools suggests using the FREE Yahoo! player. I suggest that the Yahoo Player can GO SCREW ITSELF.\n<p>I refuse to tangle with plugins when we&#8217;ve got perfectly good HTML that should do the job for us. Moreover, I have my doubts that the FREE Yahoo! player is cross platform. And I&#8217;ll bet it&#8217;s not actually FREE. It&#8217;s most likely some pestering little sleazeball of an app. Yahoo has been clingy and annoying in the past, and this is what you get when you act like a sleaze: Your brand name is tainted in a way that haunts you for years. I&#8217;m not even going to bother checking to see how the app works, because a lot of other people feel the same way about Yahoo and won&#8217;t want to install it, even if it&#8217;s fine. <\/p>\n<p>(Note that all of this also applies to YOU, Adobe and Oracle. Acrobat and Java runtime have spent a lot of time standing on the streetcorner looking pasty and malnourished, asking passers-by if they want to &#8220;party&#8221;. I now regard the Adobe and Oracle logos the same way I viewed Realpalyer back in the day.)<\/p>\n<p>But I digress&#8230;<\/p>\n<li>I can&#8217;t find any HTML tags to enable OR disable auto-play, using any embed code, for any browser.\n<\/ol>\n<p>The most frustrating thing here is that <strong>this does not need to be this hard.<\/strong> You&#8217;re talling me I can upload and embed gigabytes of video from YouTube easier than I can embed a simple audio file? In 2013? <\/p>\n<p>So yeah. I&#8217;m still looking into this. If the MP3 is auto-playing for you and you&#8217;re NOT using Internet Explorer, PLEASE let me know, since right now I&#8217;m going on the assumption that this is an IE issue. In the meantime, if anyone has any suggestions (even how to break the embed code for IE only) please leave them in the comments.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Three people so far have messaged me complaining that the diecast podcasts are &#8220;set to autoplay&#8221; when you visit the site. Like, you show up at the blog and the podcast just starts rolling for no reason. Obviously this isn&#8217;t happening for everyone, or else the comments would be a ragestorm of indignation. Auto-play audio [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[287],"tags":[],"class_list":["post-19134","post","type-post","status-publish","format-standard","hentry","category-diecast-2"],"_links":{"self":[{"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/posts\/19134","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=19134"}],"version-history":[{"count":0,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=\/wp\/v2\/posts\/19134\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=19134"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=19134"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.shamusyoung.com\/twentysidedtale\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=19134"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}