Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Add channelid Attribute to <amp-youtube> Component #40252

Open
wants to merge 9 commits into
base: main
Choose a base branch
from

Conversation

EverusLainus
Copy link

Closes #26304

Summary
This PR adds support for the channelid attribute in the component, allowing users to embed the latest video from a specified YouTube channel.

Currently, supports embedding individual videos and playlists but does not allow embedding a channel’s latest video dynamically. This update enables users to specify a channelid, which will automatically load and display the most recent video from that channel.

Changes Introduced
Added a channelid attribute to .
Implemented logic to construct the correct embed URL for displaying the latest video from the channel.

Testing
Manually tested with different channelid values to ensure the latest video loads correctly.
Updated automated tests to validate expected behaviour.

@CLAassistant
Copy link

CLAassistant commented Mar 8, 2025

CLA assistant check
All committers have signed the CLA.

@EverusLainus
Copy link
Author

EverusLainus commented Mar 10, 2025

@rbeckthomas could you review this?

@erwinmombay erwinmombay self-assigned this Mar 13, 2025
@erwinmombay
Copy link
Member

there seems to be some unrelated test failures. ill try to figure the issue out or skip it if needed. please give me a day or two to look into it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Request to include channel in <amp-youtube>
4 participants