Is there a way to remove all YouTube items when playing a video in full screen? Remove: buttons, title, more videos, share, playlists, YouTube logo, channel logo and many others. Have a clean view (like when you do not hover the mouse). Both in paused and in play
I have looked at some topics of the type url? Control = 0 & rel = 0 & showinfo = 0 Only control works.
Also comment that if you press "space" or with the "left mouse button" the video has to continue working in the same way, that is, it will pause.
Is there a way to have YouTube in full screen and when you hover over it nothing appears? Also for when the video is paused (the play icon does not have to appear when it is paused either)
Currently I have:
Html iframe
<iframe src="https://www.youtube.com/embed/M7lc1UVf-VE
?
showinfo=0
&controls=0
&rel=0
&modestbranding=1
&autohide=1
"
frameborder="0"
allowfullscreen="allowfullscreen"
mozallowfullscreen="mozallowfullscreen"
msallowfullscreen="msallowfullscreen"
oallowfullscreen="oallowfullscreen"
webkitallowfullscreen="webkitallowfullscreen"> </iframe>
Here with the arrows it works forward and backward.
Alternative Javascript + Html
<script>
// This code loads the IFrame Player API code asynchronously.
var tag = document.createElement('script');
tag.src = "https://www.youtube.com/iframe_api";
var firstScriptTag = document.getElementsByTagName('script')[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);
// VÍDEO ITEMS
var playerDefaults = {autoplay: 0, autohide: 1, modestbranding: 0, rel: 0, showinfo: 0, controls: 0, disablekb: 1, enablejsapi: 0, iv_load_policy: 3};
var options = {
// Anchura (Opcional - por defecto 640)
width: 640,
// Altura (Opcional - por defecto 360)
height: 390,
// El identificador del video (Obligatorio)
videoId: 'M7lc1UVf-VE',
// Las opciones para el reproductor (Opcional)
playerVars: playerDefaults,
// Registro de eventos del reproductor
events: {
'onReady': onPlayerReady
}
};
// This function creates an <iframe> (and YouTube player)
// after the API code downloads.
var player;
function onYouTubeIframeAPIReady() {
player = new YT.Player('player', options);
}
// The API will call this function when the video player is ready.
function onPlayerReady(event) {
player.setPlaybackRate(2);
event.target.playVideo();
}
</script>
<div id="player"></div>
Here with the arrows it does not work forward and backward, because they are disabled instead of hidden.
Although I cannot correctly hide all the items.