Bearing in mind that I'm a complete and utter coding dilettante, please can I beg the possie's indulgence and support?
I am writing a series of simple pages that will be opened by QR codes on smartphones. The pages comprise a static image and an m4a audio file that should open automatically and play once. I've created this page:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
</head>
<body bgcolor="#FFFFFF" text="#000000"><center><img src="soundgemsimage1.gif" width="480" height="480" title="" alt="" /></center>
<embed src="soundgems1.m4a" autostart="true" loop="false"
width="2" height="0">
</embed>
</body>
</html>
There's a sample HERE:
http://www.soundgems.co.uk/soundgems1/index.htm
which opens as desired(ish) in my PC browser, but the sound isn't playing on my mobile. If I point the mobile directly at the sound file like THIS:
http://www.soundgems.co.uk/sound_files/soundgems1.m4a
it plays fine, so it's not a format compatibility issue. Please can anyone explain where I'm going wrong? "We all have flaws, and mine is being wicked."
James Thurber, The Thirteen Clocks 1951
|