Jump to content

Heretic86

Members
  • Posts

    38
  • Joined

  • Last visited

Community Answers

  1. Heretic86's post in Javascript Await audio.duration was marked as the answer   
    I fingered it out.  Wait, that came out wrong.  Take Two, Action!  I figured it out!
    Apparently this works much more way lots gooder-er...
    audio.ontimeupdate = function(){ audioController.value = audio.currentTime * (100 / audio.duration); currentTime.innerHTML = Math.floor(audio.currentTime / 60) + ":" + ("0" + Math.floor(audio.currentTime) % 60).slice(-2); totalTime.innerHTML = Math.floor(audio.duration / 60) + ":" + ("0" + Math.ceil(audio.duration) % 60).slice(-2); }  
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.