Feed on
Posts
Comments

Stating the problem

I need a place to store my streaming media files.   I used the Silverlight streaming site for awhile, but Microsoft Azure came along and killed off the site.   Azure is a more general purpose application hosting service than the Silverlight streaming offering and provides many more services so this is a logical move by Microsoft. But regardless of whether it was a logical decision it leaves many people, including me,  with a need to find a new location to store their media files.

Choosing an alternate

The logical first choice, if you are comfortable with Microsoft technologies, is to move to Azure. 

Windows Azure is a cloud services operating system that serves as the development, service hosting and service management environment for the Windows Azure platform. Windows Azure provides developers with on-demand compute and storage to host, scale, and manage web applications on the internet through Microsoft datacenters.

Azure is very capable of storing my files.  But it can also do a lot more.  I considered using Azure, and looked at the pricing model.  In the end, I decide not to use Azure for my media files.  I’m not through evaluating Azure however,  I have some other projects coming later this year where Azure is a perfect fit.

Video Hosting sites

The obvious next step was to look at YouTube and other video hosting sites.  YouTube is ubiquitous and easy to use.   Vimeo is another practical video hosting site, which give you the option of allowing the user the ability to download the video file.  Both sites have their own embeddable video player, and provide detailed statistics about  the number of people viewing your videos. But in the end I opted to try something new.  I decided to use Dropbox.com as the media server.

Dropbox as friendly front-end for the Cloud

Seems like lots of people love Dropbox.com and it’s easy to see why.  It’s easy to setup, and it just works. 

Dropbox lets you create a folder on your computer. Drop anything in the folder and almost instantly it’s backed up to the web. Make a change to a document? BAM, backed up. Can’t get to your computer? Go to www.getdropbox.com or to the free iPhone app and you’ve got access to all your files, to share, email, or delete them. One of the best things about Dropbox is that it’s seamless. Once you’ve installed and setup Dropbox, you won’t even know it’s running. Anything you drop, change or save in the dropbox folder automatically gets synched to the web. You’ll never have to worry whether you backed something up, or what to do if you left your computer at home. – Link

At its heart DropBox is a file backup application.  All you have to do is install the Dropbox desktop application and copy files to the MyDropbox folder. They are instantly backed up to the dropbox servers. DropBox also excels at file synchronization. The Dropbox application will automatically sync to the Dropbox website and any other computer(s) linked to your account as soon as it notices a change in your Dropbox folder.   What appealed to me was the simplicity of uploading the files to the Dropbox server.  Just create a public folder  on the site and copy my media files to the correct public folder on my hard drive.  

Prerequisites for streaming Silverlight from Dropbox.com

For the best performance of your streaming media your video content should be saved in a stream friendly format.  I use Expression Encoder for that purpose. 

Setting up Dropbox

This is staggeringly easy to do.  Download the installer file from the Dropbox.com website and install on your local computer.

image

Figure 1 – Download button on DropBox site

On my computer the install only took a couple minutes to finish.  Next you need to setup a user account for the site.  This can be done on the website, or from the the local Dropbox application.  Once you have the account configured you can start using the MyDropBox folder.  It’s simple to add folder and files.   You can create private folders, but in my case I need to have the video files in a public folder so they can be accessed freely via a public URL.

image

Figure 2 – Public folder in MyDropbox.

As soon as the files are copied to the Public folder the DropBox application starts the sync process. This takes a few seconds, with the overall speed determined by the file size.  Once the file is in the folder you can right click the file and get the public URL from the Dropbox/Copy Public Link menu.

image

Figure 3 – Use Copy Public Link menu

Once you have the link you can easily use it in your Silverlight application.

<MediaElement Source="http://dl.dropbox.com/u/5070335/ShazzamOverview-v1.wmv" />

+++++ Announcement +++++++++++++++++++++++++++++++++++++++++
+ More than 90 online videos teaching you how to create Silverlight 3 apps.

+ Learn today with my Silverlight 3 Essential Video Training  course.
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

9 Responses to “Streaming Silverlight media from a Dropbox.com account”

  1. Bob says:

    I am facing a similar issue for a small customer. Any reason you did not use SkyDrive?

    • Walt Ritscher says:

      I have a SkyDrive account, and I thought about using it for hosting my media. In fact, I plan on using Skydrive for another batch of videos later this month. Then I can compare the performance and ease of use between the two services.

      Reasons for not choosing Skydrive this time around.
      1. I wanted to see if I could use a non Microsoft service to host. Dropbox is based on Amazon S3 services. Also, it makes for a more interesting article. Just showing the streaming media can come from any valid web source.
      2. Microsoft has a number of similar services. Foldershare, SkyDrive, Mesh, Azure (direct). It can be hard to determine which one to use with so many choices.
      3. I’ve already had to move off of a Microsoft system.(Silverlight Streaming). To prevent me having to move again in the future I’d prefer to have a better grasp of which of their many system will be the ultimate winner.

      Anyway, as I said earlier, I don’t see any reason Skydrive wouldn’t work.

  2. Daniel K. says:

    Great Tutorial, thanks a lot. Love your WPF Blog ;)

  3. I’m a Silverlight Developer (based in Miami, Florida), and I have Silverlight for Media site - WMV high definition content showcase :
    http://www.lightearthdemo.net/MediaPlayerTestPage.aspx

    After the free MS Silverlight Streaming service @ the end of January, I too considered Windows Azure. The key for my application is to provide the actual URL in the XAML, which allows for a live streaming experience (rather than the lengthy process of downloading a .wmv to a Silverlight client).

    In the final analysis, DropBox.com was a perfect fit for my application requirements!

    Best regards, Rob

  4. The only issue to keep in mind is that DropBox is meant for sharing of files casually between a group of people and not for high volume. I tried switching my files there and within one day received a friendly letter stating that I had exceeded bandwidth and that my public links would be disabled until further notice. It turns out they don’t publish explicit bandwidth requirements but also don’t want the size used for general, public hosting of large content that will be accessed or downloaded frequently.

  5. Joelle says:

    Does bandwidth really make a big difference?

  6. [...] Streaming Silverlight media from a Dropbox.com account (Walk Ritscher) [...]

  7. Rene Schulte says:

    I did move my Silverlight apps and videos shortly after Silverlight Live Streaming was discontinued in October 2009 to Dropbox and blogged about it here:
    http://kodierer.blogspot.com/2009/10/live-silverlight-streaming-being.html
    It works fine with my Silverlight apps until now. I guess large videos would be a problem due to bandwidth constraints that Jeremy also encountered.

  8. [...] Nollet is in good company (Walt Ritscher) because he’s demo’ing synching OOB apps with [...]

Leave a Reply