Video slider control

image The updated Slider control in Silverlight 2 Beta 2 burned a number of developers, including myself.  I relied heavily on the MouseLeftButtonDown and MouseLeftButtonUp events that are now handled by the Slider.  Another feature lacking in the Slider is the ability to show the amount of content downloaded.  This is a pretty standard feature of web based video players.  Time to call the CustomControl to write a new Slider that enables you do both clicking on the slider track which moves the Thumb to the clicked location and adding a download progress indicator.

Here is the resulting control:

image
Common slider

image 
image 
With the new Slider you can click on both the right and left sides of the Thumb to update the position.

 image 
Now you can send the DownloadProgress from the MediaElement to this control and it will update the the download progress bar.

 

The control is on CodePlex (Download the code).

 

Enjoy!

4 comments so far

  1. […] with the Slider not recoginzing MouseLeftButtonUp or MouseLeftButtonDown events, check out the VideoSlider Possibly related posts: (automatically generated)Create memories of your day with the interactive […]

  2. […] Video Slider Control (Corey Schuman) […]

  3. […] Shumann takes the slider control one step further with his Video slider control Manish Dalal revisits Validation for Silverlight apps Mike Snow gives us his tip on How to […]

  4. […] Video slider control […]


Leave a reply to Create a video player in Silverlight 2 - Part 2 « Silverlight made simple Cancel reply