Uncaught TypeError: this[PlayersYT[i]].getPlayerState is not a function
at playPause (YouTube-ver3.html:558)
at onPlayerReady (YouTube-ver3.html:415)
at M.h.G (www-widgetapi.js:48)
at Y.h.o (www-widgetapi.js:92)
at Y.h.H (www-widgetapi.js:106)
at Wa.g (www-widgetapi.js:81)
at Oa.f (www-widgetapi.js:70)
players.player1.iframe
players.player2.vid
players.player34.name
divParent.insertBefore(elems[i].cloneNode(true),divParent.firstChild);
у меня массив players[i] и он object
т.е. проверка идет:
if (typeof this[players[i]] != 'undefined' )
2 часа ломал головку, так и не придумал