Skip to content

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

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

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

Conversation

EverusLainus
Copy link

@EverusLainus EverusLainus commented Apr 5, 2025

issue #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
  • 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.

@EverusLainus
Copy link
Author

This is my old PR #40252. @erwinmombay could you review this?

@erwinmombay
Copy link
Member

EverusLainus ill take a look

@ychsieh please also review when you get a chance

@erwinmombay
Copy link
Member

erwinmombay commented Apr 7, 2025

@EverusLainus do you happen to know if this related? https://github.com/ampproject/amphtml/pull/40266/files

it looks like someone is trying to do the same feature?

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.

2 participants