Adding Video to a SharePoint Site
Adding video to your SharePoint site will probably come up sooner or later. There is a very easy way to do this. First upload your video to a document library. Then create a Javascript file and place it in the document library. Your Javascript file should build the embed and object code to insert the video.
function DisplayMovie() {
document.write('<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=5,0,0,0" height="211" width="210">');
document.write('<param name="movie" value="/Movie.swf">');
document.write('<param name="quality" value="high">');
document.write('<param name="wmode" value="transparent">');
document.write('<embed src="/Movie.swf" wmode="opaque" quality="high" pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" height="211" width="210"></embed>');
document.write('</object>');
}
The reason for the separate Javascript file is to work around the fact that you have to click on embedded media to activate it.
Once you have the Javascript file you can add a Content Editor Web Part to whatever page you want the video to appear in. If you add the following lines to the Editor Web Part it will call your Javascript file and display the video.
<script type="text/javascript" language="javascript" src="/en-US/FlashMovie.js"></script>
<script type="text/javascript" language="javascript">DisplayMovie();</script>
Labels: MOSS video, Sharepoint 2007, SharePoint video
1 Comments:
http://flashpart.codeplex.com/
Post a Comment
Subscribe to Post Comments [Atom]
<< Home