Discuss: Bye Bye Embed
by Elizabeth Castro
- Editorial Comments
12 Comments from Hixie's example
It appears that the ‘show to non-ie’ type of conditional comments were included in Hixies flash example from 2004, Lachlan’s example used a different method.
In fact, if you combine them, you could use two blocks, one for IE 5-6, and one for IE 7 & standards based browsers like so
I’m not sure what the benefit of nesting the objects is? You are effectively showing different HTML to different browsers anyway?
posted at 03:08 am on July 12, 2006 by Alastair Campbell
13 applets?
for MSJVM people have to use APPLET, otherwise see: embeding java via conditional comments.
also: nice js plugin framework
posted at 11:41 am on July 12, 2006 by andris zageris
14 Javascript
I think the answer is not to get the embed tag added to any HTML specs, but to encourage browser makers to fix the way their browser handles the object tag. ([url=“http://blog.deconcept.com/2006/04/18/where-is-web-browser-plug-in-task-force/”]maybe we need a browser plug-in task force?[/url])
Until that happens (and possibly after because of things like the Eolas issue), Javascript is and will be the best way to embed any content that uses a plugin.
posted at 02:11 pm on July 12, 2006 by Geoff Stearns
15 Untitled
Unfortunately, the Eureka! One object for Windows Media Player example did not work for me on Safari 2.0.4. Better head back to the drawing board.
posted at 04:35 pm on July 12, 2006 by Paul Armstrong
16 thanks
elizabeth, this article made my month! man, i’ve been scouring the net for this answer for months now. my ad school friends entered a contest recently and asked me to embed their current.tv flash video on my blog to help get them some votes … and i reluctantly agreed knowing that it would totally ruin my perfectly valid code that i worked so hard to maintain. but your tips helped fix all my issues and now i can go back to being OCD. so thanks!
posted at 07:22 pm on July 12, 2006 by Nik Outchcunis
17 What is the standard?
I had noticed the Safari/Firefox conflict myself in object param markup and mounted my own examples a few months ago <http://www.q7design.demon.co.uk/QTMovieMarkup> before submitting a report to webkit. As both markups validate with the W3C validator it is not clear to me which style of object markup is correct, as I find the W3C spec. completely incomprehensible. Anyone out there understand it?
posted at 02:33 am on July 13, 2006 by David Leader
18 What do you think about this?
Few months ago I published similar way how correctly insert a Flash into XHTML (see http://www.dgx.cz/trine/item/how-to-correctly-insert-a-flash-into-xhtml). This method doesn’t require to insert any twice!
I have found out the same trick with conditional comments as Lachlan Hunt figured out, syntax-highlighed explanation is here http://www.dgx.cz/trine/item/the-magic-with-conditional-comments.
posted at 04:44 am on July 13, 2006 by David Grudl
19 What do you think about this? II.
Sorry – now with clickable links: – how insert <object> into XHTML (without duplicate ‘s) – syntax-highlighted conditional comments trick
posted at 04:50 am on July 13, 2006 by David Grudl
20 The WMP embedding code parameters are for WMP6.4
The parameter for src and controller used in the example are from WMP6.4 rather than WMP7 and later :
From WMP version 7 there was a compatibility layer put into the player to allow these elements temporarily, but it’s not guaranteed to work forever.
The src one is easy to change, it should be name=“url” instead of name=“src”. The param element for controller no longer exists, it’s replaced by uimode : One of
See these MSDN articles for complete details :
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmplay10/mmp_sdk/playeruimode.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wmplay10/mmp_sdk/paramtags.asp
A detailed object comparison between WMP6.4 and WMP 7 and later
http://windowssdk.msdn.microsoft.com/en-us/library/ms740077.aspx
Cheers – Neil Smith
MVP Digital Media
posted at 11:39 am on July 13, 2006 by Neil Smith
Discussion Closed
New comments are not being accepted, but you are welcome to explore what people said before we closed the door.
Got something to say?
Discuss this article. We reserve the right to delete flames, trolls, and wood nymphs.
Create a new account or sign in below if you’d like to leave a comment.
Subscribe to this article's comments: RSS (what’s this?)






11 Firefox
We had a lot of problems lately with video and the latest install of Firefox (1.5.04). We were using the embed tag to display our video files and it only worked on about half of the desktops with the latest firefox install. After hunting high and low this was the fix that solved the issue. Very timely info, thanks for the fix.
posted at 10:14 pm on July 11, 2006 by Jeremy Bertrand