954,518 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Modify trackbar for buffering progress

Hi all,

I am working on a little application that displays internet video (using the chromeless Youtube player for now, will host more players later).
So obviously I need something like a trackbar (slider) control to let the user jump to a specific position in the video. I do this now with just a trackbar. As soon as the user moves the slider, it will jump to the position. ( This is my player, the trackbar below the video is what I'm talking about. Obviously I need to do some rearranging for the buttons, but this is just to clarify my case.)

However, I would like to show the buffering status for a video. I could do this by just showing a progress bar, but I would love to do this like Youtube, or any decent videoplayer. I am thinking about something like this . (Note: I created this in mspaint, I hope you catch my idea. The blue bar would be the buffering status, filling the bar from left to right.)

But, I'm not really sure how to make something like that. Can I inherit the trackbar and modify it? Do I need to create a custom control from scratch? How would you do this? Or am I totally on the wrong path here? What would you do?

Hmail
Newbie Poster
1 post since Jan 2012
Reputation Points: 10
Solved Threads: 0
 

Basically just a progress bar combined with a trackbar would do. The amount of customization is up to you. Overriding the OnPaint event would allow you to draw them any way you choose. I would try to get one working with default win form controls then tweak it from there.

skatamatic
Posting Shark
959 posts since Nov 2007
Reputation Points: 403
Solved Threads: 129
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: