'How do I change the default thumbnail of an embedded youtube video? or how to put an image over a video and make it disappear on click?
I have an embedded youtube video on my site and modified the code so the name bar and youtube bar are not visible by using the code here. It works perfectly by stretching the size of the player. But the problem is that the default thumbnail is totally messed up (see the attached image)enter image description here. So I need to find a way to change the thumbnail.
I found a workaround by modifying the image thumbnail in youtube so the section i want to be visible is at the center of a much bigger image with a black background (see the attached image)
But i am trying to solve this problem by code, anyone?enter image description here
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
Solution | Source |
---|