Problem/Motivation

Youtube live stream links like this do not work https://youtube.com/live/8defxBZ50Hw

I've modified the regex in YouTube.php slightly and got it to work.

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

loze created an issue. See original summary.

loze’s picture

Status: Active » Needs review
StatusFileSize
new736 bytes

Here's a patch

sandeep_k’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new122.4 KB
new1.79 MB

@loze, I've Tested shared Patch- video_embed_field--support-live--3417567--2.patch on Drupal versions- 9.5.11 & 10.1.9-dev. The patch was applied successfully and looks good to me.

Testing Steps:

  • Enable/Install the Video Embed Field module.
  • Go to> Structure> Content type> Add Video Embed field to a content type.
  • Go to Content> Create new node-Add Live Stream URL as mentioned (Added before result)
  • Download the shared patch & apply.
  • Go to> Content Type- Create new node-Add Live Stream URL in the video embed field.

Testing Results:
After applying the patch, I successfully added the YouTube Live Stream URL in the Embed field. RTBC+

nicolas s.’s picture

Hi,

Patch works with Drupal 10.4.x and url youtube live url but not working with youtube embed like this https://www.youtube.com/embed/tEfCoTb4e2Q

I propose a new patch

mably’s picture

Could you provide an MR please?

nicolas s. changed the visibility of the branch 3417567-support-youtube-live to hidden.

nicolas s. changed the visibility of the branch 3417567-support-youtube-live to hidden.

nicolas s.’s picture

It's done @mably

  • 20a2dba0 committed on 3.0.x
    Issue #3417567: Support Youtube Live urls
    
mably’s picture

Version: 8.x-2.x-dev » 3.0.x-dev
Status: Reviewed & tested by the community » Fixed
mably’s picture

Version: 3.0.x-dev » 8.x-2.x-dev
Status: Fixed » Reviewed & tested by the community

@nicolas-s could you create another issue to add the embed/ url handling that was present in your original patch?

mably’s picture

Version: 8.x-2.x-dev » 3.0.x-dev
Status: Reviewed & tested by the community » Fixed
nicolas s.’s picture

mably’s picture

Thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.