tubular
tubular copied to clipboard
onYouTubeIframeAPIReady not getting 'caught' in IE11
Everything works in Chrome/etc but breaks in IE11. If I comment out the event handler function header everything is fine...
// set up iframe player, use global scope so YT api can talk
window.player;
// window.onYouTubeIframeAPIReady = function() {
window.player = new YT.Player('tubular-player', {
width: options.width,
height: Math.ceil(options.width / options.ratio),
playerVars: {
listType: 'playlist',
list: options.playlist,
controls: 0,
showinfo: 0,
modestbranding: 1,
wmode: 'transparent'
},
events: {
'onReady': onPlayerReady
}
});
// };
I have made a mod to allow passing in a playlist.