changing src and currentTime doesn't work together
问题 Well, the thing is, for my application, I have to change the video src and currentTime dynamically. I have tried changing both independently which worked fine. But, when I tried to do them together, there is some problem. This is my video tag and a button, onclicking which src and currentTime must be changed. <video id="video" src="sample.mp3" controls autoplay></video> <button onclick="foobar()">change</button> and my foobar() function is function foobar() { v=document.getElementById("video"