youtube start end time url code example
Example 1: how to make a youtube video on a website and let it start by a set time
<iframe width="560" height="315" src="https://www.youtube.com/embed/**VIDEOID**?start=*WHATSECONDYOUWANTTOSTARTAT*" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>
Example 2: youtube player get current time
ytplayer = document.getElementById("movie_player");
ytplayer.getCurrentTime();