I\'m initiating a youtube video using yt.player like this:
function onYouTubeIframeAPIReady() {
player = new YT.Player(\'player\', {
height: \'720\',
function onYouTubeIframeAPIReady() {
player = new YT.Player('player', {
height: '720',
width: '1280',
videoId: 'i8IXMGHpGBk',
playerVars: { 'autoplay': 1, 'controls': 1,'autohide':1,'wmode':'opaque' },
events: {
'onStateChange': function(e) {
if (e.data == 0) {
//skrolla här
}
}
}
})
try this code and reply me on this...