How do I detect if an ad is playing when the source is Youtube? #1466
Unanswered
Bharath314
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am making a Video Question and Answer app that generates practice questions for videos on YouTube. I'm using vidstack to pause the video at particular timestamps to ask questions to the viewers.
The issue I'm facing is with pre-roll ads - my player doesn't know when a pre-roll ad is playing, causing it to pause the ad at a timestamp that was meant for the actual video. This causes the player to freeze and become completely irresponsive. I was wondering if there was a way to detect if an ad is playing so that I can prevent this bug.
Beta Was this translation helpful? Give feedback.
All reactions