I'm trying to get an embedded video to start and end at a specific time. But, I need it to start and end at the specified times even when the video is refreshed. However, while I can get the start and end times to work on the first viewing, when the video is refreshed, it starts from the beginning.
I have no idea how to fix this, or whether it is possible, so I'm hoping someone can help me out.
Any ideas how I can do this?
Here is my code:
<iframe
width="560"
height="315"
src="https://www.youtube.com/embed/DAOZJPquY_w?start=10&end=15&"
title="YouTube video player"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
allowfullscreen>
</iframe>