I have a video player that I want to build.
i have a horizontal scroll bar
lenghtMovieLoaded = video.Duration;
hScrollBar1.Maximum = (int)Math.Round(lenghtMovieLoaded);
Lets say, my video.Duration is 1000 sec in total.
Now,in a label i want to show the 1-[current time] of the video /and the 2-[total time].
Something like: //label2.Text = "1-[00:00]/2-[00:00]";
I need to convert 1000 sec into minutes = easy part>>
video.Duration/60 and I have the current minutes.
Now... the problem is the "seconds" part... I need to increment them from 0- 60 while the hScrollBar1 is moving, and not go over 60 but to restart from 0 -60 and so on, AND to be accurate with the track.
If I am at 1min33sec the "sec" part must not be a erroneous mathematical trick.
I do not know what to search in Google for. An algorithm I suppose...
Or, if you know a tutorial about this thing...
Im not very good at math also :) heh - im an artist so...
and thank you.