Q: background asf-sound in Netscape

by Dick Ittmann <D.H.C.Ittmann(at)students.law.uu.nl>

 Date:  Sat, 13 May 2000 16:54:36 +0200
 To:  hwg-techniques(at)hwg.org
  todo: View Thread, Original
First: excuse me for my English, it's not my own language, so I hope this 
is all clear.
How can I embed a sound-only .asf so that the mediaplayer doesn't show?
I know <BGSOUND> is IE-only, so I'm trying with <EMBED>, but that doesn't 
seem to work.
It doesn't make a difference whether I use TYPE="application/x-mplayer2" or 
not. Using an .asx-file doesn't help and closing with </EMBED> doesn't make 
a difference either. I use a <BASE HREF=""> on all 
my pages, but tried the following tests using the full path in the 
EMBED-tag as well.

When I use hidden=true (with or without h/v-sizes) it won't start playing 
in Netscape (this works in IE):
<EMBED SRC="asf/noizintro.asf" HIDDEN="true" AUTOSTART="true">

If I give it a 0x0 size I get the same result (works in IE, not in Netscape):

If I don't use hidden nor size I hear the sound, but see a small 
mediaplayer (not what I want):

And, of course: if I size it 200x2 it works fine (this is what I use on the 
'real page' now), but shows a <HR>-like mediaplayer which I don't want:
<EMBED SRC="" WIDTH="200" 

I even tried a hidden layer in Netscape, but then the sound cannot be heard 
either. This may be caused by the fact that I don't know the <LAYER>-tag 
too well, though (and I hope it can be done without). Any suggestions?

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA