All about the Strategy, Design, Customisation, Deployment and Development of SharePoint and its related Technologies

  Administration   All Me!! Baby!!   BDC   Book Review   Business   CKS   Conferences   CQWP   Development   Duffer Moments   Email   Errors   Family   Fixes   General   Groove   How To   How To Code   InfoPath   iPhone   IRM   Longhorn   Lotus Notes   Migration   Mobility   Office System 2007   Personal Projects   Powershell   Records Management   Search Server   Security   SharePoint   SharePoint 2010   Silverlight   SQL   Tech Ed 2008   Testing   Vista   VSTO   WSS   XSL

[16/10/2008] Media Player Web Part *New*
 
Categories: Development, Office System 2007, SharePoint, WSS, Personal Projects
 

A while ago I wrote a web part that allowed the playing of "WMV" files inside of SharePoint. Since then I have been playing with it again and have changed it slightly. It is not ready for anyone to use yet as it is in a very "rough and ready" development state. I have made a few changes to the web part; the first one is that I have been experimenting with a custom component from ASPNetMedia. These components are fantastic they have done some of the work for you in regards to wrapping the joyous active x code into components you can use in your C# / VB.net code. Wanted I wanted to achieve this time was to make it so any kind of video file could be played through the web part and the video player would know which control to load based on its file extension. So if I now add the web part to the page it can be configured as shown below: (dodgy development version)

The first thing you are asked to do is select the players that you wish to add and use in the web part.

Next you need to add some basic control parameters such as size and whether to show it or not.

The URL of the file can be added by typing it in. I have a web share on my server that has some files:

Notice my wonderful naming convention!!

I simply add the URL that I wish to stream at this point and it should then add it to the properties. This link will load the flash video player.

All the completed parameters look as shown below:

So what does it look like, depending on the URL specified will dictate the control that is loaded. My URL's are:

Flash Video: http://localhost/Videos/video.flv

Real Player: http://localhost/Videos/video.mpeg

QuickTime: http://localhost/Videos/video.mov

Windows Media Player: http://localhost/Videos/video.wmv

When they render they should load as shown below:

Flash Video

Real Player

QuickTime

Windows Media Player

It needs polishing quite a bit but it works in principle. I have a few things to sort out yet:

  1. Web Part Connectivity
  2. Playlist Creation
  3. Ajax Refresh

Will plod along and see what I can do. J

 
23 Comments
 

Comments

Thursday, 16 Oct 2008 06:40 by eric
Is this going to end up on Codeplex or anything like that? This is really nice and would be very beneficial to the masses.

Thursday, 16 Oct 2008 07:10 by Kanwal
This looks great. Let me know if you need any assistance or when your releasing it for community adoption.

Thursday, 16 Oct 2008 07:26 by bill
I like it, I was just about ready to do something along these lines myself. Please let me know if you're going to place this out on codeplex or something.

Friday, 17 Oct 2008 08:57 by MB
I've been looking for a multi-format media player for just long enough that I started to consider building it myself. So I'll throw my hat in the ring with the others saying I'll support and develop with you if you want.

Friday, 17 Oct 2008 05:01 by Droswell
Great work. Just the kind of rich media web part we can all use! Hope to see it soon.

Wednesday, 22 Oct 2008 08:46 by

Wednesday, 5 Nov 2008 04:55 by Cristian
Are you planning to allow the Video URL be dynamically loadad by a filter?

Wednesday, 17 Dec 2008 02:11 by chandra shekhar
IT is excellent bu i want code. how to download it code. please send me code for sharepoint 2007 and process step by step

Thursday, 18 Dec 2008 09:58 by smiller
Awesome idea! Is the source still available for the initial web part? If so, how can i get it?

Tuesday, 6 Jan 2009 09:37 by chris
very nice jog ! can i apply a source code to study ... my email : chris@theegg.com Thank you very much !

Monday, 26 Jan 2009 02:06 by Marc
This is very close to something I am looking to do. Is the source code available for download

Monday, 2 Mar 2009 10:48 by Lynton
where can I download this webpart?

Monday, 2 Mar 2009 07:49 by Petronella
Hi ARe you sharing the sources= code ? I woudl loveto try it out

Wednesday, 25 Mar 2009 11:58 by Tanaji
hi Fantastic job Buddy !! can i get the source code ? I would like to study this web Part. Thanks

Wednesday, 8 Apr 2009 06:16 by Pavan Raj
where can I download this webpart?

Monday, 1 Jun 2009 08:30 by Mattias
Hi. Will it be possible to download this webpart in the near future? Regards, Mattias

Tuesday, 30 Jun 2009 07:48 by Catia
Hi, your webpart seems greet! Where I can download it? Thx Catia

Thursday, 23 Jul 2009 01:43 by Ranjith
I can see you have set height and width of the player runtime..Can you please tell me how to do that

Wednesday, 2 Sep 2009 12:19 by Tony
Hi, Your webpart sounds greet! Where I can download it? Cheers Tony

Friday, 18 Sep 2009 08:32 by Ariel
Like everyone's else - I liked it a lot, now we only need to be able to download...

Friday, 16 Oct 2009 07:31 by Jared
damn, looks like just what I need... wish could download or at least make your current source code available.

Friday, 13 Nov 2009 06:51 by korndin
Is' verry Cool. How can to download This webpart? Verry Thank You Korndin

Wednesday, 23 Dec 2009 05:22 by Daniel
Great webpart!!! Can I download it from anywhere?? Or get the code??? Thanks!!!

Name:

URL:

Email:

Comments: