473,395 Members | 1,583 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

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

Jul 23 '05 #1
2 5400
François de Dardel <da*******@noos.fr> wrote:
<EMBED SRC="BWV659.mid" AUTOSTART="false" LOOP="TRUE"
CONTROLS="SMALLCONSOLE" WIDTH="50" HEIGHT="15" TITLE="BWV 659"> Note the AUTOSTART="false"...


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
Jul 23 '05 #2
François de Dardel wrote:
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".


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
Jul 23 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

27
by: Brian Sabbey | last post by:
Here is a first draft of a PEP for thunks. Please let me know what you think. If there is a positive response, I will create a real PEP. I made a patch that implements thunks as described here....
3
by: Tony Sutton | last post by:
I have this following code in my html file: <object classid="clsid:166B1BCA-3F9C-11CF-8075-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/director/sw.cab#...
9
by: MTriggs886 | last post by:
There isn't a command that exists that can serve as an alternative to EMBED in HTML 4.01 Transitional coding, is there? I've historically used this command to play MIDI files in the background of...
2
by: Richard Brooks | last post by:
IE5.5 It's probably an oft repeated question but I have some code that used to work but does not now. This line in my Javascript code give an error now. document.embeds.play(); And the...
10
by: WJA | last post by:
I'm looking at building an application that needs to display 4 levels of hierarchical data. Initially the obvious choice for this would seem to be the treeview control. After searching this...
51
by: Alan | last post by:
hi all, I want to define a constant length string, say 4 then in a function at some time, I want to set the string to a constant value, say a below is my code but it fails what is the correct...
1
by: Andrew Poulos | last post by:
With "normal" SWF HTML there's an EMBED tag nested within an OBJECT tag. How can I check which tag is actually displaying the SWF? I'm using CSS on them and the style on the OBJECT affects the...
2
dream party
by: dream party | last post by:
Inserting a Flash (SWF, FLV) file into HTML web page is already an old and familiar thing to all of us. It is a rather non-flexible thing that just to edit some options in the template. However, I...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.