CopyPastor

Detecting plagiarism made easy.

Score: 0.9651033650841233; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2019-09-16
by Foram Trada

Original Post

Original - Posted on 2018-11-13
by Agent Droid



            
Present in both answers; Present only in the new answer; Present only in the old answer;

You have to wait until the browser knows the duration of the video before you can seek to a particular time. So, I think you want to wait for the 'loadedmetadata' event something like this:
document.getElementById('myvideo').addEventListener('loadedmetadata', function() { this.currentTime = 2179; }, false);
You have to wait until the browser knows the duration of the video before you can seek to a particular time. So, I think you want to wait for the 'loadedmetadata' event something like this:
document.getElementById('vid1').addEventListener('loadedmetadata', function() { this.currentTime = 50; }, false);

        
Present in both answers; Present only in the new answer; Present only in the old answer;