Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change the background colour of YouTube Video embed

I was wondering if there's any way to change the background-colour of the YouTube screen which appears when the embedded video is initially loading (image attached below)? Currently, it has a black background colour which I wanted to change to white; I tried adding theme=light to the URL but that didn't help. I also searched for this option inside the YouTube Embedded Players and Player Parameters document but couldn't find anything related to this. This is how my video embed code looks like:

<iframe width="770" height="434" src="//www.youtube.com/embed/(video code)?theme=light&modestbranding=1&autohide=1&showinfo=0&controls=0&rel=0&vq=hd1080" frameborder="0" allowfullscreen></iframe>

enter image description here

like image 368
Fahad Hasan Avatar asked Sep 12 '14 14:09

Fahad Hasan


People also ask

Can I change YouTube background color?

Click your profile picture . Click Appearance . Select "Dark theme" to use the dark theme setting. Turn on Light theme or Use device theme.


1 Answers

Google YouTube themes have been deprecated:

This parameter indicates whether the embedded player will display player controls (like a play button or volume control) within a dark or light control bar. This parameter has been deprecated for HTML5 players, which always use the dark theme.

like image 54
Ian Bradbury Avatar answered Sep 21 '22 15:09

Ian Bradbury