Wednesday, July 11, 2012

[YouTube-API] Re: Customize playlist themes and colors

Hello Mike

In short - what you are asking applies to AS2 video player, which has been depreciated and my understanding is that it is scheduled to be discontinued in October 2012.  So personally, I would not invest time with it other than for general interest.
Reference:
https://groups.google.com/forum/?fromgroups#!searchin/youtube-api-gdata/as2/youtube-api-gdata/SLvR6T1gW_o/aDmmLGvOzMwJ

However - to answer your question - if embedding a playlist using either AS2 or AS3 <object> code

the main difference between single video and playlist is:
/v/ becomes /p/
and PL is dropped from the front of the Playlist_ID leaving only the last 16 characters.
and don't try to do this in an <iframe> because it will not work correctly.

On AS2 - setting theme to "light" will set the player color to silver rather than black.   Otherwise it has no affect.  If you have trouble getting
color1 and color2 to work on certain browsers, then also set theme=light.

Here is a working example:
http://savedbythegoog.appspot.com/?id=6e65dc2bd263cb48ff472793f9403d3fdee18477
the code is fairly straight forward and basic.
but as I said - I would not invest so much time with it, especially if you are developing for someone else.

Regards,
Klementine

On Tuesday, July 10, 2012 5:55:00 AM UTC+8, Mike wrote:
Question:  How do I add theme and color parameters to the embedded code for a playlist?

I have read over the YouTube API Documentation and have found nothing for the playlist (only standalone video players).  There was a post a couple years back on here about the same topic, but I think it was for the original object containing <param name="..."> (to my knowledge, you can only use iframe for YouTube playlists now). 

I suppose I would really like to customize YouTube's embeddable code as opposed to using some generator on the web.  But... if it turns out I have to use a generator, I'll bite the dust.

What I've done:  Am I on the right track by adding &color1=0xFFFFFF&color2=0x000000& to the srcIs this only useful for standalone iframe video players?

--
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/-/xywSrme2escJ.
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