Today I got a question from a client about how to add support for Flash videos within SharePoint 2007. I found a number of very old posts, and some that were more recent, but I had to cobble together a lot of different pieces to finally figure out how to create these steps to illustrate the process.
I hope that these steps are of interest, and save some time for someone who is looking to do the same thing again one day. I’d love to hear how these steps could be presented more efficiently, or where some time could be saved. One thing I learned, is that I’m glad that there are some companies that are trying to automate this to help enterprises with processing videos at high volume levels. I’m helping one of those companies now — Ooyala — to come up with an easy way to manage video. When that is ready to ship, I’ll let you know here.
Meanwhile – back to the steps…
- Download a Flash Video Player web part for SharePoint 2007
- There is a sample file available for free from Microsoft’s open source catalog, www.codeplex.com.
- Go to http://svp.codeplex.com. This is the web part that you’ll be installing as part of this example.
- Go to Downloads section, and click on the recommended download. http://svp.codeplex.com/releases/41778/download/110456
- Click through the License Agreement.
- Save the downloaded file to c:\downloads\SharePointVideoPlayer.wsp
- Deploy the web part to your site collection
- Open a cmd window as an Administrator
cd c:\program files\Common Files\Microsoft Shared\Web Server Extensions\12\BIN
Stsadm -o addsolution -filename c:\downloads\SharePointVideoPlayer.wsp
Stsadm -o execadmsvcjobs
- For this next line, you will need the URL of your Site Collection. In this command line, my site collection is: “http://shrpnt2007:28656“
Stsadm -o deploysolution -name SharePointVideoPlayer.wsp -allowgacdeployment -force -immediate -url "http://shrpnt2007:28656"
Stsadm -o execadmsvcjobs
- Activate the Site Collection Feature
- Go to Site Actions -> Site Setting -> Site Collection Features
- Locate SharePoint Video Player feature and click “Activate”
- The Above steps only have to be done ONCE. Once the web part is activated as a Site Collection Feature, then you can add it to as many pages as you’d like using the below steps.
- Add the web part to your page
- Click Site Actions -> Edit Page
- Click “Add a Web Part”
- Add the “SharePoint Video Player” Web Part
- Modify the web part properties for the web part to point to the hosted flash video file
- Edit the web part properties
- Scroll down to “Video Player Properties”
- Modify entry for “FLV file”. Use something that looks like this:
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="ooyalaPlayer_6m3j0_gow1g8v5" width="640" height="480" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab"> <param name="movie" value="http://player.ooyala.com/player.swf?embedCode=MwdXlpMjqnvUZs3V8Tujt5d1oU_ItJSr&version=2" /> <param name="bgcolor" value="#000000" /> <param name="allowScriptAccess" value="always" /> <param name="allowFullScreen" value="true" /> <param name="flashvars" value="embedType=directObjectTag&embedCode=MwdXlpMjqnvUZs3V8Tujt5d1oU_ItJSr" /> <embed src="http://player.ooyala.com/player.swf?embedCode=MwdXlpMjqnvUZs3V8Tujt5d1oU_ItJSr&version=2" bgcolor="#000000" width="640" height="480" name="ooyalaPlayer_6m3j0_gow1g8v5" align="middle" play="true" loop="false" allowscriptaccess="always" allowfullscreen="true" type="application/x-shockwave-flash" flashvars="&embedCode=MwdXlpMjqnvUZs3V8Tujt5d1oU_ItJSr" pluginspage="http://www.adobe.com/go/getflashplayer"></embed> </object>
- Click OK and Exit Edit Mode.
- The above Flash embed string is for streaming a static video. For streaming a live video, you follow the same approach, but the Flash embed string is slightly different, but only because the source file is a live streaming video and not a static streaming video.
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="ooyalaPlayer_6ubv0_gow38rxq" width="480" height="270" codebase="http://fpdownload.macromedia.com/get/flashplayer/current/swflash.cab"> <param name="movie" value="http://player.ooyala.com/player.swf?embedCode=BrMWtjMjpJU-7gE0lQqvnK75Wulzo6kT&version=2" /> <param name="bgcolor" value="#000000" /> <param name="allowScriptAccess" value="always" /> <param name="allowFullScreen" value="true" /> <param name="flashvars" value="embedType=directObjectTag&embedCode=BrMWtjMjpJU-7gE0lQqvnK75Wulzo6kT" /> <embed src="http://player.ooyala.com/player.swf?embedCode=BrMWtjMjpJU-7gE0lQqvnK75Wulzo6kT&version=2" bgcolor="#000000" width="480" height="270" name="ooyalaPlayer_6ubv0_gow38rxq" align="middle" play="true" loop="false" allowscriptaccess="always" allowfullscreen="true" type="application/x-shockwave-flash" flashvars="&embedCode=BrMWtjMjpJU-7gE0lQqvnK75Wulzo6kT" pluginspage="http://www.adobe.com/go/getflashplayer"></embed> </object>
I’m a selfish blogger, and I’ve got a sneaky feeling that I’ll need this list of steps again and again. I hope that it will be useful to you, also.
Yes, even for SharePoint 2007. After all, some of your best friends are still using SharePoint 2007!
Hey Owen! I wrote an article on how to use Flash video within SharePoint 2007 however it is targeted more towards end users. This solution isn’t deployed through stsadmn but it is another way to play Flash videos within SharePoint 2007.
Hope all is well,
Thanks Stuart – that’s a great article. If I had found yours first, I probbly would have used your approach. I especially love the fact that you are illustrating the Site Collection named “URL” with sub-sites “To” and “Your” approach. Clever! Hope to see you again soon. – Owen
You can convert FLV and SWF files to all kinds of different formats using Smart FLV Converter. I like it because it’s fast and easy to use. http://www.flvtoaviconverter.com
😀 By the way in the photo you can see the former greatest SharePoint competence in Switzerland which was a few years ago. Here we are: http://www.flickr.com/photos/steff_engeser/2505550374/
That time I was good locking 😉 and there weren’t so many SharePoint consultants and developers out there… fortunately this has changed.
Hi! a few days ago, i deployed this solution on our MOSS server. The deployment went great, but when i played a flv file, the player displayed this error message “300: Player initialization failed: SecurityError: Error #2156”
Hope you could help me on this. Thank you and have a nice day!