Gallery component with YouTube video end

For gallery component with Youtube playlist loaded, is there a way when the video ends, can I have the video stop or load it’s thumbnail and hold instead of it showing a series of other unrelated YouTube videos to consider next?

It should be possible. The YouTube API has onStateChange listener, which can tell you when a video has ended.

1 Like