Multiple Embed Videos at the same page

Try making each variable unique.

For example in each of your <script> blocks you player, which is fine when initializing the player, but the 2nd <script> block overwrites the first reference to player with a new one, and the 3rd <script> block overwrites that, so even if each function is now unique they still all reference the same player as the functions will reference whatever the value of player is at the time it’s called.

If you’re not seeing why things are interfering with each other, maybe try to use just a single <script> block, or load a single .js file rather than break the code up the way you have.