Answer the question
In order to leave comments, you need to log in
How to track when a youtube video stopped?
I want to write a function that will be executed when the YouTube video has stopped (not pause) / or when it has reached the end (like the same). I can't figure out how to track when it stopped.
tried like this but doesn't work:
if(
jQuery(this)[0].contentWindow.postMessage('{"event":"command","func":"stopVideo","args":""}', '*')){
$('.testimImg').fadeIn(500);
//тут делаем что хотим;
};
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question