I'm trying to remove the download link to the control, could anyone help with this please?
<html>
<head>
</head>
<body>
<audio id="sample" src="unforgettable fire.mp3" controls preload></audio>
<br>
<a href="javascript:playSegment(10, 15);">Play1</a>
<script>
var audio = document.getElementById('sample');
var segmentEnd;
audio.addEventListener('timeupdate', function ()
{
if (segmentEnd && audio.currentTime >= segmentEnd)
{
audio.pause();
}
console.log(audio.currentTime);
}, false);
function playSegment(startTime, endTime){
segmentEnd = endTime;
audio.currentTime = startTime;
audio.play();
}
</script>
</body>
</html>