1

How can I remove the watch later and share buttons from youtube iframe embed player. Using the following embed code for embedding video clips.

i use this parameter but still not working

"showinfo=0" and "controls=0"

1
  • 1
    using the controls only for <video> element , so you can't edit the embed (<iframe>) with controls or showinfo ... Commented Oct 24, 2020 at 8:15

1 Answer 1

6

You can use the no cookie version of the video, to disable the "watch later" and "share" buttons.

If your embed code looks like this:

<iframe width="560" height="315" src="https://www.youtube.com/embed/HJtJXMKpl2g" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

You have to change it to this:

<iframe width="560" height="315" src="https://www.youtube-nocookie.com/embed/HJtJXMKpl2g" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>

or just check the checkbox in the youtube embed window.

This way, your URL will just look a little bit different:

https://www.youtube.com/embed/HJtJXMKpl2g

is changed to

https://www.youtube-nocookie.com/embed/HJtJXMKpl2g

and the "watch later" and "share" buttons will be hidden automatically.

Sign up to request clarification or add additional context in comments.

2 Comments

Thank you it is worked but this show me copy link button this is the second problem..i don't want to copied link user only can view my youtube video.
Would be great if you accept the answer as it solved your issue. The question is about the other two buttons. Feel free to open a new question with a view more infos (don't get the "want to copied link user only can view"...? ) and comment here the link to the new question, so I get notified to answer you.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.