Exception in thread "main" org.openqa.selenium.JavascriptException: cannot read getPlayerState

JavaScript
what is getPlayerstate in youtube code in automating utube
getPlayerState

Source

Also in JavaScript: