YouTube video problem


I have a problem which I saw discussed already, I tried solutions but no one worked for me. I have this website: and I need to stop the video by pressing “Ëxit button”.

I tried 2 custom codes which I found here on the Forum but it doesn’t work for me.

Can anyone help me implementing a working code for this example, please?

Thank you!

Update: Solved