I am using
<iframe width="550" height="314" src="https://www.youtube.com/embed/vidid?modestbranding=1&rel=0&showinfo=0" frameborder="0" allowfullscreen></iframe>
This removes right side bottom "Youtube" Logo. And also removes "Title bar" which appears on hover.
But in this problem is, When I hover on video then behind the right side bottom "Youtube" tumbnail / Text is coming and when I remove mouse then it disappears.
When I use "autohide=1" then control bar gets hidden and in the right-bottom corner there is one icon/image/logo of "Youtube" display on hover. I am using
iframe.setAttribute("src", "youtube.com/embed/" + youtube.id + "?modestbranding=1&;showinfo=0&;autohide=1&;rel=0;");
this. With this I am able to remove/hide Title bar and logo from the control bar but on right-bottom there is one other logo comes on screen on hover , which parameter should I use to hide that?
Remove YouTube Branding
To date: Seeing a lot of searches and suggestions to disable YouTube logo and branding from an embedded video; I recommend you consider the following:
Yet! You have the option of having Modest-Branding using this parameters:
https://www.youtube.com/embed/'+videourl+'?modestbranding=1
And some other parameters for customization:
And here is the general customization window:
Disclaimer: I don't work for YouTube; simply I respect the copyrights.
It would be Better if you can use html5 video player or any other player (but not jwplayer) which can play youtube source video.
Below is an example source url of a video: https://redirector.googlevideo.com/videoplayback?requiressl=yes&id=a1385c04a9ecb45b&itag=22&source=picasa&cmo=secure_transport%3Dyes&ip=0.0.0.0&ipbits=0&expire=1440066674&sparams=requiressl%2Cid%2Citag%2Csource%2Cip%2Cipbits%2Cexpire&signature=86FE7D007A1DC990288890ED4EC7AA2D31A2ABF2.A0A23B872725261C457B67FD4757F3EB856AEE0E&key=lh1
Open this using simple html5 video player (Replace XXXXXX with source url or any downloadable url) :
You can also use many other video players also.
That watermark in the bottom right only appears on
mouseover
. There's no parameter to remove that, however if you stack a transparentdiv
on top of the video and make it a higherz-index
and the same size of the video, yourmouseover
will not trigger the watermark because your mouse will be hitting thediv
.Of course the tradeoff for this is that you lose the ability to actually click on the video to pause it. But if you want to leave the ability to pause it, you could display the controls and have the top layer
div
cover up until the bottom 30 pixels or so, letting you click the controls.That worked for me, it still showed subscribe and it showed share link, but no youtube button to take them off the page to another. So that's the line I will use that I think will keep traffic my site and not take off to all the other sites.
I tried this, but it is not possible to remove "Watch on YouTube" icon. Following solution of mine does not remove the icon itself but "blocks" the mouse hover so that watch on YouTube is not click-able. I added a div over icon, so no mouseover will be affected for that logo.
Where frame is my embedded player. include following to your css file
This is not full solution but helps you if you are bothered with users' getting full youtube url.
You can add
?modestbranding=1
to your url. That will remove the logo.&showinfo=0
will remove the title bar.You can find all options on the Google Developers website.
Note:
It doesn't fully remove the logo. There is still a small logo on the bottom left.
showinfo
is deprecated and will be ignored after September 25, 2018: https://developers.google.com/youtube/player_parameters