No me hago responsable si copiaste mal algún código que sale en las páginas de este sitio.
Ojalá sea de ayuda para más de alguno este sitio.
Se agradece si deja algún comentario.

martes, 5 de octubre de 2010

Video Streaming in SharePoint 2007/Media Player in SharePoint 2007

http://csharptalk.blogspot.com/2008/09/video-streaming-in-sharepoint-2007media.html

The idea came that I need to do video streaming in SharePoint 2007, I did small research and found 2 ways to do such a thing:

Method1:

1. Add Content Editor Web Part into your page.
2. Edit the properties of the web part.
3. Click the “Source Editor”
4. Simply copy and paste this code:

<\OBJECT id="VIDEO" CLASSID="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6" type="application/x-oleobject">
<\PARAM NAME="URL" VALUE="http://sitename:42875/Documents/CocaCola-Jump.wmv">
<\PARAM NAME="animationatStart" VALUE="true">
<\PARAM NAME="transparentatStart" VALUE="true">
<\PARAM NAME="SendPlayStateChangeEvents" VALUE="True">
<\PARAM NAME="AutoStart" VALUE="false">
<\PARAM name="uiMode" value="mini">
<\PARAM name="AutoRewind" value="true">
<\param name=enableContextMenu value=false>
<\OBJECT>
Explanation: the idea behind this code is simply you create an object with a classid that indicates windows media player version 7. This code will create an embedded instance of windows media player and plays the video you uploaded in your document library.
Method2: Media Player Web Part

It’s a readymade media player web part that runs an instance of windows media player and plays all the type of files the player can play, and the credit for this web part goes to the owner who built it as you will see in the link.

1. Download the web part from this link:
http://www.sharepointblogs.com/files/folders/ajp/entry3059.aspx
2. Copy the mediaplayerwebpart.dll to the bin folder of your MOSS web site.
3. Open the web.config of your site and add SafeControl entry like this: <\SafeControl Assembly="MediaPlayerWebPart, version=1.0.0.0, Culture=neutral, PublicKeyToken=4907dffeafb11512" Namespace="NFWebParts" TypeName="*" Safe="True" />
4. Inside your site, go to Site Actions > Site Settings > Modify All Site Settings > Gallery > Web Parts
5. Click New > select the media player web part > populate gallery
6. Now your web part is there, you can use it in any page and play videos
Hope this article was useful for all.

No hay comentarios:

Publicar un comentario