just want to play a sound on a page

D

Don Shepherd

Help!

I just want to create a link on my web page to play a sound I recorded with
Sound Recorder. When I click on the link, it goes into Media Player. I
don't want it to go there, I just want it to play the sound. How do I
achieve this?

thx
Don Shepherd
 
D

Don Schmidt

In the Help file, look for Sound. One of the topics is "Add background
sound to a webpage.
 
D

Don Shepherd

Thanks Don (Schmidt), but I don't really want a "background" sound, because
it plays every time the page is opened, which I don't want. I want a sound
to be played only when the user clicks on the link. Since the browser does
not play sounds itself, Media player does, I was hoping that there was some
option in Media Player that would cause it to open minimized or something,
so my current browser window does not go away and the Media Player window is
displayed.

Don Shepherd
 
D

Don Shepherd

Thanks again, Don. Yes, that will work for a shortcut, but when you click
on a sound link on a web page it runs the real thing, so attributes of the
shortcut won't do you any good within Internet Explorer (at least that is
what I found when I tried it).

I know there must be a way to do what I want to do, but it might required
scripting. When you create a background sound that plays automatically when
the web page is opened, Media Player plays the sound but does not open its
own window, like it does when you click a sound link. That is the effect I
want, but I have not been able to find the magical way yet.

The ideal solution would be to put something in the html code that would
cause media player to just play the sound without opening its own window.
But, like I said, that may require coding it seems like.

thx for your help
Don Shepherd
 
D

David Bartosik

If you are wanting to use the browsers background sound that is provided for
under the Tools, Web Options menu. ( a quick look in Publisher Help would
have got you there )
The background sound tag was designed for wav and mid files. (it pre-dates
mp3 existance) For more details in the background sound tag reference an html
help site like www.htmlgoodies.com
If the background sound tag is not what you want then linking to the sound
file would be correct, and it will load in the client's default media player,
which may or may not load in the browser (depending on client).
If you are wanting to embed a streaming media player, a) that is out of
Publisher functionality, and b) you have to order that (streaming media) from
the web host.
 
D

Don Shepherd

thanks David, I appreciate the help.

I did not want the background sound, I wanted just a link to a sound file
that I recorded with sound recorder. The link does work, but it opens media
player and removes focus from my page, which is the effect I did not want.
It is interesting, if you have a background sound, it plays without opening
media player. I wish it would have the same behavior when you click on a
sound link. Oh well. I can live with it, it is just somewhat annoying.

thanks again
Don Shepherd

David Bartosik said:
If you are wanting to use the browsers background sound that is provided for
under the Tools, Web Options menu. ( a quick look in Publisher Help would
have got you there )
The background sound tag was designed for wav and mid files. (it pre-dates
mp3 existance) For more details in the background sound tag reference an html
help site like www.htmlgoodies.com
If the background sound tag is not what you want then linking to the sound
file would be correct, and it will load in the client's default media player,
which may or may not load in the browser (depending on client).
If you are wanting to embed a streaming media player, a) that is out of
Publisher functionality, and b) you have to order that (streaming media) from
the web host.

--
David Bartosik - [MSFT MVP]
http://www.publishermvps.com
http://www.davidbartosik.com



Don Shepherd said:
Help!

I just want to create a link on my web page to play a sound I recorded with
Sound Recorder. When I click on the link, it goes into Media Player. I
don't want it to go there, I just want it to play the sound. How do I
achieve this?

thx
Don Shepherd
 
D

Damodara

I also want to have music playing while someone is viewing my website. I
attached a wma file but I take it from your message here that such files
won't work. What (format) do you suggest I use and how do I convert a music
files to such a format? It's a track from an album - 5-6 minutes in length?

Dom

David Bartosik said:
If you are wanting to use the browsers background sound that is provided for
under the Tools, Web Options menu. ( a quick look in Publisher Help would
have got you there )
The background sound tag was designed for wav and mid files. (it pre-dates
mp3 existance) For more details in the background sound tag reference an html
help site like www.htmlgoodies.com
If the background sound tag is not what you want then linking to the sound
file would be correct, and it will load in the client's default media player,
which may or may not load in the browser (depending on client).
If you are wanting to embed a streaming media player, a) that is out of
Publisher functionality, and b) you have to order that (streaming media) from
the web host.

--
David Bartosik - [MSFT MVP]
http://www.publishermvps.com
http://www.davidbartosik.com



Don Shepherd said:
Help!

I just want to create a link on my web page to play a sound I recorded with
Sound Recorder. When I click on the link, it goes into Media Player. I
don't want it to go there, I just want it to play the sound. How do I
achieve this?

thx
Don Shepherd
 
D

Don Shepherd

Dom:

I don't know about wma files. The file I created, with the standard Windows
sound recorder and a microphone, is a .wav file. It will play with Windows
Media Player, either as background or via a link. My problem was that I
wanted a link but, when clicked, I did not want the Media Player window to
come up, like it does not come up when you have a background sound.

Don Shepherd
Damodara said:
I also want to have music playing while someone is viewing my website. I
attached a wma file but I take it from your message here that such files
won't work. What (format) do you suggest I use and how do I convert a music
files to such a format? It's a track from an album - 5-6 minutes in length?

Dom

David Bartosik said:
If you are wanting to use the browsers background sound that is provided for
under the Tools, Web Options menu. ( a quick look in Publisher Help would
have got you there )
The background sound tag was designed for wav and mid files. (it pre-dates
mp3 existance) For more details in the background sound tag reference an html
help site like www.htmlgoodies.com
If the background sound tag is not what you want then linking to the sound
file would be correct, and it will load in the client's default media player,
which may or may not load in the browser (depending on client).
If you are wanting to embed a streaming media player, a) that is out of
Publisher functionality, and b) you have to order that (streaming media) from
the web host.

--
David Bartosik - [MSFT MVP]
http://www.publishermvps.com
http://www.davidbartosik.com



Don Shepherd said:
Help!

I just want to create a link on my web page to play a sound I recorded with
Sound Recorder. When I click on the link, it goes into Media Player. I
don't want it to go there, I just want it to play the sound. How do I
achieve this?

thx
Don Shepherd
 
C

crazydrdunk

Hi Don,
Did you ever get this situation with your sound working the way you want it
to?...

If not I have a solution.

You do indeed need to embed a html code for the link to the sound as you
said. There are several websites out there that will write this code for you,
although I always use UCSF's media embedding homepage.
http://cit.ucsf.edu/embedmedia
They can't answer specific questions for you, but their codes are very
trustworthy.

What you would do is select the Windows media option, and set the options as
follows:
Width and Height: 100x100
Start automatically: NO
Show controls: YES
Play looped or not: up to you

then simply insert the code in the exact position you would like the "link"
to be on your website and "AHHA!"

Hope this helps, and be sure to play around with it till you get it to your
liking!
CrazyDrDunk

Don Shepherd said:
Dom:

I don't know about wma files. The file I created, with the standard Windows
sound recorder and a microphone, is a .wav file. It will play with Windows
Media Player, either as background or via a link. My problem was that I
wanted a link but, when clicked, I did not want the Media Player window to
come up, like it does not come up when you have a background sound.

Don Shepherd
Damodara said:
I also want to have music playing while someone is viewing my website. I
attached a wma file but I take it from your message here that such files
won't work. What (format) do you suggest I use and how do I convert a music
files to such a format? It's a track from an album - 5-6 minutes in length?

Dom

David Bartosik said:
If you are wanting to use the browsers background sound that is provided for
under the Tools, Web Options menu. ( a quick look in Publisher Help would
have got you there )
The background sound tag was designed for wav and mid files. (it pre-dates
mp3 existance) For more details in the background sound tag reference an html
help site like www.htmlgoodies.com
If the background sound tag is not what you want then linking to the sound
file would be correct, and it will load in the client's default media player,
which may or may not load in the browser (depending on client).
If you are wanting to embed a streaming media player, a) that is out of
Publisher functionality, and b) you have to order that (streaming media) from
the web host.

--
David Bartosik - [MSFT MVP]
http://www.publishermvps.com
http://www.davidbartosik.com



:

Help!

I just want to create a link on my web page to play a sound I recorded with
Sound Recorder. When I click on the link, it goes into Media Player. I
don't want it to go there, I just want it to play the sound. How do I
achieve this?

thx
Don Shepherd
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top