Login|Contact Us
Question and Answer

Programming

Ask a Programming Question, Get an Answer ASAP!

  • Ask A Question
  • Browse Answers
  • Meet The Experts
  • How JustAnswer Works

I have built two websites, one with a midi file and one with

 

Customer Question

I have built two websites, one with a midi file and one with a wav file. Neither will play from the Google Chrome browser. Play fine in IE.
Both have the audio on the index page only.
The sites are:
http://www.irishdayattheraces.com
http://www.shhs56.com
Thanks,
Mike

 

Optional Information:
Computer OS: Windows XP
Browser: Other

Already Tried:
I have tried nothing. Will probably just go back to IE although I like the speed of Chrome.

Submitted: 1202 days and 20 hours ago.
Category: Programming
Value: $14
Status: CLOSED
Picture
Expert:  Coder4Life replied 1202 days and 13 hours ago.

The reason is because use of the bgsound tag only works in ie. It is deprecated and may actually only work in a site that has frontpage extensions enabled.
Following is the code you need to use:

<object type="audio/x-wav" data="call.wav">
<param name="src" value="call.wav">
<param name="autoStart" value="1">
</object>

You can get more information on it here: http://joliclic.free.fr/html/object-tag/en/ or here :
http://www.w3schools.com/media/media_object.asp

 

Customer replied 1202 days and 13 hours ago.

I installed the code. When previewed in Chrome I now have a Quick Time play bar at the top of the page and if I click on it it plays the wav. Obviously this is not what it is supposed to do.
What have I done wrong?

Customer replied 1202 days and 13 hours ago.

This is the code as I entered it



Picture
Expert:  Coder4Life replied 1202 days and 4 hours ago.

Add the following in the params section:

<PARAM NAME="autostart" VALUE="True">
<PARAM NAME="ShowControls" VALUE="True">
<PARAM NAME="ShowAudioControls" VALUE="True">
<PARAM NAME="DisplayMode" VALUE="1">

And change the value of the "autoStart" parameter to "True".

This should help.

Customer replied 1201 days and 22 hours ago.

I added the code. I Chrome preview the wav now plays as it should, however the QuickTime audio bar is still displayed at the top of the page. Sorry to keep at you on this.
This is now what the code looks like-








Also can I use this same coding on the other site where a midi file will not play?
Mike

Customer replied 1201 days and 22 hours ago.

I have loaded the page to the server so if you have Chrome you can see the way it looks and acts.
Mike

Customer replied 1201 days and 21 hours ago.

By the way - the wav no longer plays in IE

Picture
Expert:  Coder4Life replied 1201 days and 16 hours ago.

Try these params:

name="src" value="call.wav"
name="autoStart" value="True"
name="autoplay" value="True"
name="ShowControls" value="False"
name="ShowAudioControls" value="False"
name="DisplayMode" value="1"


Customer replied 1201 days and 16 hours ago.

When viewing in Chrome I get the exact situation as when I added the last params
Here is the code as it is now entered

name="src" value="call.wav"
name="autoStart" value="True"
name="autoplay" value=True"
name="ShowControls" value="False"
name="ShowAudioControls" value="False"
name="DisplayMode" value="1"

Picture
Expert:  Coder4Life replied 1201 days and 16 hours ago.

I am sorry. My fault. I wasn't clear. I was having problems loading the complete code here.

But i finally figured it out. Here is what the code should look like:

< o b j e c t type="audio/x-wav" data="call.wav">
< param name="src" value="call.wav">
< param name="autoStart" value="True">
< param name="autoplay" value="True">
< param name="ShowControls" value="False">
< param name="ShowAudioControls" value="False">
< param name="DisplayMode" value="1">
< /o b j e c t>

Remove the space after the < sign. And the spaces in the word object.

Customer replied 1201 days and 15 hours ago.

We appear to be back at square 1- The site looks good now but the wav does not play in Chrome or IE.
Here is the code as entered now








I loaded the page on the server:
http://www.irishdayattheraces.com

Picture
Expert:  Coder4Life replied 1201 days and 11 hours ago.

There should be a space between the word "object" and the word "type".

Customer replied 1201 days and 11 hours ago.

Well that got the wav back - however the QuickTime audio window is now visible again on the index page.

Customer replied 1201 days and 10 hours ago.

I really feel bad about the time this is taking from you. Perhaps we should just write it off as a bad task. What do you think?

Picture
Expert:  Coder4Life replied 1201 days and 10 hours ago.

Please don't feel bad. I love what I do. And I NEVER give up, until the problem is solved. I will take a look.

Accepted Answer

Picture
Expert:  Coder4Life replied 1201 days and 8 hours ago.

Ok.
I have the latest firefox and the latest chrome.
The wav file is playing in both, but it is not playing in IE 6. The Quicktime controls only appear in Chrome.
For the midi file, you need to just use the midi file, instead of the wav file.

This one works. I tried it in the latest Chrome, the latest Firefox, and IE 6. It needs to go in the "Body" section of your code, not the "Head" code.

< embed src="call.wav" hidden="true" autostart="true">

Take out the space between the < sign and the word "embed"

Expert TypeComputer Software Engineer
Category: Programming
Pos. Feedback: 100.0 %
Accepts: 84
Answered: 1/7/2010

Experience: 20+yrs. C++/C programming, 18 yrs. SQL, 10+ yrs. OOA/D, 7 yrs. PHP/Javascript, 9 yrs. XHTML/CSS.

Ask this Expert a Question >
Customer replied 1200 days and 21 hours ago.

Yay team! It now works fine in both chrome and IE.
I really appreciate the time and effort you put into this.
I feel as you, once I confront a situation I need to resolve it.
Thanks again,
Mike

 
Tweet

3 Programmers are Online Right Now

Ask Your Question Now
Programming Questions Date Submitted
I need a program in visual basic 2010 that does the following:1. 4/17/2013
RA-JPM 4/17/2013
RA-hg 4/17/2013
Hi need help with a specific 102 programming assignment. 4/16/2013
I have a very serious issue with Magento coupon system which 4/16/2013
Programming Challenge 4/16/2013
RA-ke 4/16/2013
1. (TCO 9) Menu-driven programs should be broken down into 4/15/2013
I need an app builder to build an app OKPR415211 4/15/2013
will tip extra if finished fast - programming assignment 4/14/2013
RSS
Next 10 >
Ask A Programmer
Type Your Programming Question Here...
characters left:

Top Programming Experts

See More Programmers

In The News

Nbc
Washington Post
New York Times
Cnn
Learn More

How It Works

  • Ask an Expert
  • Get a Professional Answer
  • Ask Followup Questions
  • 100% Satisfaction Guarantee
Learn More
close
Find Expert answers related to your question.
Sign up using email
We will never post anything without your permission.
Already have an account? Sign in

Ask a Programmer

Get a Professional Answer. 100% Satisfaction Guaranteed.
126 Programmers are Online Now
Type Your Programming Question Here...
characters left:
Disclaimer: Information in questions, answers, and other posts on this site ("Posts") comes from individual users, not JustAnswer; JustAnswer is not responsible for Posts. Posts are for general information, are not intended to substitute for informed professional advice (medical, legal, veterinary, financial, etc.), or to establish a professional-client relationship. The site and services are provided "as is" with no warranty or representations by JustAnswer regarding the qualifications of Experts. To see what credentials have been verified by a third-party service, please click on the "Verified" symbol in some Experts' profiles. JustAnswer is not intended or designed for EMERGENCY questions which should be directed immediately by telephone or in-person to qualified professionals.
Truste
Contact Us | Terms of Service | Privacy & Security | About Us | Our Network
© 2003-2013 JustAnswer LLC
  • Pearl.com
  • JustAnswer UK
  • JustAnswer Germany
  • JustAnswer Spanish
  • JustAnswer Japan