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
Hello,
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="http://131.211.121.119/"> 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">
http://131.211.121.119/test.htm

If I give it a 0x0 size I get the same result (works in IE, not in Netscape):
<EMBED SRC="http://131.211.121.119/asf/noizintro.asf" WIDTH="0" HEIGHT="0" 
AUTOSTART="true">
http://131.211.121.119/test1.htm

If I don't use hidden nor size I hear the sound, but see a small 
mediaplayer (not what I want):
<EMBED SRC="http://131.211.121.119/asf/noizintro.asf" AUTOSTART="true">
http://131.211.121.119/test2.htm

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="http://131.211.121.119/asf/noizintro.asf" WIDTH="200" 
HEIGHT="2" AUTOSTART="true">
http://131.211.121.119/test3.htm

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?
TIA,
Dick 

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