Playing A Windows Media WMV File On A Share Point Site
Playing A Windows Media WMV File On A Share Point Site
Jennifer Lewis
Play a WMV File on a SharePoint Site
Page 2
Overview
Sometimes you may want to enhance your SharePoint site with a video. For example, you may
have to put a video of your CEO speaking on your site, or you have to put a training video on your
site. This document will show you how to embed a Windows Media/WMV file on your page.
Requirements
• Correct permissions to edit SharePoint pages (usually Administrator access)
• HTML knowledge
Instructions
1. Go to your SharePoint site.
2. On your SharePoint site, go to the page where you want to add the video. In this
example, I am putting the video on the default (first) page.
4. In the Web Part area where you want the video to play, click Add a Web Part. In this
example, I will be putting the web part on the left hand side.
5. Scroll down to the Miscellaneous section and select Content Editor Web Part.
9. Add the HTML that will embed a WMV video on the web page. If you are unsure on how
to do this, see the appendix at the end of this document, which explains the HTML code
for embedding WMV files on pages.
You can store the WMV file in a document library on the SharePoint site, or you can
reference a WMV file that is being hosted on another web site.
Note: If you set the parameter to play the movie automatically, your movie will play
automatically.
11. Make modifications on how to display the web part, such as changing the title name and
displaying either the title, title and border or hiding the title altogether. In this example, I
will be displaying the title only, and I am going to change the title.
12. Click OK
The HTML code for embedding a WMV video on a Web Page is as follows:
</object>
The parameters:
• Filename – this is the WMV file to embed in the page. The filename must include the
domain in which it resides.
• ShowControls – When this value is set to true (in the param tags) and 1 (in the embed
tag), the controls (play, stop, pause) will display in the video. When this value is set to
false (in the param tags) and 0 (in the embed tag), the controls won’t display.
• autoStart - When this value is set to true (in the param tags) and 1 (in the embed tag),
the video will automatically play when it’s loaded on the page.
• ShowStatusBar – When this value is set to true (in the param tags) and 1 (in the embed
tag), the status bar will appear
• ShowDisplay – When this value is set to true (in the param tags) and 1 (in the embed
tag), the file name will display.
For example: You want to embed video bogus.wmv on domain http://www.bogus.com, and you
want the following to occur: you want the person to be able to pause and rewind the video and
you want the video to start right away. You would use the following code to embed the video on
your page:
<object id="MediaPlayer" width=320 height=286 classid="CLSID:22D6f312-B0F6-11D0-94AB-
0080C74C7E95" standby="Loading Windows Media Player components…" type="application/x-
oleobject"
codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6
,4,7,1112">
To get a more detailed explanation of what this code means, read the article from
MediaCollege.com on embedding WMV files in a web page:
http://www.mediacollege.com/video/format/windows-
media/streaming/embed.html.