added a callback to add progress bar to video