After creating the players, click them on the array.
var vids =[];
player1 = new YT.Player('player1', {
});
vids.push(player1);
player2 = new YT.Player('player2', {
});
vids.push(player2);
....
..
playerN = new YT.Player('playerN', {
});
vids.push(playerN);
Each player object identifier can access a property a.id( aitself is an object, idis a property (string))
Now, when the user plays this player, you just need to pause all the others, except for what you play (whose id you get in stopVideo). Since you have id it's easy
function stopVideo(player_id) {
for(var i=0;i<vids.length;i++){
if (player_id !=vids[i].a.id)
vids[i].stopVideo();
}
}
Example: - http://jsfiddle.net/4t9ah1La/
, iframe, vbence , , Jennie
: - http://jsfiddle.net/fyb7fyw1/