Use the YouTube API to interact with videos programmatically!
YouTube explains in their docs how to implement their API with one video on the page, but having more than one video requires some adjustments.
Since my clients often need more than one video per page, I put together an example solution in this pen.
A Pen by Kayla Branch on CodePen.
thanks, it was useful to me