when this parameter is changed, it becomes equal to 0 and playback starts from zero .. Here is the HTML code:
<div class="audio-timeline"> <div class="audio-current-timeline"></div> <span class="song_path" style="display:none">media/audio/Noize MC - ΠΠΎΠ΅ ΠΠΎΡΠ΅.mp3/</span> </div> <div class="audio-elements"> <div class="audio-element play"><div class="audio-on"></div></div> <div class="audio-element stop"><div class="audio-stop"></div></div> </div> Here is the js code:
var timeLine = document.getElementsByClassName('audio-timeline')[0]; //ΠΎΡΡΠ»Π΅Π΄ΠΈΠΌ, ΠΊΡΠ΄Π° Π±ΡΠ» ΡΠ΄Π΅Π»Π°Π½ ΠΊΠ»ΠΈΠΊ ΠΏΠΎ Π²ΡΠ΅ΠΌΠ΅Π½Π½ΠΎΠΉ Π»ΠΈΠ½ΠΈΠΈ Π΄Π»Ρ Π±ΡΡΡΡΠΎΠΉ ΠΏΠ΅ΡΠ΅ΠΌΠΎΡΠΊΠΈ timeLine.addEventListener("click", function () { var width = timeLine.offsetWidth; console.log((100/width)*event.clientX); width = (100/width)*event.clientX; audioWidth = audio.duration * width / 100; console.log('audioWidth - ' + audioWidth); audio.currentTime = audioWidth; currentTimeLine.style.width = width + '%'; }, false); I tried to simply disable the js file and work with currentTime via the console, it still causes any audio recording restart for any change.