473,657 Members | 2,896 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

No simple alternative to EMBED

Please don't scream that EMBED is evil !

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

In the good old days of Netscape 3 or so, just <A
HREF="BWV659.mi d">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="fals e".

--
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 5421
François de Dardel <da*******@noos .fr> wrote:
<EMBED SRC="BWV659.mid " AUTOSTART="fals e" LOOP="TRUE"
CONTROLS="SMAL LCONSOLE" WIDTH="50" HEIGHT="15" TITLE="BWV 659"> Note the AUTOSTART="fals e"...


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="fals e" LOOP="TRUE"
CONTROLS="SMALL CONSOLE" WIDTH="50" HEIGHT="15" TITLE="BWV 659">
Note the AUTOSTART="fals e"...

In the good old days of Netscape 3 or so, just <A
HREF="BWV659.mi d">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="fals e".


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
2372
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. It is available at: http://staff.washington.edu/sabbey/py_do Good background on thunks can be found in ref. . Simple Thunks
3
5216
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# version=7,0,0,0" width="320" height="320"> <param name="src" value="file.dcr" /> <embed src="file.dcr" pluginspage="http://www.macromedia.com/go/getflashplayer" width="320" height="320"> </embed>
9
6456
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 my webpages, and I'm finding out now it's kind of obsolete, even though most browsers still accept it. Thanks, Michael Triggs
2
1610
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 following are the six lines of WAV files that used to be played at
10
15425
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 newsgroup I've found that there is a lot of opinion that says to stay away from the treeview if at all possible due to lack of documentation and distribution problems. Added to this, I've never used it before and don't need a new learning curve at the...
51
8257
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 code? many thx!
1
2974
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 EMBED tag so I'm going to use some code to correct it but I can't tell which tag is responsible for the display. Andrew Poulos
2
8068
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 did not understand some parameters totally in the HTML tag. These days when I was surfing the Internet I have found some comprehensive introduction to these two tags. I read it and conclude it with my own words; I think it will be useful to us, so I...
0
8302
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8820
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8718
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8499
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8601
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6162
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5630
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4150
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
1601
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.