ShowTimeDuration

Hi, What’s the problem with this to show duration time of each file

html

  <div class="data">
        <div class="current-time"></div>
        <div class="divider">&nbsp;/&nbsp;</div>
        <div class="time">
        </div>
      </div>

css

  --player-current-date-time: "00:00";
.audio-player .player .timeline .data .time::before {
  content: var(--player-current-date-time);
}

JS

  function showTimeDuration() {
    const { duration } = audio;
    const durationDisplay = formatTimeToDisplay(duration);
    audioPlayer.style.setProperty(
      "--player-current-date-time",
      `'${duration}'`
    );
  }