# Twitch clips embed problem

**URL:** https://meta.discourse.org/t/twitch-clips-embed-problem/344678
**Category:** Bug
**Created:** [December 28, 2024, 4:39pm UTC](https://meta.discourse.org/t/twitch-clips-embed-problem/344678 "2024-12-28T16:39:29Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [December 28, 2024, 4:39pm UTC](https://meta.discourse.org/t/twitch-clips-embed-problem/344678/1 "2024-12-28T16:39:29Z")

</div>

### Problem

Embedding a Twitch clip does not work, it somehow generates a bad `parent` parameter.

`https://www.twitch.tv/paymoneywubby/clip/AmazonianMoralSwordCharlietheUnicorn-JoRQeBi1QJuyKfu2`

https://clips.twitch.tv/embed?clip=AmazonianMoralSwordCharlietheUnicorn-JoRQeBi1QJuyKfu2&parent=meta.discourse.org&autoplay=false

At first I thought `meta.tag` had to do with Discourse Meta, but it’s the same value on every instance.

 ![image](https://global.discourse-cdn.com/meta/original/4X/6/8/0/6809e982ad911c3ce6c7dc71825527c963805e45.png)

When you manually change the link into the actual hostname of the forum, the iframe will load.

A quick Google search leads me [here](https://discuss.dev.twitch.com/t/parent-meta-tag-player-wont-connect/29739/), to another piece of software having the same issue, and the gist of that topic is

> This suggests that it’s scraping the Twitch page for the Embed code. And is not replacing “meta.tag” with the correct parent.

Which seems to be the case here as well.

---

<div class="post-metadata">

### Author: ![Heliosurge](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/heliosurge/32/571810_2.png) [@Heliosurge](https://meta.discourse.org/u/Heliosurge)
#### Post date: [December 28, 2024, 9:10pm UTC](https://meta.discourse.org/t/twitch-clips-embed-problem/344678/2 "2024-12-28T21:10:28Z")

</div>

The link you posted above the pic. Is that the one not loading the iframe? When I created a post in my instance (Tests-passed) up to date it loads

```plaintext
https://www.twitch.tv/paymoneywubby/clip/AmazonianMoralSwordCharlietheUnicorn-JoRQeBi1QJuyKfu2

```

Here on Meta doesn’t load

https://clips.twitch.tv/embed?clip=AmazonianMoralSwordCharlietheUnicorn-JoRQeBi1QJuyKfu2&parent=meta.discourse.org&autoplay=false

Screenshot from my forum.

 ![A mobile screen displaying information about Twitch as a leading video platform and community for gamers. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/8/c/3/8c318312cf1d118adb4fa1a51252fff305bc4553.jpeg)

I thought it might have been added via the iftrane #Customization > Theme component & site settings. But twitch is not directly added to either.

My dashboard for version

 ![An app screen showing version information and suggesting a recent update. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/0/5/f/05fbec6cc9ac160e914cfc18c00cf73cf4814e1e.png)

Additional info This is in my Google Pixel 8 Chrome

---

<div class="post-metadata">

### Author: ![RGJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rgj/32/523185_2.png) [@RGJ](https://meta.discourse.org/u/RGJ)
#### Post date: [December 29, 2024, 12:00am UTC](https://meta.discourse.org/t/twitch-clips-embed-problem/344678/4 "2024-12-29T00:00:25Z")

</div>

> [@Heliosurge](#):
>
> Screenshot from my forum.

On my tests-passed instance (same commit as yours), I get a regular onebox when I paste that link, just like on your forum. But when I add `?foo` (or any other query parameter) I get the behavior like here on Meta. So I guess that’s a second bug (or at least: something I don’t understand)

But anyway… that’s a regular onebox. I want an embedded player (and that’s what I get when I manually “fix up” the `parent` parameter in the link through the dev tools inspector)

 ![image](https://global.discourse-cdn.com/meta/original/4X/b/f/7/bf7db74dc6d9f839ea81ce16a3905eb6a3d00c15.jpeg)

---

<div class="post-metadata">

### Author: ![Heliosurge](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/heliosurge/32/571810_2.png) [@Heliosurge](https://meta.discourse.org/u/Heliosurge)
#### Post date: [December 29, 2024, 12:51am UTC](https://meta.discourse.org/t/twitch-clips-embed-problem/344678/5 "2024-12-29T00:51:24Z")

</div>

Is the clip a bit different than this

```plaintext
https://www.twitch.tv/videos/1845242876?tt_medium=mobile_web_share&tt_content=vod
```

The above works on my instance for twitch video.

https://player.twitch.tv/?video=v1845242876&parent=meta.discourse.org&autoplay=false

Okay was able to repo. As you said it is the clips that are not sharing correctly. Full twitch videos seem fine.

Interesting bug. I am wondering if it might be more on twitch’s side as Video works with player but the share clips doesn’t

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [January 30, 2025, 3:11pm UTC](https://meta.discourse.org/t/twitch-clips-embed-problem/344678/6 "2025-01-30T15:11:37Z")

</div>

Test

https://clips.twitch.tv/embed?clip=CheerfulAliveFoxUWot-3FacBI-00c45Ptvd&parent=meta.discourse.org&autoplay=false

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [January 30, 2025, 9:39pm UTC](https://meta.discourse.org/t/twitch-clips-embed-problem/344678/7 "2025-01-30T21:39:15Z")

</div>

Tentative fix

[https://github.com/discourse/discourse/pull/31080](https://github.com/discourse/discourse/pull/31080)

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [January 31, 2025, 4:54pm UTC](https://meta.discourse.org/t/twitch-clips-embed-problem/344678/8 "2025-01-31T16:54:32Z")

</div>

Testing formats

`https://www.twitch.tv/jenandaliona/clip/CrispyFriendlyLobsterFeelsBadMan-MelPMGMLiS9GFKea?filter=clips&range=all&sort=time`  
https://clips.twitch.tv/embed?clip=CrispyFriendlyLobsterFeelsBadMan-MelPMGMLiS9GFKea&parent=meta.discourse.org&autoplay=false

`https://clips.twitch.tv/CrispyFriendlyLobsterFeelsBadMan-MelPMGMLiS9GFKea`  
https://clips.twitch.tv/embed?clip=CrispyFriendlyLobsterFeelsBadMan-MelPMGMLiS9GFKea&parent=meta.discourse.org&autoplay=false

`https://clips.twitch.tv/embed?clip=CrispyFriendlyLobsterFeelsBadMan-MelPMGMLiS9GFKea&parent=meta.discourse.org`  
https://clips.twitch.tv/embed?clip=CrispyFriendlyLobsterFeelsBadMan-MelPMGMLiS9GFKea&parent=meta.discourse.org&autoplay=false

Looks like all is done here.

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [February 3, 2025, 11:00am UTC](https://meta.discourse.org/t/twitch-clips-embed-problem/344678/9 "2025-02-03T11:00:38Z")

</div>

This topic was automatically closed after 2 days. New replies are no longer allowed.
