Twitch embeded video broken/error

Tried iframe and script from the “embed” share button example of Twitch in my thread but nothing works.

what do you mean nothing works? your videos show up correctly now!

What??? You see them in my thread??? I still don’t :man_facepalming:

in the exact post you’ve linked they are fine.

Just to be sure, this is the image of what I get

That’s from an older post, where the parent string is not present or is misconfigured.

Just to be clear, I meant the post that starts with “This is a test:” has the correct embed players.

Btw the “Interactive” players from the twitch docs are no use for you on this forum (since you can’t run scripts), just use the iframe-only embed.

I seriously don’t understand, it seems as if I need a computer science degree from harvard just to copy paste a video link.

I now see the video image and it kinda work, but all old twitch post (not just my videos) are still dead.

I removed every iframe from the post, and now all it shows is the link like I use to do, and it works, but not the old one, and they have the same links as the new one (except different video #numbers)

I just don’t get it

Did a new post, pasted a new link the old way :wink: ex.:https://www.twitch.tv/videos/628505649

without any iframe or any other types of code and it works

Now, if I have any kinda of logic left in this brain, something tells me that If I edit my very first post, maybe adding the “parent” thing, then maybe, just maybe it’ll correct all following posts ???

Got to try it. :crossed_fingers:

It would seem that my logic is : FLAWED

:stuck_out_tongue:

Oh, I didn’t know the forum handled creation of the iframes for you.

Sorry for being misleading then.

In this case it’s up to the forum to use to correct iframe parameters (which it seems it does then?) and you just need to paste a link.

The thing I’m confused about is what was wrong in the first place, how did you try to do it the first time? I doubt the forum got fixed since that, but that’s also possible.

maybe it’ll correct all following posts ???

Previous posts have no effect on future posts though.

I didn’t do anything, I just checked my thread yesterday and found all the video links were showing the errors.

I didn’t even had any intention of posting anything.

And today I found that other twitch users link on other posts are the same, so it wasn’t me who did something to get the error.

So all I did today is try and put the iframe and/or the javascript code, and somehow it worked for the last 2 posts.

Don’t know if I answer your question sorry.

I suppose it might be a recent change on twitch’s part to require this “parent string” and the older posts are saved with iframes that were generated using the old method (which produce broken embeds now).

So just pasting the link should work from now on but old posts need to be changed manually to have working players.

Cool channel btw!

Well, by “re-editing” the old posts, the video on each post comes back to life :smiley:

Sorry VCV community for “spamming/editing” my thread, but I don’t know of any other ways.

I’ll be quick, and be done with it.

I fixed all old posts.

This is so weird, because all I did, was to select the link in the post, alt-x it and re-paste it, and it worked after saving.

I didn’t add or retract, nor did I changed anything.

anyway, thanks for your help and your time @unlessgames

But the bad thing is that, everyone that posted a Twitch video link ( VCV Rack Livestreamers - Twitch, YouTube, etc ) in their posts will have to do the editing work, unless something is done by the devs I guess?

My guess is that when you create a post, the forum looks for links to generate iframes from but after generating one, it saves it with the post as it is. So until a post gets edited the generation will not run again.

Fixing all past posts would require some custom scripting on the maintainer’s part.

Not sure what were they thinking at twitch when they made the change though, breaking every embed player on the internet. Imagine if youtube did this…

Glad I could(n’t) help :slight_smile:

2 Likes

I was curious and googled a bit, and it looks like this bug, due to recent Twitch API changes, was signaled at Discourse Meta forum - https://meta.discourse.org/t/twitch-auto-embed-broken/155473 - and fixed a couple of week ago by reconfiguring the Discourse Onebox library, so new embeds are now sanitized and work politely, but yes, old ones apparently need to be regenerated, and this is quite annoying for users.
I read also that other platforms like phpBB and Drupal had to commit code patches to comply with the new Twitch embed specs, and issues are not yet fully solved for different hybrid mobile applications, that embed Twitch players in common WebView components.

Twitch have been making a lot of (unpopular) layout changes recently as well.

Mmmh, I see…