I have a website where I create a YouTube player in an IFrame and make it grab different playlists depending on what the user clicks. So it calls player.cuePlaylist({listType:"playlist",list:playListID})
where playListID
is the variable that changes when the user calls for different playlists. The problem is the first time the function gets executed it works fine, but as soon as it's asked a second time to cue a new playList, it doesn't do anything, no 400 error message or anything either, but when I call the second playList a second time, it works.
This cuePlayList function seems to be bugged as this did not occur a month or two ago. The only change I can see to the youtube Iframe API is about search lists, not playlists as you can read here
I recreated the bug in this jsfiddle. Just press the "new playlist" button and it will load the correct playlist, press another playlist and it won't do anything until pressed twice.
So am I doing something wrong or is this on YouTube's IFrame API end?
Thanks in advance!