I would like to detect if a user has played up to 90% of a YouTube video on my website, and then do something with that result. How would I achieve this with JS?
This is the basic setup:
<iframe src={`https://www.youtube.com/embed/${youtubeid}`}></iframe>