$ 0 0 I have made a media player in which I want to add a progressbar. To get this working I need to be able to get the duration of the file that's being played at that moment. Can anyone tell me how I can do this?