Make WordPress Core

Opened 15 months ago

Closed 15 months ago

Last modified 8 months ago

#57632 closed enhancement (fixed)

Register an oEmbed handler for YouTube live URLs

Reported by: slieschke's profile slieschke Owned by: peterwilsoncc's profile peterwilsoncc
Milestone: 6.2 Priority: normal
Severity: normal Version: 6.2
Component: Embeds Keywords: has-patch has-testing-info needs-user-docs
Focuses: Cc:

Description

The shareable links for livestreamed videos shared from Content → Live in YouTube Studio are now of format https://youtube.com/live/BdFVUvy-sOI?feature=share, which the YouTube Embed fails on.

Change History (6)

This ticket was mentioned in PR #3988 on WordPress/wordpress-develop by slieschke.


15 months ago
#1

  • Keywords has-patch added

Adds YouTube Embed support for shareable links for livestreamed videos shared from Content → Live in YouTube Studio which are now of format <https://youtube.com/live/BdFVUvy-sOI?feature=share>.

Trac ticket: https://core.trac.wordpress.org/ticket/57632

#2 @costdev
15 months ago

  • Keywords has-testing-info added
  • Milestone changed from Awaiting Review to 6.2
  • Type changed from defect (bug) to enhancement

Test Report

Patch tested: https://github.com/WordPress/wordpress-develop/pull/3988.diff

Steps to Reproduce or Test

  1. Navigate to Posts > Add New.
  2. Do not load this link prior to testing. Paste this link into the content section: https://www.youtube.com/live/A93boKWP4_0
  3. 🐞 The Embed URL screen shows "Sorry, this content could not be embedded."
  4. Apply the PR
  5. ✅ Repeat steps 1 and 2.

Expected Results

When testing a patch to validate it works as expected:

  • ✅ The video is now embedded as expected.

When reproducing a bug:

  • ❌ The Embed URL screen shows "Sorry, this content could not be embedded."

Environment

  • Server: Apache (Linux)
  • WordPress: 6.2-alpha-54642-src
  • Browser: Chrome 109.0.0.0
  • OS: Windows 10
  • Theme: Twenty Twenty-One
  • Plugins: None activated

Actual Results

When reproducing a bug/defect:

  • ❌ The Embed URL screen shows "Sorry, this content could not be embedded."

When testing the bugfix patch:

  • ✅ The video is now embedded as expected.

Notes

  • For anyone else testing, the format of the link is https://youtube.com/live/VIDEO_ID. The VIDEO_ID is what usually shows after the ?v= portion of the URL.

#3 @peterwilsoncc
15 months ago

  • Owner set to peterwilsoncc
  • Resolution set to fixed
  • Status changed from new to closed

In 55242:

Embeds: Update YouTube provider for live URLs.

YouTube Live stream URLs can take the form of youtube.com/live/videocode. This registers the URL format for the oembed provider.

Props slieschke, costdev.
Fixes #57632.

#5 @milana_cap
14 months ago

  • Keywords needs-user-docs added
Note: See TracTickets for help on using tickets.