|
Embedding an MPG - CD mangles tags
After googling quite a bit I finally found an html-tidbit that will embed an .MPG in IE and Mozilla.
<object ID="WinMedia"
classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
CODEBASE= "http://activex.microsoft.com/activex/
controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701"
width=225 height=260 standby="Loading Microsoft
Windows Media Player components..." type="application
/x-oleobject">
<PARAM NAME="FileName" VALUE="yourfilename">
<PARAM NAME="AutoStart" Value="false">
<PARAM NAME="ShowControls" Value="true">
<Embed type="application/x-mplayer2"
pluginspage=
"http://www.microsoft.com/Windows/MediaPlayer/"
src="yourfilename"
Name="MediaPlayer"
AutoStart=0
Width=225
Height=260
ShowControls=1 >
</embed>
</object>
Things got slightly more complicated when CityDesk 2.0 decided it didn't like all those PARAM tags and stripped them away.
From my tests (I could be wrong), putting the key/value pairs of the PARAM tags into the OBJECT tag will NOT work for IE 6.0.
Any ideas?
Yves
Tuesday, September 09, 2003
A total guess, but if your page is xhtml (using the default for CD2, you might need the / at the end of your param tags:
<param .... />
Maybe that is why CD is stripping them. Maybe not!
Joel Goldstick
Tuesday, September 09, 2003
I just tried my guess, and I got it to work in ie6. In Opera 7.2 and Mozilla 1.4 the player shows, but for some reason you can't push the play button. hmmmmm
At least the code is there. Maybe its a browser compatibility issue
Joel Goldstick
Tuesday, September 09, 2003
Ooops. Measure twice, cut once! Here is a link to my test which works in ie6, Opera 7.2, Moz 1.4
http://columbuswebmakers.com/Workbench/mpgtest.html
cool!
BTW I just found the mpg online. If someone tells me I can't play it, i'll take it off.
Joel Goldstick
Tuesday, September 09, 2003
Joel,
Do your <param> tags stick around after you've switch to Normal View and back? Mine disappear, even if end them with />
Yves
Tuesday, September 09, 2003
Ok, I'm completely mystified. When I copy your html (generated by the same CD version as mine), and switch to normal view and back, the param tags disappear.
Yves
Tuesday, September 09, 2003
Gee, I never went into 'normal' view. But, if you find it a problem, put the whole object tag stuff in a variable. Then insert the variable in your article.
I haven't paid much attention to normal view problems, but I have noticed that weird stuff seems to happen. Putting snippets of code in the variables seems to shield them from those problems.
Joel Goldstick
Tuesday, September 09, 2003
Ok, sticking the code in a variable works.
Thanks a lot for the quick reply.
Yves
Tuesday, September 09, 2003
Joel, is your test page offline, or did you pull it?
David Watts
Tuesday, September 09, 2003
Forget my previous post - I was having a temporary DNS issue.
David Watts
Tuesday, September 09, 2003
Nice, even works in Safari for OS X.
Rhys Keepence
Wednesday, September 10, 2003
Hmmm... doesn't work with a download manager enabled. But then that's not surprising I guess.
MeJ
James Roberts
Wednesday, September 10, 2003
Joel, how did you get it to play?
I got it to appear but I can't play it.
Dick Dillon
Friday, September 12, 2003
Works for me. You might have to wait it a bit for the file to load. If in doubt hit reload.
Joel Goldstick
Friday, September 12, 2003
Recent Topics
Fog Creek Home
|