Click to See Complete Forum and Search --> : HELP! Embed both Win Media Player 7.1 & 9


dabooj
07-16-2005, 05:11 PM
Hi,

I have created a website which has video embeded in it. It runs using windows media player and i believe it is set as running for version 9. It all works well but on computers with the old version of Windows Media Player the video does not run.

What are the different setups to run video with the different versions of Windows media player in html?
Is there a way of detecting the windows media player version and selecting the right codebases & plugins?

The code i am currently using is as follows:

<object id='mediaPlayer' name=mediaPlayer
style="BORDER-width:0px;BORDER-style: solid; BORDER-color: '#CCCCCC';"
classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'
codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701'
standby='Loading Microsoft Windows Media Player components...' type='application/x-oleobject' height=260 width=260>
<param name='fileName' value="./4.wmv" />
<param name='animationatStart' value=1 />
<param name='transparentatStart' value=1 />
<param name='autoStart' value=0 />
<param name='showControls' value=1 />
<param name="ShowStatusBar" value=1>
<param name='loop' value=0 />

<EMBED type='application/x-mplayer2'
pluginspage='http://www.microsoft.com/windows/mediaplayer/en/default.asp'
id='mediaPlayer' name='mediaPlayer' displaysize='4' autosize='-1'
showcontrols="1" showtracker='-1'
showdisplay='0' showstatusbar=1
src="./4.wmv" autostart=0 designtimesp='5311' loop=0
style="BORDER-width: 1px; BORDER-style: solid; BORDER-color: '#CCCCCC';"
height=259 width=259 />

</object> ]

Please let me know if you have any ideas of how to embed video in html for both old & new windows media player versions.

Even the actual code for embedding video with the older version of windows media player would be useful.


Thank you,

Shuja.

Frosty
07-16-2005, 05:50 PM
Hello,
Please upload this, and give me a link, and I can help you alot more.
Until then, I hope this helps...
http://msdn.microsoft.com/library/en-us/wmplay10/mmp_sdk/paramtags.asp

flyingbits
07-19-2005, 04:54 PM
It looks like your embed script is set for windows media player 7 not 9. The class ID suggests this: classid='CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95'

There is a different class ID for 9: classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"

Also the line: codebase='http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701'
suggests that the script is set for 7.

This is something I'm in the process of trying to update myself and am having a very difficult time sourcing info for. If you change the class ID some of the params will not work. Thanks Microsoft

disjonk
07-29-2005, 12:46 PM
Try this link : http://www.bigbold.com/snippets/posts/show/297

It work, it's been a few hours I'm in the hell of embeding MWV and it's the first thing that works for me.

If something is wrong with it pleas notice me.

Have a nice day !

Syl Disjonk
http://www.disjonk.com/

dabooj
08-02-2005, 04:50 AM
Hi Frosty,

The link for my website is: http://www.worldtuning.net.
Go to the 'events' section as this has the latest pics & vids.
Now, i have been getting complaints from friends stating that the videos don't run. I tested this on an old machine and, true to their word, the videos didn't run. I assume it is the fersion of Win Media player being old on the PC that i used. But i need to come up with a way of allowing video clips to run even on older machines with old versions of Win media player.

Thank you

Shuja