Make WordPress Core

Opened 7 years ago

Closed 4 years ago

#39410 closed enhancement (maybelater)

Add oEmbed Support for

Reported by: jeffr0's profile jeffr0 Owned by:
Milestone: Priority: normal
Severity: normal Version:
Component: Embeds Keywords: reporter-feedback needs-patch
Focuses: Cc:

Description is a video hosting/streaming service primarily aimed at gamers that was launched on June 6, 2011. It's not among the list of whitelisted oEmbed providers and I'd like to see that changed so that embedding videos from Twitch is as easy as pasting the URL, similar to how embedding a YouTube video works.

Change History (6)

#1 @ocean90
7 years ago

  • Type changed from feature request to enhancement

Hello @jeffr0, can you please answer the questions on whitelisting providers? This will help us in the decision process.

#2 @johnbillion
7 years ago

  • Keywords reporter-feedback needs-patch added

#3 @jeffr0
7 years ago

Questions answered in order.

Yes the service is mainstream. It's geared towards gamers and launched in 2011. Though core developers may not have heard of it before if they're not into gaming.

Think of it as the YouTube for gamers. It has similar features and backing from a specific demographic.

Yes, the service's Twitter account is verified and has 3.91 million followers

I don't know but Twitch has a document available for developers on how to Embed videos and clips

I don't know but they have an entire site dedicated to developers who want to interact with the site

The service is 5 years old


There are a few WordPress plugins that exist that take advantage of the service but none that I could find that add the service as an oEmbed endpoint

It should also be noted that supports embedding videos but it requires using a shortcode

Based on a cursory search of Trac, I didn't see any other tickets proposing that be added as a whitelisted oEmbed provider

Last edited 7 years ago by jeffr0 (previous) (diff)

#4 @dd32
7 years ago

Example oembed response:

sourced from (although I switched that from v4 to v5)
Above link suggests it can handle //*, //*, //*

Does the oEmbed endpoint work with WordPress’ oEmbed auto-discovery? If not, could it be made to work with additional HTML tags or attributes being whitelisted?

Having looked at their oEmbed output (at least in that case), it looks like it's just an <iframe> which would infer that oEmbed Discovery would work, however they don't appear to expose the oEmbed Discovery data on the embeddable pages.
I don't see any official docs for the endpoint though.

I feel the best way forward here is for to officially expose the auto discovery headers for oEmbed (which should mean it'll just work in WordPress) and document their endpoint. In the event they document the endpoint and expose something more than just an iframe, we can then look at whitelisting.

#5 @desrosj
5 years ago

#46075 was marked as a duplicate.

#6 @joemcgill
4 years ago

  • Milestone Awaiting Review deleted
  • Resolution set to maybelater
  • Status changed from new to closed

Looks to me like Twitch has deprecated their oEmbed endpoint altogether. We could still probably create a Twitch block that rendered the iframe markup, but it wouldn't be able to use an oEmbed endpoint, so I'm going to close this for now as a maybelater in case Twitch adds oEmbed in the future.

Note: See TracTickets for help on using tickets.