modified the videoplaybackview so that if no end time is set the duration of the file is set as the end time