Music player appears for a second on page, then disappears

Avatar
  • Answered
I used the following code on my page. Can anyone see if there's a mistake in the coding, or something I need to add? Thanks!
Avatar
Arn
Hello, Sorry to hear that you're having problems with your audio. The problem is that when you play a sound file on the web, it's typically recommended that you use a streaming format. The browser will normally play it with whatever the viewer's browser is defaulting to for audio playback. WAV files are not streaming files and are not meant for that purpose. Also, if you are trying to control the interface of the playback, then you would need to use a specific application/program that you would need to reference in your code during the playback of the file. "MusicPlayer" is fairly generic and probably doesn't reference a specific audio-playback application. Check out Streaming Audio/Video from your site for more information on how to do this. This will also include more info on the audio file format. Regards, Arnel C.