![]() ![]() To use the properties and methods provided in the API, we have to first add a pre-defined JavaScript function called onYouTubeIframeAPIReady(). Note: The mute() method does not work in IE 10. I have explained the properties after the script section of this example.Ĭhrome 39.0 - Yes | Firefox 34.0 - Yes | Internet Explorer 10 - No | Safari - No In the first example, I’ll show you how to embed a YouTube video with some features such as AutoPlay, Sound Muted and we’ll also see how to set a value for the volume, when the page loads with the video. Embed YouTube Video with Properties such as Mute, setVolume and AutoPlay Related Post: How to Embed YouTube Video in a Webpage without IFrame For example, you can reduce or increase the players volume, play or stop the video any time, run the video in a loop, auto play video etc. The API provides the necessary JavaScript functions and properties, with which you can control the behavior of the player and the video. Along with it, the example here shows how to set a default volume to the player and how with the onStateChange Event you can control the player's behavior. In this article, I’ll show you how to embed a YouTube video on a web page with its sound muted, when the page loads. ![]() ![]() Its very easy to use and it comes with many ready to use features, that would allow you to customize and control the embedded video. You can embed or add your favorite YouTube video on your website using YouTube IFrame Player API. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |