Autoplaying m4a audio on mobiles

From: Manthorp10 Apr 2011 14:43
To: Peter (BOUGHTONP) 21 of 26
I will bow to your wisdom on all manner of subjects, but women & lerrrrrve...

Bear in mind that these are pitched squarely at museum shop clientele & we've market tested these - there's definitely a market for this stuff at the under-a-fiver end.
From: Manthorp11 Apr 2011 12:15
To: Matt 22 of 26
Sorry, Matt (or any other web-knitters), one last question: I've got the player bar centred now and it's working on a wide range of different phones. The sound file starts automatically on Android, and needs to be clicked on iPhone (everything I've read about iPhone says that this is unavoidable). However, the play button on the page is very small on the iPhone. Is there a way I can I biggerize it?

Current state of code:

code:
<!DOCTYPE html>
<head>
<title>Soundgems</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<script type="text/javascript" src="/audio-player/assets/audio-player.js"></script>
<script type="text/javascript">
    AudioPlayer.setup("/audio-player/assets/player.swf", {
        width: 1,
        initialvolume: 100,
        transparentpagebg: "yes",
        left: "000000",
        lefticon: "FFFFFF"
    });
</script>
</head>
<body>
<div align="center">
  <img src="/soundgemimages/soundgemsimage1.gif" width="480" height="480" title="" alt="" />
</div>
<div align="center">
<audio controls="false" preload="auto" autobuffer autoplay id="audioplayer">
  <source src="/audio/soundgems1.m4a" />
  <script type="text/javascript">
    var audio_player = document.createElement('audio');
    if (!audio_player.canPlayType || !audio_player.canPlayType('audio/mp4')) {
        AudioPlayer.embed("audioplayer", {
            soundFile: "/audio/soundgems1.mp3",
            autostart: "yes",
            loop: "no",
            animation: "no",
            transparentpagebg: "yes"
        });
    }
  </script>
</audio>
</div>
</body>
</html>


PS. Same URL as before, http://www.soundgems.co.uk/soundgems1.htm (you can use the QR Code I attached to a previous post) and yes, BeeP, it's the same soundfile & image as before.
EDITED: 11 Apr 2011 12:22 by MANTHORP
From: Matt11 Apr 2011 13:27
To: Manthorp 23 of 26
Probably just line 8 of the code, where it says "width: 1,". Make the number bigger and see what it looks like.
From: koswix11 Apr 2011 13:32
To: Manthorp 24 of 26
Doesn't work on Android if you have plugins (i.e. flash) set to on demand.
From: Manthorp11 Apr 2011 14:26
To: koswix 25 of 26
Well don't have it set on demand then, you nuisance.

It's bloody hard enough getting this fucking thing working without grumpy Turing machines mithering that I sound robotic and mardy Scotch Onionistas deliberately setting obstacles in my way.
From: koswix11 Apr 2011 14:33
To: Manthorp 26 of 26

Yeah, probably but you might want to make a note in the help/faq/whatever you may or may not plan on having.

 

And I'd change it from on demand to enabeld, except the BBC news site causes it to crash to the desktop on certain pages with it turned on :(