Quantcast
Channel: Active questions tagged youtube-api - Stack Overflow
Viewing all articles
Browse latest Browse all 3831

What solution is by YouTube Player API provided to hide video title and youtube logo when video started?

$
0
0

I have put this code, But it's doesn't work with my youtube video,Following the below code is doesn't work

playerVars: {loop: 1,playlist: 'ABC',mute: 1,controls: 0,rel: '0',iv_load_policy: '3'}

var tag = document.createElement('script');      tag.src = "https://www.youtube.com/iframe_api";      var firstScriptTag = document.getElementsByTagName('script')[0];      firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);      var player;      function onYouTubeIframeAPIReady() {        player = new YT.Player('player', {          height: '390',          width: '640',          videoId: 'ABC',                playerVars: {                  loop: 1,                  playlist: 'ABC',                  mute: 1,                  controls: 0,                  rel: '0',                  iv_load_policy: '3'                },          events: {'onReady': onPlayerReady,'onStateChange': onPlayerStateChange          }        });      }      function onPlayerReady(event) {        event.target.playVideo();        event.target.mute();      }      function onPlayerStateChange(event) {      }

Viewing all articles
Browse latest Browse all 3831

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>