Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 24th, 2005, 12:48 AM
François de Dardel
Guest
 
Posts: n/a
Default No simple alternative to EMBED

Please don't scream that EMBED is evil !

What I am doing is
<EMBED SRC="BWV659.mid" AUTOSTART="false" LOOP="TRUE"
CONTROLS="SMALLCONSOLE" WIDTH="50" HEIGHT="15" TITLE="BWV 659">
Note the AUTOSTART="false"...

In the good old days of Netscape 3 or so, just <A
HREF="BWV659.mid">Musique</A> would open a small console in the active
page itself, based on the plug-in selected by the user. Today, it opens
the console in a new page, which is annoying. I have tried to find
other ways, but EMBED, albeit not official HTML, seems to work in all
browsers I know (provided some compatible plug-in for Midi is
installed). The only annoyance is that the console size of the PC is
considerably larger than that on the Mac, so it looks "cropped" when I
use the dimensions above.

I have tried <OBJECT> but can't mimic the AUTOSTART="false".

--
François de Dardel
http:/mapage.noos.fr/dardelf/
Faber est suae quisque fortunae
Enlever le quatorze pour m'écrire
Remove fourteen in the address to send mail

  #2  
Old July 24th, 2005, 12:48 AM
Spartanicus
Guest
 
Posts: n/a
Default Re: No simple alternative to EMBED

François de Dardel <dardelf14@noos.fr> wrote:
[color=blue]
><EMBED SRC="BWV659.mid" AUTOSTART="false" LOOP="TRUE"
>CONTROLS="SMALLCONSOLE" WIDTH="50" HEIGHT="15" TITLE="BWV 659">[/color]
[color=blue]
>Note the AUTOSTART="false"...[/color]

You are attempting to start a mediaplayer on the client system without
the client having chosen to play the midi, if the client has a midi
player on his system that isn't embeddable or not configured to, the
midi cannot be played.

Fortunately you can solve both problems with this amazing construct:

<a href="music.mid">Midi of Bach's ninth Leipzig chorale.</a>

--
Spartanicus
  #3  
Old July 24th, 2005, 12:48 AM
Gus Richter
Guest
 
Posts: n/a
Default Re: No simple alternative to EMBED

François de Dardel wrote:[color=blue]
> Please don't scream that EMBED is evil !
>
> What I am doing is
> <EMBED SRC="BWV659.mid" AUTOSTART="false" LOOP="TRUE"
> CONTROLS="SMALLCONSOLE" WIDTH="50" HEIGHT="15" TITLE="BWV 659">
> Note the AUTOSTART="false"...
>
> In the good old days of Netscape 3 or so, just <A
> HREF="BWV659.mid">Musique</A> would open a small console in the active
> page itself, based on the plug-in selected by the user. Today, it opens
> the console in a new page, which is annoying. I have tried to find other
> ways, but EMBED, albeit not official HTML, seems to work in all browsers
> I know (provided some compatible plug-in for Midi is installed). The
> only annoyance is that the console size of the PC is considerably larger
> than that on the Mac, so it looks "cropped" when I use the dimensions
> above.
>
> I have tried <OBJECT> but can't mimic the AUTOSTART="false".
>[/color]

IE uses Object with an ActiveX control, which which I exclude. Also,
nesting an element within an Object presents an IE bug where IE sees the
them in series and plays both, whereas it should see them nested and
play the first it can and ignore any subsequent nested element, be it an
object or embed element.

The anchor method as suggested by Spartanicus, requires a click to start
the system's default player and opens a new window.

Many visitors will prefer to use their installed plugin player. There
are not that many players left any more. The most common are WMP, QT,
Real Player, Crescendo and Beatnik. It is advisable to not 'loop' the
tune, but to let the visitor replay with his console if he desires. To
accomodate them most adequately, 60x144 is best for console size. The
different players support different attributes, some are supported by
all and some cause problems with some players. It is advisable to not
'loop' the tune, but to let the visitor replay with his console if he
desires.

This is an example of the 'embed' method:

<embed src="URL" autostart="true" loop="false" height="60" width="144"
type="audio/x-midi">
</embed>

This is an example of the 'object' method:

<object data="URL" type="audio/x-midi" height="60" width="144">
<param name="save" value="true">
<param name="autostart" value="true">
<param name="loop" value="false">
</object>

--
Gus
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles