Let's check for isFinite for fileinfo.metadata.duration, setting default to blank something like isFinite(fileinfo.metadata.duration) ? MediaUtils.formatDuration(fileinfo.metadata.duration) : '';