wait for metadata to load when showing duration of videos