0

I was wondering how can you display the videos on a youtube channel to a website?

Here is a link Image

In the picture are videos off a youtube channel. Is there a way I can embed the same videos on to my website?

Any links or examples to something similar would be great.

Thank you

I've never worked with youtube videos.

  • Possible Duplicate http://stackoverflow.com/questions/18267426/html-auto-embedding-recent-uploaded-videos-from-a-youtube-channel – Jatin Feb 14 '14 at 01:05

1 Answers1

1

You'll use YouTube iFrame embeds.

Here's an example. http://jsfiddle.net/jeffposnick/yhWsG/29/

<div id="player"></div>

var tag = document.createElement('script');
tag.src = "https://www.youtube.com/iframe_api";
var firstScriptTag = document.getElementsByTagName('script')[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);

var player;
function onYouTubeIframeAPIReady() {
    player = new YT.Player('player', {
        height: '250',
        width: '444',
        videoId: 'M7lc1UVf-VE'
    });
}
Ibrahim Ulukaya
  • 12,767
  • 1
  • 33
  • 36