Tuesday, January 17, 2012

[YouTube-API] Re: IFrame API on iOS: Removing Title Bar?

Hi folks,

Between when I posted this and now, I figured it out. I needed to pass showinfo in the "playerVars" object, like so:

function onYouTubePlayerAPIReady() {
player = new YT.Player('player', {
height: '100%',
width: '100%',
videoId: '__VIDEO_ID__',
playerVars: {
showinfo: '0'
},
events: {
'onStateChange': onPlayerStateChange,
'onReady': onPlayerReady,
'onError': onPlayerError,
'onPlaybackQualityChange': onPlaybackQualityChange
}
});
}

--
You received this message because you are subscribed to the Google Groups "YouTube APIs Developer Forum" group.
To view this discussion on the web visit https://groups.google.com/d/msg/youtube-api-gdata/-/wkB5XKhmrzgJ.
To post to this group, send email to youtube-api-gdata@googlegroups.com.
To unsubscribe from this group, send email to youtube-api-gdata+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/youtube-api-gdata?hl=en.

No comments:

Post a Comment