Automattic / jetpack

Security, performance, marketing, and design tools — Jetpack is made by WordPress experts to make WP sites safer and faster, and help you grow your traffic.
https://jetpack.com/
Other
1.58k stars 796 forks source link

Twitch Shortcode: old player doesn't work anymore #6100

Closed jeherve closed 7 years ago

jeherve commented 7 years ago

Jetpack's Twitch.tv shortcode relies on the old Twitch.tv player that doesn't work anymore: adding the shortcode to your site will just display the empty player and you won't be able to play anything.

We'll need to update that player to use the new Twitch.tv player instead. It should be as simple as building the iFrame code and including the 4 parameters currently supported by our shortcode: url, width, and height, autoplay. The new iFrame supports all 4 parameters.

<iframe src="https://player.twitch.tv/?video=v113155961" frameborder="0" allowfullscreen="true" scrolling="no" height="378" width="620" autoplay="true"></iframe>

Reported here: https://wordpress.org/support/topic/how-to-insert-twitchtv-in-shortcode/

jeherve commented 7 years ago

Looks like the shortcode was already updated on WordPress.com, so we can just port over the changes.