Page MenuHomePhabricator

Allow video embedding from Wikimedia Commons at Diff
Open, Needs TriagePublicBUG REPORT

Description

List of steps to reproduce (step by step, including full links if applicable):

  • Take any video from Wikimedia Commons
  • Try to add it in diff using any method (embed block, html embed...)

What happens?: The videos can't be embedded directly. They can be embedded using the raw URL from Commons, but then TimedText isn't shown (and the player seems broken in the bottom). If <iframe> option is added, then some code is inserted to prevent iframe from showking. Deleting it gives a security problem and the iframe isn't load. This doesn't happen if embedding YouTube videos.

What should have happened instead?: Diff should be able to directly embed Commons videos.

Software version (if not a Wikimedia wiki), browser information, screenshots, other information, etc.:

Event Timeline

Partially related, it would be reeeeally nice to contact WordPress (VIP?), asking to add Wikimedia Commons videos in this list:

https://wordpress.com/support/wordpress-editor/blocks/embed-block/#supported-services

This would add support across all recent WordPress sites worldwide, without any other plugin.

If I understand things correctly, two parts are needed. Commons needs to provide an oEmbed response to requests (such as from WordPress) and WordPress core needs to include oEmbed support for Commons.

There are a few phabricator tickets discussing this, but the details are light.

As a workaround you can copy/paste the embed code from Commons into WordPress. You first need to add an "HTML" block to your post. It's not intuitive and attribution will not appear in the Credits section below the post.

See the video at the bottom of this post as an example: https://diff.wikimedia.org/2021/10/03/join-us-celebrate-the-eureka-effects-of-the-3rd-edition-of-wiki-loves-folklore/

It may be something related to permissions at diff then, because the code is blocked if I try to insert an iframe.