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 a lot @bajpangosh. But, maybe you can help me a bit more, please. So with tihs js, its possible to make traking by analytics in the videos? Thanks again.