Use code for embeded video

I have a youtube video player on a webpage, that is linked to a youtube video by going into the settings of the video player.
However, I would like to know if there is a way of deciding which video is played using code, not by going into settings.
Thanks

Hi,
Yes, you can change the video URL using the video API here .

Best,
Tal.

Thanks! That looks very straightforward!

: )