Advertisement

Silverlight 2 Media Player project now open source

Over the past few months Joel and I have been back-and-forthing modifications to his original great idea and goal “build a re-sizable video player using no custom user controls, but instead leveraging controls styles and templates.”  Joel started in Silverlight 2 Beta 1 and implemented using the style method (aka ‘the MIX model’) available at that time. 

I took it and added some functionality of scaling and startup parameters.  After the VisualStateManager model for styling was released, this project made perfect sense to demonstrate those abilities and thus I transformed the great styling work that Joel did into the VSM model.

Joel has since gone back into the project and implemented media marker support and an enhanced user interface to display them.  I found one issue in his marker implementation and emailed him about it with a suggestion that (reading between the lines) loosely translated was: how about we stop emailing this project and open source it?

The next day Joel has pushed the project to Codeplex.  Introducing Silverlight 2 – Video Player

Here's a running sample:

The current implementation is up there (with an already work item suggested by me :-)).  Awesome!  Joel chose the Common Development and Distribution License which I think is very similar to the less wordy (by 2,153 words) Microsoft Public License, both of which are approved OSI licenses for open source.

UPDATE: Joel has changed to use the Ms-Pl license on the project!

Thanks to Joel for putting it out there as an open source project.  Some simple code but hopefully will help those using Silverlight and media create quick experiences with an embeddable, skinnable solution!

Related posts:


This work is licensed under a Creative Commons Attribution By license.

  1. 6/24/2008 2:10 PM | # Very nice!
    Overall very nice. I especially like the small K size of the embedded player file.
  2. 6/24/2008 4:32 PM | # re: Silverlight 2 Media Player project now open source
    This is a really nice looking player, Tim. What format does the media have to be in? I downloaded the example to see that it is playing an .asx file. That's streaming media right? Do I have to transcode my video to that format? Can it be done programatically?

    I downloaded the sln from codeplex bus the VideoPlayer project type was not recognized by VS2008. I'm guessing that I need to install some Silverlight 2 project package? Is it part of the SP1 beta for VS2008?
  3. 6/25/2008 8:55 AM | # re: Silverlight 2 Media Player project now open source
    @Lance: hey there! yes you need the tools: http://silverlight.net/GetStarted
  4. 6/26/2008 8:31 AM | # re: Silverlight 2 Media Player project now open source
    Might want to check the license file. I actually read it, and apparently the original licensor is Sun. Rather funny actually give the history between MS and Sun. I also don't like that source availability is required. Does this mean I have to provide the full source to my SL app if I use this player in it? Needless to say I didn't agree to the license, as it appears too restrictive.
  5. 6/26/2008 9:06 AM | # re: Silverlight 2 Media Player project now open source
    @CoderX: blech, I'm not a lawyer and hate trying to interpret things. Which is why I like the Ms-Pl so much...short, to the point, no hiding anything...and very permissive. Please keep in mind that this project is NOT a Microsoft one -- Joel does not work for Microsoft so he chose an OSI-approved license based on his understandings. It does appear that the CDDL 3.1 clause would require you to provide source code *if you distribute* -- again, I'm not a lawyer, but I don't read that as if I would use this on my own site or something that I'm distributing a product in executable form or not. Again, this is why I love Ms-Pl -- use it, modify it, make money off of it, knock yourself out. I've forwarded the feedback to Joel though.
  6. 7/7/2008 2:38 AM | # re: Silverlight 2 Media Player project now open source
    buono
  7. 7/9/2008 3:35 AM | # re: Silverlight 2 Media Player project now open source
    Hi tim, i really like the look and feel of your video control... but there is a problem, the fixed size.. i want to put it like a 500*400, but i the controlscontainer is fixed size, as the video player.. the video only plays in 240 height not the 400 i want...

    how can i solve this?

    Thanks.. i lets keep up in the light :)

    Rui

    Web developer - Portugal
  8. 8/1/2008 4:40 AM | # re: Silverlight 2 Media Player project now open source
    thanks you .. perfect docs
  9. 8/25/2008 5:48 AM | # re: Silverlight 2 Media Player project now open source
    Are they going to include embed functionality without IFrames?
  10. 1/9/2009 10:59 PM | # re: Silverlight 2 Media Player project now open source
    Hey - was wondering if this could possibly be added to a SharePoint web part and used within that environment. Thanks - great work!
  11. 1/10/2009 11:35 AM | # re: Silverlight 2 Media Player project now open source
    Greg, you could absolutely put this easily in a Content Editor Web Part.

 
Please add 5 and 1 and type the answer here:
First time here? You are looking at the most recent posts. You may also want to check out older archives. Please leave a comment, ask a question and consider subscribing to the latest posts via RSS or email. Thank you for visiting! (hide this)