Home > Uncategorized > Flash video within SharePoint 2007

Flash video within SharePoint 2007

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…

  1. Download a Flash Video Player web part for SharePoint 2007
    1. There is a sample file available for free from Microsoft’s open source catalog, www.codeplex.com.
    2. Go to http://svp.codeplex.com.  This is the web part that you’ll be installing as part of this example.
    3. Go to Downloads section, and click on the recommended download.  http://svp.codeplex.com/releases/41778/download/110456
    4. Click through the License Agreement.
    5. Save the downloaded file to c:\downloads\SharePointVideoPlayer.wsp
  2. Deploy the web part to your site collection
    1. Open a cmd window as an Administrator
    2. cd c:\program files\Common Files\Microsoft Shared\Web Server Extensions\12\BIN
    3. Stsadm -o addsolution -filename c:\downloads\SharePointVideoPlayer.wsp
    4. Stsadm -o execadmsvcjobs
    5. For this next line, you will need the URL of your Site Collection.  In this command line, my site collection is: “http://shrpnt2007:28656
    6. Stsadm -o deploysolution -name SharePointVideoPlayer.wsp -allowgacdeployment -force -immediate -url "http://shrpnt2007:28656"
    7. Stsadm -o execadmsvcjobs
    8. Iisreset
  3. Activate the Site Collection Feature
    1. Go to Site Actions -> Site Setting -> Site Collection Features
    2. Locate SharePoint Video Player feature and click “Activate”
  4. 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.
  5. Add the web part to your page
    1. Click Site Actions -> Edit Page
    2. Click “Add a Web Part”
    3. Add the “SharePoint Video Player” Web Part
  6. Modify the web part properties for the web part to point to the hosted flash video file
    1. Edit the web part properties
    2. Scroll down to “Video Player Properties”
    3. Modify entry for “FLV file”.  Use something that looks like this:
    4. <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>
  7. Click OK and Exit Edit Mode.
  8. 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!

Categories: Uncategorized
  1. June 14, 2011 at 9:43 am

    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.

    https://www.nothingbutsharepoint.com/sites/eusp/Pages/SharePoint-Flash-Guide.aspx

    Hope all is well,
    Stu
    http://about.me/stuartblank

    Like

    • June 14, 2011 at 9:49 am

      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

      Like

  2. Edward
    June 16, 2011 at 3:55 am

    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

    Like

  3. July 26, 2011 at 2:34 am

    😀 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.

    Like

  4. Brian Seneca
    August 22, 2011 at 11:51 pm

    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!

    Like

  1. June 15, 2011 at 5:05 am
  2. June 15, 2011 at 5:10 am

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: