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"
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.
controlsonly for<video>element , so you can't edit the embed (<iframe>) withcontrolsorshowinfo...