I have searched a lot about this but I can't find any solid code snippet of anything like that that explains how this would work.
Google Podcasts web app does this and I would like to learn how this works for a web app I'm building.
A lot of podcast apps let you skip silences even as small as half a second long silences.
How can I do this with JavaScript?
You can try this:
<script>
function skip(s) {
var aud = document.getElementById("myAudio");
aud.currentTime = vid.currentTime + s;
}
</script>
<script>
while true {if document.getElementById('myAudio').currentTime == 5 {skip(0.5)}}
<audio id='myAudio' src=potcast.mp3 controls><br>
<button onclick=skip(0.5)>Skip</button> <!-- 0.5s = skip(0.5) -->
How to use it?