Embedding Player with Javascript API - Callback?

your solution worked for me, too.
-> I found my (very basic) mistake: Didn’t deploy my file on a webserver, so the script showed a different behavior.

Thank you for helping me find that mistake.