m creating this funtinaliyt for mobile Application.

The scnario is, when a file(Video/Audio) is getting played i need to show the user its playback progress.

The playback percentage will be provided to me , which may vary between the range 0-100.
What m looking for is the logic to implement this.

The width of the progress bar is unknown.