What about doing this instead?
To remove the error from occurring.
Changing this:
https://jsitor.com/fH5DO8ZU6L
function play() {
player.playVideo();
}
To this:
https://jsitor.com/3zJoQBIuNi
function play() {
if (player.playVideo)
player.playVideo();
}
That’s how I fixed it.
And that error message no-longer appears.
Is that good?
Continuing the discussion from Playing YouTube videos from an array: