Just found the problem.  After comparing the code example on
http://code.google.com/apis/youtube/js_api_reference.html to the demo
on http://code.google.com/apis/ajax/playground/?exp=youtube#simple_embed
I discovered that the url now has /v/ instead of /e/.

So it's now:
swfobject.embedSWF("http://www.youtube.com/v/"; + videoID + "?
version=3&enablejsapi=1&playerapiid=player1",
                   "videoDiv", "480", "295", "9", null, null, params,
atts);
instead of:
swfobject.embedSWF("http://www.youtube.com/e/VIDEO_ID?
enablejsapi=1&playerapiid=ytplayer",
                       "ytapiplayer", "425", "356", "8", null, null,
params, atts);

This isn't the first time youtube has arbitrarily monkeyed around with
their api.  Really annoying.

On Sep 7, 7:35 pm, Aran Rhee <[email protected]> wrote:
> Well, this Youtube API demo page uses SWFObject, and it displays fine for
> me:
>
> http://code.google.com/apis/youtube/youtube_player_demo.html
>
> Aran
>
> On Wed, Sep 7, 2011 at 6:30 PM, KNY <[email protected]> wrote:
> > I checked the blog and forum but didn't see any updates regarding
> > that.  The last post is about auth tokens, which I'm not using.
> >http://apiblog.youtube.com/
>
> > On Sep 7, 7:08 pm, Nathan Mynarcik <[email protected]> wrote:
> > > Have you checked to make sure Youtube hasnt changed their api?
>
> > > On Wed, Sep 7, 2011 at 6:04 PM, KNY <[email protected]> wrote:
> > > > Is anyone else all of the sudden having problems with the embedSWF
> > > > method?  I'm using it to load a youtube video and my page will now not
> > > > load the player, but I haven't made any changes.
>
> > > > here is my line of code:
> > > >    swfobject.embedSWF("http://www.youtube.com/e/"+firstvid+";?
> > > > enablejsapi=1&playerapiid=ytplayer","myapiplayer", "300", "200", "8",
> > > > null, null, params, atts);
>
> > > > --
> > > > You received this message because you are subscribed to the Google
> > Groups
> > > > "SWFObject" group.
> > > > To post to this group, send email to [email protected].
> > > > To unsubscribe from this group, send email to
> > > > [email protected].
> > > > For more options, visit this group at
> > > >http://groups.google.com/group/swfobject?hl=en.
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "SWFObject" group.
> > To post to this group, send email to [email protected].
> > To unsubscribe from this group, send email to
> > [email protected].
> > For more options, visit this group at
> >http://groups.google.com/group/swfobject?hl=en.

-- 
You received this message because you are subscribed to the Google Groups 
"SWFObject" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/swfobject?hl=en.

Reply via email to