ampproject/amphtml

Request to include channel in <amp-youtube>

Open

#26.304 geöffnet am 10. Jan. 2020

Auf GitHub ansehen
 (20 Kommentare) (5 Reaktionen) (0 zugewiesene Personen)JavaScript (4.096 Forks)batch import
Component: amp-youtubeP3: When PossibleType: DevXType: Feature RequestWG: componentsgood first issue

Repository-Metriken

Stars
 (14.907 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

This probably won't be on the top of anyone's list of things to fix... but I imagine it wouldn't be hard to implement!

I wanted to implement a YouTube embed that linked to a YouTube channel. AFAIK you can't do this with a param, but you can do it with the method described on the support forum:

<script src="http://www.gmodules.com/ig/ifr?url=http://www.google.com/ig/modules/youtube.xml&amp;up_channel=YourChannelName&amp;synd=open&amp;w=320&amp;h=390&amp;title=&amp;border=%23ffffff%7C3px%2C1px+solid+%23999999&amp;output=js"></script>

Whaddya think?

Contributor Guide