sound on a page

  • Thread starter =?ISO-8859-1?Q?bandess=AE?=
  • Start date
?

=?ISO-8859-1?Q?bandess=AE?=

Hello!

Does anyone know how can we put a song into a website?

We want to play just a few seconds at the first time, when somobody
opens our pages.

Any solution interests!

thanks
bandess
 
K

Kris

bandess(R) said:
Does anyone know how can we put a song into a website?

We want to play just a few seconds at the first time, when somobody
opens our pages.

That will cost you a lot of visitors. Bad idea. Everyone knows that.
Any solution interests!

Don't play the sound unrequested, play it requested. For instance, by
supplying a link to the sound as shown above.
 
P

Paul Goodwin

bandess® said:
Hello!

Does anyone know how can we put a song into a website?

We want to play just a few seconds at the first time, when somobody
opens our pages.

Any solution interests!

I usually surf while listening to mp3s or CDs with headphones on. The
*second* a site starts playing music or any other sound automatically I hit
the back button & don't return. I suspect I'm not the only one.
 
?

=?ISO-8859-1?Q?bandess=AE?=

<a href="song.mp3" type="mpeg/audio">My song (300K, MP3)</a>

I think we need something different. What we want do is playing a 10
seconds intro automaticaly without any user request when the first page
of the site is loaded.

Anyways thanks for your help!
bandess
 
?

=?ISO-8859-1?Q?bandess=AE?=

Hi Paul,
I usually surf while listening to mp3s or CDs with headphones on. The
*second* a site starts playing music or any other sound automatically I hit
the back button & don't return. I suspect I'm not the only one.

well, thanks for your comment. I think that's a thing why we will
consider to do this on the site or not!

Thanks.
bandess
 
B

brucie

I think we need something different. What we want do is playing a 10
seconds intro automaticaly without any user request when the first page
of the site is loaded.

very bad idea. it will cause many visitors to simply leave.
 
?

=?ISO-8859-1?Q?bandess=AE?=

very bad idea. it will cause many visitors to simply leave.

OK, on the other hand the solution interest better. I won't make it on
the site though I desire to know how to do this.

bandess
 
R

rf

bandess® said:
Hi Paul,


well, thanks for your comment. I think that's a thing why we will
consider to do this on the site or not!

Also consider the bloke who stumbles across your site at work or in the
library. Suddenly the entire office is aware of some sort of noise coming
from his cubicle. Unrequested attention seek.

Cheers
Ricahrd.
 
D

DU

bandess® said:
Hello!

Does anyone know how can we put a song into a website?

We want to play just a few seconds at the first time, when somobody
opens our pages.

Any solution interests!

thanks
bandess

Like everyone said, playing sound, music or any audio file unrequested
is an absolute no-no. You'll need to define the autostart attribute in a
param tag of an HTML object. You should provide features to your console
so that your visitor can customize and control the console according to
his taste (volume level, autorewind, console statusbar,etc...)
One other reason why autostarting a song as the page load is a bad idea
is that audio files are usually big in size, so, while trying to make as
pleasing as possible the download, rendering of the page, you might in
fact make it even further longer (for a majority of users, in a majority
of cases) without giving the music to the visitor while he's waiting:
you end up to the opposite result of the reason why you added music in
the page.

You have not identified the MIME type of your sound file... so these
comments are just guesses here.

Examine this file (I need to update it too, also with an mp3 example):

http://www10.brinkster.com/doctorunclear/Netscape7/SoundInNetscape7.html

I think the most important issue is still not the HTML coding but rather
the plugin configuration on the user's system.

DU
--
Javascript and Browser bugs:
http://www10.brinkster.com/doctorunclear/
- Resources, help and tips for Netscape 7.x users and Composer
- Interactive demos on Popup windows, music (audio/midi) in Netscape 7.x
http://www10.brinkster.com/doctorunclear/Netscape7/Netscape7Section.html
 
R

rf

DU said:
I think the most important issue is still not the HTML coding but rather
the plugin configuration on the user's system.

And the assumption that the actually has a speaker plugged in.

Cheers
Richard.
 
?

=?windows-1252?Q?Fran=E7ois_de_Dardel?=

DU said:
bandess® wrote:

Like everyone said, playing sound, music or any audio file unrequested
is an absolute no-no.

I completely agree with that. Now I want to _propose_ some music on my
web pages. The problems seems to be that different browsers and plug-ins
react in a very different way.

Ideally, I would like the music to start once the user has clicked my
link, but I would not like to open a new page doing so.
Examine this file (I need to update it too, also with an mp3 example):

http://www10.brinkster.com/doctorunclear/Netscape7/SoundInNetscape7.html
This system works nice on Safari, iCab, Netscape 7. On MSIE 5.2 (for
Mac) it does exactly what I don't want: it starts the music by itself.

Can anyone explain what each of the lines is supposed to do? They seem
to be redundant in places. And if I remove all of the PARAM lines, the
music behaves exactly as in MSIE.... Here is the HTML:

<OBJECT DATA="Mudarra.mid" TYPE="audio/midi" WIDTH="75" HEIGHT="15"
STANDBY="Loading of music file in progress...should be quick" TITLE="Old
music">

<PARAM NAME="AnimationAtStart" VALUE="false" />
<PARAM NAME="AutoRewind" VALUE="false" />
<PARAM NAME="AutoStart" VALUE="false" />
<PARAM NAME="controls" VALUE="all" />
<PARAM NAME="EnableContextMenu" VALUE="true" />
<PARAM NAME="FileName" VALUE="Mudarra.mid" />
<PARAM NAME="ShowAudioControls" VALUE="true" />
<PARAM NAME="ShowControls" VALUE="true" />
<PARAM NAME="ShowPositionControls" VALUE="true" />
<PARAM NAME="ShowStatusBar" VALUE="true" />
<PARAM NAME="src" VALUE="Mudarra.mid" />
<PARAM NAME="xVolume" VALUE="50" />

<A HREF="Mudarra.mid" TITLE="Mudarra">Guardame las vacas</A>

</OBJECT> <BR>Guardame las vacas (Alonso Mudarra)
 
D

DU

François de Dardel said:
I completely agree with that. Now I want to _propose_ some music on my
web pages. The problems seems to be that different browsers and plug-ins
react in a very different way.

Exactly. That is the main issue. How to best code so that RealOne,
Windows Media Player Series 9 and QuickTime will behave approx. in the
same manner depending on the visitor's plugin set up.
Ideally, I would like the music to start once the user has clicked my
link, but I would not like to open a new page doing so.

Yeah, that's reasonable and understandable. To answer you, this can not
be forced. For instance, I have no idea how ".wav" sound can be conveyed
without bringing up the media player console.
This system works nice on Safari, iCab, Netscape 7. On MSIE 5.2 (for
Mac) it does exactly what I don't want: it starts the music by itself.

Pardon me? AutoStart is set to false as you can see... So, it should not
start the music by itself once the page finished download. It should
start the music only and only when the user clicks the (>) start button
of the media player console. Later, the user can set "autorewind" the
music on the media player console if that's what he wants.
Can anyone explain what each of the lines is supposed to do? They seem
to be redundant in places.

Some are redundant because some media player might recognize a param
name while another will not for that same param name. Those who are not
supported are normally (according to specs) ignored. Thus the redundance
you see.

And if I remove all of the PARAM lines, the
music behaves exactly as in MSIE....

That depens on your media player and plugin configuration, even windows
version, etc...


Here is the HTML:
<OBJECT DATA="Mudarra.mid" TYPE="audio/midi" WIDTH="75" HEIGHT="15"
STANDBY="Loading of music file in progress...should be quick" TITLE="Old
music">

<PARAM NAME="AnimationAtStart" VALUE="false" />
<PARAM NAME="AutoRewind" VALUE="false" />
<PARAM NAME="AutoStart" VALUE="false" />
<PARAM NAME="controls" VALUE="all" />
<PARAM NAME="EnableContextMenu" VALUE="true" />
<PARAM NAME="FileName" VALUE="Mudarra.mid" />
<PARAM NAME="ShowAudioControls" VALUE="true" />
<PARAM NAME="ShowControls" VALUE="true" />
<PARAM NAME="ShowPositionControls" VALUE="true" />
<PARAM NAME="ShowStatusBar" VALUE="true" />
<PARAM NAME="src" VALUE="Mudarra.mid" />
<PARAM NAME="xVolume" VALUE="50" />

You've not removed any param line: you're using all of them. Btw, if
you're coding according to a xhtml DTD, your tag names need to be lowercase.
<A HREF="Mudarra.mid" TITLE="Mudarra">Guardame las vacas</A>

</OBJECT> <BR>Guardame las vacas (Alonso Mudarra)

DU
--
Javascript and Browser bugs:
http://www10.brinkster.com/doctorunclear/
- Resources, help and tips for Netscape 7.x users and Composer
- Interactive demos on Popup windows, music (audio/midi) in Netscape 7.x
http://www10.brinkster.com/doctorunclear/Netscape7/Netscape7Section.html
 
?

=?windows-1252?Q?Fran=E7ois_de_Dardel?=

Pardon me? AutoStart is set to false as you can see... So, it should not
start the music by itself once the page finished download. It should
start the music only and only when the user clicks the (>) start button
of the media player console. Later, the user can set "autorewind" the
music on the media player console if that's what he wants.

Yes, although the autostart param is set to false, it starts without
user action (with QuickTime in my case). This is why I mentioned it...
Which means BTW that MSIE doesn't care if I have any params. It just starts.
Here is the HTML:
You've not removed any param line: you're using all of them.

To show the NG what's in there. But I tested both with and without the
params (all, not one by one).
if you're coding according to a xhtml DTD, your tag names need to be
lowercase.
No, I am in principle coding for 4.01 HTML
 
D

DU

François de Dardel said:
Yes, although the autostart param is set to false, it starts without
user action (with QuickTime in my case).

Then this is clearly and definitively a bug... and an annoying one, a
anti-user one.

This is why I mentioned it...
Well, I have Windows Media Player Series 9 (associated to midi files)
under MSIE 6 SP2 in XP Pro SP1 and it does not auto-start.

I'll check again with WMP9, RealOne v.2, QuickTime 6.3 under MSIE 6 for
windows, Mozilla 1.5, NS 7.1 and Opera 7.20 for these 3 media players. 9
media player and browser combinations.
Which means BTW that MSIE doesn't care if I have any params.

The media player should "care" about params though or it should care
about object's attributes. And published documentation suggests that
these media player do "care" about these params. MSIE 6 for Windows does
not know what to do with attributes of HTML 4 object like data, src,
type, etc... but the registered/associated media player for .midi files
should.

It just


Which media player does that? Can you give more specifics: browser,
browser versions, media player, media player version, ...

Unfortunately I won't be able to test any of this on Mac and with
browsers like Safari, ICab, MSIE 5.2 for Mac, Camino, etc...

To show the NG what's in there. But I tested both with and without the
params (all, not one by one).


No, I am in principle coding for 4.01 HTML

Then you should remove the " /" at the end of your param tag to avoid
rendering problems and compliance with the DTD.

DU
--
Javascript and Browser bugs:
http://www10.brinkster.com/doctorunclear/
- Resources, help and tips for Netscape 7.x users and Composer
- Interactive demos on Popup windows, music (audio/midi) in Netscape 7.x
http://www10.brinkster.com/doctorunclear/Netscape7/Netscape7Section.html
 
?

=?windows-1252?Q?Fran=E7ois_de_Dardel?=

DU said:
Then this is clearly and definitively a bug... and an annoying one, a
anti-user one.

This is why I mentioned it...
Well, I have Windows Media Player Series 9 (associated to midi files)
under MSIE 6 SP2 in XP Pro SP1 and it does not auto-start.

I found the way for this to behave in MSIE: I don't need any of the
"object" parameters, but I need AUTOSTART="false"> as an attribute in
the OBJECT tag, here:

<OBJECT DATA="Mudarra.mid" TYPE="audio/midi" WIDTH="75" HEIGHT="15"
STANDBY="Loading of music file in progress...should be quick" TITLE="Old
music" AUTOSTART="false">

<A HREF="Mudarra.mid" TITLE="Mudarra">Guardame las vacas</A>

</OBJECT> <BR>Guardame las vacas (Alonso Mudarra)
 
D

DU

François de Dardel said:
I found the way for this to behave in MSIE: I don't need any of the
"object" parameters, but I need AUTOSTART="false"> as an attribute in
the OBJECT tag, here:

<OBJECT DATA="Mudarra.mid" TYPE="audio/midi" WIDTH="75" HEIGHT="15"
STANDBY="Loading of music file in progress...should be quick" TITLE="Old
music" AUTOSTART="false">

<A HREF="Mudarra.mid" TITLE="Mudarra">Guardame las vacas</A>

</OBJECT> <BR>Guardame las vacas (Alonso Mudarra)

Is your page valid, complying with a strict DTD? If MSIE is in backward
compliant rendering mode, then your code probably makes sense but I was
more interested in, aiming at making such page in standards compliant
rendering mode. This is where a page is best coded and can be best
interoperable and consistent with W3C web standards compliant browsers,
web-aware devices, platforms, os-es, character sets, languages, etc..

In any cases, I can not furthermore investigate this issue as I don't
have MSIE 5.2.3 for Mac and MSIE 6 for Windows is an entirely different
rendering engine than MSIE 5.x for Mac.

DU
--
Javascript and Browser bugs:
http://www10.brinkster.com/doctorunclear/
- Resources, help and tips for Netscape 7.x users and Composer
- Interactive demos on Popup windows, music (audio/midi) in Netscape 7.x
http://www10.brinkster.com/doctorunclear/Netscape7/Netscape7Section.html
 

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

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,682
Members
48,796
Latest member
Greg L.

Latest Threads

Top