ampproject/amphtml

Request to include channel in <amp-youtube>

Open

#26.304 aperta il 10 gen 2020

Vedi su GitHub
 (20 commenti) (5 reazioni) (0 assegnatari)JavaScript (4096 fork)batch import
Component: amp-youtubeP3: When PossibleType: DevXType: Feature RequestWG: componentsgood first issue

Metriche repository

Star
 (14.907 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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?

Guida contributor