You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've tried using the example code to check the state, ie
var player =jQuery("#myvideodiv").data("ytPlayer").player;
player.addEventListener("onStateChange", function(data){
console.log("Player State Change", data);
});
but the player variable is a null so any reference to this results in a JS error
The text was updated successfully, but these errors were encountered:
I've tried using the example code to check the state, ie
var player =jQuery("#myvideodiv").data("ytPlayer").player;
player.addEventListener("onStateChange", function(data){
console.log("Player State Change", data);
});
but the player variable is a null so any reference to this results in a JS error
The text was updated successfully, but these errors were encountered: