Powered by Blogger.

How to Mute YouTube Video sound in Blog Post

ow to Post YouTube Video Mute Sound In Blog or Blogger

There have one change: videoId: 'YOUR_VIDEO_ID'

<div id="muteYouTubeVideoPlayer"></div>

<script async src="https://www.youtube.com/iframe_api"></script>
<script>
 function onYouTubeIframeAPIReady() {
  var player;
  player = new YT.Player('muteYouTubeVideoPlayer', {
    videoId: 'YOUR_VIDEO_ID', // Video ID Like ” 7I9rvXferzg” video “https://www.youtube.com/watch?v=7I9rvXferzg”
    videoId: '7I9rvXferzg', //Like this
    width: 640,               // Player width (in px)
    height: 360,              // Player height (in px)
    playerVars: {
      autoplay: 1,        // Auto-play the video on load
      controls: 1,        // Show pause/play buttons in player
      showinfo: 0,        //  video title hide
      modestbranding: 1,  // Youtube Logo hide
      loop: 1,            // video run in a loop
      fs: 0,              // full screen button hide
      cc_load_policty: 0, // closed captions Hide
      iv_load_policy: 3,  // Video Annotations Hide
      autohide: 0         // video controls when playing Hide
    },
    events: {
      onReady: function(e) {
        e.target.mute();
      }
    }
  });
 }

 // Written by @labnol
</script>
Like This

0 on: "How to Mute YouTube Video sound in Blog Post "

Your Comment is processing to approved