tubular icon indicating copy to clipboard operation
tubular copied to clipboard

onYouTubeIframeAPIReady not getting 'caught' in IE11

Open spdaly opened this issue 10 years ago • 0 comments

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.

spdaly avatar Jul 18 '14 17:07 spdaly