Progress Bar with Video on sync

How to implement logic behind progress in sync with the Video? Does anyone knows about it? 

Hi Nikhil Prahladka,

What type of device and progress bar, can you provide more information?

I am actually looking for a progress bar whose progress is decided dynamically based on the elapsed time on a embedded video. I am not able to extract  the elapsed time from my embedded video.