Issue: onReady() not called for second video, showing black screen #1284
Answered
by
PierfrancescoSoffritti
Satyamshakya0405
asked this question in
Q&A
-
|
I'm experiencing an issue where onReady() is not being triggered when playing sequential YouTube videos with a time interval between them.
Problem:
Here is the sample code. |
Beta Was this translation helpful? Give feedback.
Answered by
PierfrancescoSoffritti
Dec 4, 2025
Replies: 1 comment 4 replies
-
why? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I see. You could keep an instance of view and keep reusing that, it would be preferable.
What you're doing is also fine but more resource intensive and slower since the player needs to be initialized each time.