How to Embed YouTube Video with Sound Muted

How to Embed YouTube Video with Sound Muted - Hallo NewsOfTech Maniac !!! News of Technology, In this article you can read by title How to Embed YouTube Video with Sound Muted, We are prepared this article very well to you, so you can read and retrieve information on it. Hopefully the contents of the post Article HOW TO, What we write can you understand. Okay, happy reading NewsOfTech Maniac.


Title : How to Embed YouTube Video with Sound Muted
link : How to Embed YouTube Video with Sound Muted


How to Embed YouTube Video with Sound Muted : It is easy to embed YouTube videos in your website. You grab the default IFRAME embed code, paste it anywhere inside your web page and you�re done. YouTube offers basic customization � you can modify the player dimensions or hide the YouTube branding � but if you would like to exercise more control over the  behavior of the embedded player, YouTube Player API is the way to go.

This tutorial explains how you can embed a YouTube video that will automatically play when the web page is loaded but with muted audio.

For instance, a products website may use short screencasts to highlight features and these videos will autoplay when the page is loaded. The volume is however set to 0 and the user can manually click to un-mute the video. Similarly, if you are using YouTube video backgrounds, it makes more sense to embed muted videos that run in a loop.

Embed YouTube Player with Autoplay and Sound Muted

Go the YouTube video page and note down the ID of the video from the URL. For instance, if the YouTube video link is http://youtube.com/watch?v=xyz-123, the video id is xyz-123. Once you have the ID, all you have to do is replace YOUR_VIDEO_ID in the following code with that string.


Next place the edited code in your web page and the embedded video would automatically play but the sound is muted.

You can further customize the player by modifying the various player variables as commented in the code. For instance, if you set loop as 1, the video will play in a loop. Set fs to 1 to show the fullscreen button inside the video player. Internally, the player is embedded using the YouTube IFRAME API. When the page is loaded, the onReady event runs that mutes the video.


Don�t forget to share this post with your friends !!!


That's an article How to Embed YouTube Video with Sound Muted

Fine for NewsOfTech Article How to Embed YouTube Video with Sound Muted This time, hopefully can benefit for you and any people all. Well, see you in other article from NewsOfTech postings.

Subscribe to receive free email updates:

AdBlock Detected!

Suka dengan blog ini? Silahkan matikan ad blocker browser anda.

Like this blog? Keep us running by whitelisting this blog in your ad blocker.

Thank you!

×