# Gallery component with YouTube video end

**URL:** <https://forums.realmacsoftware.com/t/gallery-component-with-youtube-video-end/52223>\
**Category:** Elements\
**Created:** [November 4, 2025, 8:07pm UTC](https://forums.realmacsoftware.com/t/gallery-component-with-youtube-video-end/52223 "2025-11-04T20:07:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jharwig](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/jharwig/32/31933_2.png) [@Jharwig](https://forums.realmacsoftware.com/u/Jharwig)\
**Post date:** [November 4, 2025, 8:07pm UTC](https://forums.realmacsoftware.com/t/gallery-component-with-youtube-video-end/52223/1 "2025-11-04T20:07:56Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![PeteSharp](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/petesharp/32/31752_2.png) [@PeteSharp](https://forums.realmacsoftware.com/u/PeteSharp)\
**Post date:** [November 5, 2025, 1:40am UTC](https://forums.realmacsoftware.com/t/gallery-component-with-youtube-video-end/52223/2 "2025-11-05T01:40:25Z")

</div>

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