You may recall that YouTube started rolling out a new player and site design not so long ago. The redesign, announced about a month ago, made several changes to the video hosting website. Probably the change with the biggest impact was the switch from a light themed played to a dark themed player.
Back then it was not clear if and how embedded players would benefit from the design change. A post on Friday revealed that YouTube plans to roll our a dark player design for YouTube embeds from August 10 on. From that day on, all embedded YouTube videos will sport a new dark player design.
The design change can be problematic on websites that use a lighter theme. YouTube for exactly this situation has added two new player parameters to the YouTube embedded player.
The new theme parameter defines the overall theme of the embedded player. Available options are dark or light. The color parameter on the other hand defines the color of the time bar which can either be red or white.
The default theme and color is set to dark and red. A total of three additional designs are available.
If you do not want the default dark themed played to show up on your site, you need to modify the player code manually. This could be problematic for webmasters who have embedded lots of YouTube videos on their web properties. Probably the best option for those webmasters is to create a script that modifies all embedded YouTube scripts on the website automatically.
The code to embed YouTube videos looks like this. Take notice of the parameters theme and color in the video url.
<iframe width="560" height="349"
Here you define the theme and color that you want to be displayed on your website. What's your take on the new YouTube layout and embedded player layout? Good change, bad change?Advertisement
Ghacks is a technology news blog that was founded in 2005 by Martin Brinkmann. It has since then become one of the most popular tech news sites on the Internet with five authors and regular contributions from freelance writers.