Skip to content

Instantly share code, notes, and snippets.

@TechRemarker
Created March 27, 2012 19:01

Revisions

  1. TechRemarker created this gist Mar 27, 2012.
    9 changes: 9 additions & 0 deletions youtube-custom-player
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    A while back YouTube quietly removed their Custom Channel Player, http://youtube.com/custom_player leaving users no way to automatically show their Channel in an embed other than manually curating a Playlist which was limited to a number of videos.

    The Google Gadget option was limited in its inability to change width and height attributes.

    The following code will now show a Custom Channel embed as expected:

    <iframe width="560" height="315" src="http://www.youtube.com/embed/?listType=user_uploads&list=ACCOUNT_NAME" frameborder="0" allowfullscreen></iframe>

    Replace ACCOUNT_NAME with your YouTube account.