How to skip ad after 5 seconds using YouTube JS API?
1 answer
You just need to define the id of the skip button (if any). Then call the event by clicking on it. Something looks like this:
setTimeout(function(){ var _skip = $('#skip_button_id'); if(_skip!=null) _skip.click(); }, 1000);
This is not real code. Just let me know how to do it.
0
source to share