Monday, January 14, 2008

Windows Media Player Embed

Here is an object / embed I used to successfully embed a .wmv movie in a website.  Users will see the Media Player controls at the bottom, and the movie will "buffer" automatically without the need for some special server software.

<!-- embed:  UCNvideo04.wmv -->
<object id="MediaPlayer1"
CLASSID="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsm p2inf.cab#Version=5,1,52,701"
standby="Loading Microsoft Windows® Media Player components..."
type="application/x-oleobject"
width="640" height="480">

<param name="fileName" value="UCNvideo04.wmv" />
<param name="animationatStart" value="true" />
<param name="transparentatStart" value="true" />
<param name="autoStart" value="true" />
<param name="showControls" value="true" />
<param name="Volume" value="100" >

<embed type="application/x-mplayer2"
pluginspage="http://www.microsoft.com/Windows/MediaPlayer/"
src="UCNvideo04.wmv"
name="MediaPlayer1"
width="640" height="480"
autostart="1" showcontrols="1" volume="100" />
</object>

We stopped using this though, and switched to FLV files loaded into FlowPlayer (flowplayer.org).

2 comments:

4everskyline said...

Hi,

I wondering that can i use my Windows Media Player on my blog to play a playlist?
for example,i had created a playlist and uploaded onto to web,is that possible for the WMP on my blog to play it so that my visitors are able to choose to hear what songs they like?
or you can visit my blog to see the WMP,thanks.

p/s:you can email me too!
sky_line718@hotmail.com

regards,
skyline100

Noffie said...

@4EverSkyline: I'm not really sure how to do what you ask, and I'm not even sure it is possible. Check out this thread:

http://www.ozzu.com/website-design-forum/embedded-windows-media-player-t70151.html

The same question is asked, and some people seem to think that it is possible using a couple of different techniques.

Disqus for A Nofsinger's Blog