Here i made a video to play on the screen,I need to keep a slider bar on the video. Do you have any concepts to calculate the video timing and with the timing how to keep the slider thread.
int percentageCompleted = ((totalTime - elapseTime) * 100)/totalTime;
g.setColor(0, 255, 0);
g.fillRect(10, 10, (percentageCompleted * barWidth) /100, barHeight);
g.setColor(0, 0, 0);
g.drawRect(10, 10, barWidth, barHeight);
Users browsing this forum: No registered users and 1 guest