offtheroad Posted February 19, 2009 Share Posted February 19, 2009 * * o View Profile o Personal Message (Online) Audio not playing on initial opening of browser « on: Today at 10:18:32 AM » * Reply with quoteQuote I have no experience in php or much in xml. I have a problem with the audio not playing until I refresh the browser. I'm on a mac and use firefox and safari. The audio file is around 1MB. I had some help with this site but lost contact with the person that set up the php in my serve. I did learn a little of xml but not much. This was a template and the original audio was 3 differnt mp3's. I replaced them with one of my own and went into songs.xml and did change the title. I got this response in another forum but no answer on how to solve it."you're probably calling the sound.play() before it's loaded enough to start." 1jimage.com/ultimate-deploy/ [attachment deleted by admin] Quote Link to comment https://forums.phpfreaks.com/topic/145955-audio-not-playing-on-initial-opening-of-browser/ Share on other sites More sharing options...
JonnoTheDev Posted February 19, 2009 Share Posted February 19, 2009 None of the files you have posted have anything to do with music playback. The buildMisicPlayer file reads the filenames in your mp3 directory then constructs an xml document. sound.play() is a Javascript function. If this is in your site then your probably looking for an onLoad() event handler within the <body> tag of your html pages Quote Link to comment https://forums.phpfreaks.com/topic/145955-audio-not-playing-on-initial-opening-of-browser/#findComment-766294 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.