Windows Media Services 2008 and Media Player Web Part


My team and I have been playing with Windows 2008 Server RTM and have been playing with the downloadable feature from Microsoft which is Windows Media Services 2008.

It’s a very easy program to download and we are going to be using it to stream videos made in our school and also sound tracks made by our podcasting team and music department.

Back in July I published Steve Sofian Media Player web part for him as his blog was down and would like to thank him again for his work.

I just added the Media Player Web Part to a site and in the source field for the video location added the media streaming URL something which is like mms://mediaserver.domain/video100

It worked fine. 

Useful Links


Media Player Web Part: Updated


Steve Sofian posted on his blog about the Media Player Webpart for MOSS.

I went to install it on another web application earlier today and found his blog has gone.

Steve, if your reading this I hope you don’t mind me posting it again.  All the credit is yours.

This webpart allows you to play avi, mpg and wmv files with in your MOSS site.


Open the root folder of your site.  Default location is C:inetpubwwwroot.

If you don’t know your default root open IIS and right click on your website (default website), properties.  Click on the home directory tab and it will show you the location.

Always make a copy of a file before making changes to it

Open web.config in notepad

Find </SafeControls> within the text.

Above that text add the following.

<SafeControl Assembly="MediaPlayerWebPart, version=, Culture=neutral, PublicKeyToken=4907dffeafb11512" Namespace="NFWebParts" TypeName="*" Safe="True" />

Save the file.

You will notice your site takes a while to load again.  If you edit web.config your site has to restart – which will happen automatically.

Copy mediaplayerwebpart.dll to the bin folder in the root of the your website.

On your top level site go to Site Settings. Under the heading of Gallery you will see Web Parts – When the list has appeared you will see all the webparts that are currently being used on your site.

Click on new – if you have added the code to web.config and the file to the bin folder you will see the web part listed at the bottom.  Check the box next to it and click on populate.  This will add the webpart call mediaplayerwebpart.

Download the file from here: /files/folders/ajp/entry3059.aspx

Things to watch out for

  • You have to enter the size of the video. I would recommend 320 width and 240 height – like the picture above.
  • Remember when creating the video that the user from home or within your LAN needs to be able to stream the video. If the video bites for second are high than their download speed they will have trouble streaming and watching it.