The HTML5 <video> attribute that the <iframe> embed creates is meant
to be opaque, and we don't offer any method for you to control or
modify it beyond the supported parameters at
https://developers.google.com/youtube/player_parameters
Cheers,
-Jeff Posnick, YouTube API Team
groups.google.com/group/youtube-api-gdata | apiblog.youtube.com |
@YouTubeDev
On Mar 7, 9:30 am, Grimmrobe <joshua.kimn...@gmail.com> wrote:
> HI All,
>
> I'm trying with 0 success to set the webkit-playsinline attribute on the
> video element created with an iframe youtube embed.
>
> The code I'm using is from a youtube api example I found a whlie ago:
>
> // 2. This code loads the IFrame Player API code asynchronously.
> var tag = document.createElement('script');
> tag.src = "http://www.youtube.com/player_api";
> var firstScriptTag = document.getElementsByTagName('script')[0];
> firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
>
> // 3. This function creates an (and YouTube player)
> // after the API code downloads.
> var player;
> function onYouTubePlayerAPIReady() {
> player = new YT.Player('player', {
> height: '538',
> width: '750',
> videoId: 'u1zgFlCw8Aw',
> events: {
> 'onReady': onPlayerReady,
> 'onStateChange': onPlayerStateChange
> }
> });
>
> }
>
> Anybody know of a solution?
--
You received this message because you are subscribed to the Google Groups "YouTube APIs Developer Forum" group.
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