- Use out of box web part to play audio or video media file
- Use SharePoint 2010 to play audio or video media files on Media server
- Use third-party media player to play audio or video media file
1. Use out of box web part to play audio or video media file
There are three different ways you could use out of box web part to play media file.You could check this excellent blog how to setup each of them in details.
- You can add a Media Web Part to the page to play an individual audio or video file.
- You can configure dynamic displays of video or audio by configuring the Content Query Web Part to display audio or video files.
- Or you can embed a video from a third-party video sharing site by using embed code.
The first and easiest way is to use the Media Web Part to play media file. The pros is it's easy to setup and you could follow up this excellent blog on the procedure. However, the cons is if you use embed code or sharing links for pages that host video, they will not work. For example, you could not play youtube video using youtube URL like http://www.youtube.com/v/09-M-S7Og0o&hl=en_US&fs=1& in the configuration. This approach only display the static media file and could not display dynamic file. There are limited formats this web part will support
The second option to use Content Editor Web Part to play media file. The pros for this is you could display one file or multiple files dynamically from the filter. The cons is that you need to know little xml file format. Here is example to setup to play youtube.
- Use Content Editor Web partEdit page and add web part
- Select “Content Editor Web Part” under “Media and Content” and add to the page
- Click the empty space of the web part and it will display the ribbons
- Under Editing Tools, click HTML and then Edit HTML Source and type in the following code
<embed src=" http://www.youtube.com/v/7ByiLIosTPA&hl=en_US&fs=1&"
You could also add JQuery to display list of the files for this web part. Please see other blogs for details.
The third option to use embed code from a third-party video-sharing website to add a video to a page, you can do so by adding the embed code to the Content Editor Web Part. The pros of this approach is very flexible and the cons is you need Designer permissions to do this and may be very tedious for non programmers. The code is similar like this.
<object width="480" height="385">
<param name="movie" value="http://www.youtube.com/v/EODwh5hS7ZY&hl=en_GB&fs=1&rel=0&color1=0x2b405b&color2=0x6b8ab6"></param>
<param name="allowFullScreen" value="true"></param>
<param name="allowscriptaccess" value="always"></param>
<embed src="http://www.youtube.com/v/EODwh5hS7ZY&hl=en_GB&fs=1&rel=0&color1=0x2b405b&color2=0x6b8ab6" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed>
2. Use SharePoint 2010 to play audio or video media files on Media server
Microsoft provides Streaming Media Services that enables you to manage delivery of live or on-demand digital media content, including Windows Media Audio (WMA) and Windows Media Video (WMV), over networks by using administrative interfaces in Microsoft Windows Media Services 2008. If you need to check the details on the installation, you could check the SharePoint Gorge blog.
The pros of this approach is you have the separate Media Server to handle all the different format of the media and the size of the file. As a result, it could support all different media formats and large files. The cons is the installation is complicated especially on the Video Transcoding installation and configuration. In our case, we have setup the architecture to allow SharePoint users to download files to SharePoint and we handle the media file transcode and decode from the back end. Here is the summary of the architecture for your reference.
- A user uploads a video to the Video Library
- The event receiver copies the video and a configuration file to a share on the WMS server
- Windows service on the WMS server sees the new configuration file, reads the configuration information and uses that to transcode the video if necessary (WMV files do not need to be transcoded)
- After transcoding the video, the Windows service will place the final video into the folder mapped to the WMS Publishing Point (making it available for on-demand streaming)
- Install Cook codec
- Install FLV Splitter
- Install RRM Splitter
- Install Real Alternative
- Install MpegDecoder012
3. Use third-party media player to play
After we explore the out of box web parts and Microsoft Media Server, we found neither of them could satisfy our end users requirement that is users should be able to setup the page and play different media formats themselves without IT involvement. Out of box web parts could not support all media formats or need some coding skills. Microsoft Media Server needs IT involvement to setup the back end and configure the connections to Mediaa server. If you want to have a simple way to allow end users to utilize SharePoint 2010 to play media and video, the following third party Media Player Rotator Web Part probably is one of the best options for you now.
We looked at this Media Player Rotator Web Part. End users could either selects a random media file, a specific media file or a media playlist from the specified Sharepoint Picture or Document Library. The Microsoft Media Player plug-in is used to play back the media files.
Supported file formats are MP3, SWF (Flash), FLV/F4V (Flash Video), PDF, AVI, WMV, MP4, MPG, MPEG, YouTube, ASX, RTMP (Streaming Media), MOV and M4V (QuickTime). You could display
a single static movie or list of files. You could display YouTube videos or any files from Sharepoint List or Library.
There are two drawbacks on this web parts. It does not support Target Audience as out of Media Web part does. It does not support streaming and as a result, web part requires media players (FLV, Windows media and Quick time) should be installed on client or server systems, otherwise it won’t play any video file.
With more demanding on the Media and video file support from SharePoint users, I'm hoping Microsoft could come up much easier way to support all different formats in the near future. May be SharePoint 2015?