I tried to create a function in javascript to allow it to be possible to skip a few seconds in a video, but clicking the button simply returns to the beginning.
var video = document.getElementById("video1");
var segundos = 30;
function skip(segundos) {
video.currentTime += segundos;
}
function is called in HTML
<button class="pular" onclick="skip(segundos)">Skip</button>
I followed the examples given in the link but it did not work .