craftxbox
craftxbox

Reputation: 239

Trying to embed youtube videos without links to youtube

I am trying to embed YouTube videos without links to YouTube but there is always the clickable watermark or the link in the control bar, even if I try to disable the control bar. Here is the code:

   <iframe width="560" height="315" src="//www.youtube.com/embed/Ob_E91VUQZU?controls=0&amp;showinfo=0" frameborder="0" allowfullscreen></iframe>

Upvotes: 1

Views: 19114

Answers (3)

this is with sandbox where none of the links like related video works even if its ticked. Similar to the one below but with sandbox

div style="border: 1px solid rgb(255, 255, 255); overflow: hidden; height: 800px  margin: 50px auto; max-width: 600px;">
<iframe scrolling="yes" src="https://www.youtube.com/embed/snTlMy80c_E?autoplay=1&enablejsapi=1&rel=0;modestbranding=1&showsearch=0" style="border: 0px none; margin-left: 0px; height: 500px; margin-top: -60px; width: 100%;"    sandbox="allow-forms allow-scripts allow-pointer-lock allow-same-origin allow-top-navigation" ></div>

This code will take out youtube name link with title and other links above. Hope you enjoy it.

<div style="border: 1px solid rgb(255, 255, 255); overflow: hidden; height: 800px  margin: 50px auto; max-width: 600px;">
<iframe scrolling="yes" src="https://www.youtube.com/embed/snTlMy80c_E?autoplay=1&enablejsapi=1&rel=0;modestbranding=1&showsearch=0" style="border: 0px none; margin-left: 0px; height: 500px; margin-top: -60px; width: 100%;"></div>

Upvotes: 0

Lal
Lal

Reputation: 14810

Add ?modestbranding=1 to your url. That will remove the logo.

eg: "www.youtube.com/embed/video-id?modestbranding=0"

modestbranding

This parameter lets you use a YouTube player that does not show a YouTube logo. Set the parameter value to 1 to prevent the YouTube logo from displaying in the control bar. Note that a small YouTube text label will still display in the upper-right corner of a paused video when the user's mouse pointer hovers over the player.

You can find all options on the Google Developers website.

Upvotes: 4

VC.One
VC.One

Reputation: 15871

YouTube will always take some credit for hosting your video (it's free because YOU advertise the brand name amongst other things etc). Logo is un-avoidable. The best you can try is something like this:

src="https://www.youtube.com/embed/Ob_E91VUQZU?modestbranding=1&controls=0&amp;"


You can test by pasting the HTTPS link into a new tab and check if that's acceptable for you.

Otherwise the only way to lose any references to YouTube is to just host the same video file yourself on your own server and use your own custom made HTML5 or Javascript code to play the file.

Upvotes: 6

Related Questions