Friday, January 6, 2012

[YouTube-API] Re: Bug? The "playing" event fires twice for HTML5 iframe player

Hello,

I wouldn't consider it a bug to go from buffering to playing multiple
times. There's some earlier discussion at

https://groups.google.com/group/youtube-api-gdata/browse_thread/thread/741a020db4293913

Cheers,
-Jeff Posnick, YouTube API Team
groups.google.com/group/youtube-api-gdata | apiblog.youtube.com |
@YouTubeDev


On Jan 5, 4:08 pm, Kleb <calebo...@hotmail.com> wrote:
> Source code edited for simplicity. The error still occurs:
>
> var tag = document.createElement('script');
>     tag.src = "http://www.youtube.com/player_api";
>
> var firstScriptTag = document.getElementsByTagName('script')[0];
>     firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
>
> var player;
>
> function onYouTubePlayerAPIReady() {
>         player = new YT.Player('player', {
>           height: '390',
>           width: '640',
>           videoId: 'JW5meKfy3fY',
>           events: {
>             'onStateChange': function(evt){
>                 console.log(evt.data);
>              }
>           }
>         });
>     }

--
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