I have a html audio element playing my track. It's a pretty simple setup:
<audio controls loop="loop">
<source type="audio/wav" src="song.wav">
</audio>
I thought it would be just as simple to make custom start and end points. I.e. if my track is 10 seconds long, I want to trim a little so only the middle of the song is played.
From the W3 audio tag doc it doesn't seem like there's any options for specifying a start and end time.
I'm not asking for anyone to write code for me; I'm looking for a conceptual guide for how to approach this. I need it to work with the loop, i.e. it should start and end at my specified values every loop. I'm looking for an approach that is totally client side and that works in Chrome