# YouTube Autoembeds for Live Streams

**URL:** <https://meta.discourse.org/t/youtube-autoembeds-for-live-streams/350920>\
**Category:** Feature\
**Tags:** onebox\
**Created:** [February 6, 2025, 5:48pm UTC](https://meta.discourse.org/t/youtube-autoembeds-for-live-streams/350920 "2025-02-06T17:48:40Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![cogdog](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/cogdog/32/116536_2.png) [@cogdog](https://meta.discourse.org/u/cogdog)\
**Post date:** [February 6, 2025, 5:48pm UTC](https://meta.discourse.org/t/youtube-autoembeds-for-live-streams/350920/1 "2025-02-06T17:48:40Z")

</div>

I run a few live events using Streamyard that go directly to YouTube. The stream becomes the recording, so the link is always good.

I notice that Discourse does not seem to embed the different URL format YouTube uses for this videos giving a generic OneBox e.g.,

`https://www.youtube.com/live/eJemwqO0SDw` e.g.

[![](https://global.discourse-cdn.com/meta/original/4X/5/a/a/5aa05ab77565b8287936a629ff6743b5fcc78cc2.jpeg "OE Week Live! AI and Language Translation for OER, Open Conversations #1") ](https://www.youtube.com/watch?v=eJemwqO0SDw)

whereas by manually using the same ID in a standard YouTube URL _does_ work in Discourse

`https://www.youtube.com/watch?v=eJemwqO0SDw` renders as expected

[![](https://global.discourse-cdn.com/meta/original/4X/5/a/a/5aa05ab77565b8287936a629ff6743b5fcc78cc2.jpeg "OE Week Live! AI and Language Translation for OER, Open Conversations #1") ](https://www.youtube.com/watch?v=eJemwqO0SDw)

YouTube does not readily provide this form of a live stream video as a share link, so I end up manually re-writing the URLs. Seems like some pattern matching magic could manage this?

---

_[View the full topic](https://meta.discourse.org/t/youtube-autoembeds-for-live-streams/350920)._
