We can move this check  to ShowFileInformation where we are anyways checking for fileinfo.metadata.video
https://github.com/mozilla-b2g/gaia/blob/master/apps/gallery/js/info.js#L8

We can get rid of style.visibility, display property should suffice to show and hide duration. I will suggest moving show and hide in it's own function showDuration and  hideDuration.