0

A window with 'Progress' sample.

I don't know what people call the GREEN thing above. Yes, the one that just like progress on ProgressBar. It usually appear on file transfer dialog and Video Player window. On Video Player window, that 'Progress' represent the video position.

Now, in my application, i want to do 'something' when the user has watched 75% of the duration.

Currently, i can approach this by reading the video duration and use DispathcerTimer. But, i found this not effective when the user pause the video.

So i came up with this idea, using that GREEN thing would be nice, because when the user pause the video, the 'Progress' also stop.

Is there a way to get the value of that 'Progress' ??

Wahyu
  • 4,203
  • 1
  • 19
  • 21

1 Answers1

2

The API only provides a way to set the taskbar progress state using the SetProgressState and SetProgressValue functions, therefore you can't retrieve this value from the taskbar. The available .NET class (TaskbarItemInfo) is just a wrapper around this API.

As a workaround, you can embed a video player into your application so that you can control and keep track of the position yourself.

Dirk Vollmar
  • 172,527
  • 53
  • 255
  • 316