Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3831

loading multiple video players with youtube api

$
0
0

I need to load more than one video with youtube's API. This is my first time using it so I'm not sure what I'm doing wrong, but this is what I'm trying:

  var player;  var player2;  function onYouTubePlayerAPIReady() {    player = new YT.Player('player', {      videoId: 'hdy78ehsjdi'    });    player2 = new YT.Player('player', {      videoId: '81hdjskilct'    });  }

Viewing all articles
Browse latest Browse all 3831

Trending Articles