I created a new page especially to test the API. When copy pasting their example with
and
Also experienced this issue in one of our apps earlier today, I believe it's as a result of some internal changes / code push in youtube. Something similar happened in June c.f YouTube iframe player API - OnStateChange not firing
I resolved my issue by replacing
with
thus letting the js script replace the div.
The clue was in your questions, so thanks.