Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

iframe player youtube onfinish event

// Youtube has a JavaScript API: https://developers.google.com/youtube/js_api_reference
player.addEventListener("onStateChange", function(state){
    if(state === 0){
        // the video is end, do something here.
    }
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #iframe #player #youtube #onfinish #event
ADD COMMENT
Topic
Name
7+2 =