Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

javascript wait 5 sec

function stateChange(newState) {
    setTimeout(function () {
        if (newState == -1) {
            alert('VIDEO HAS STOPPED');
        }
    }, 5000);
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #wait #sec
ADD COMMENT
Topic
Name
8+4 =