I have explained the properties after the script section of this example. The API loads asynchronously with the rest of the page. Browser Support: Chrome Note : The mute method does not work in IE The function will create the Players object for YT. Playerwhen the page loads. You can easily get the id of the video. The figures are in pixels.
It also has a default value, that is, for width and for its height. API will assign default values, if you do not explicitly define any value. Set it 0 and your users will have to manually play the video. I have set the as 0 as I do not want the title to cover the video. You will see two square braces at the right bottom corner of the player. It fires the event when the player becomes ready to roll. Within this event, I have set two more parameters.
The first parameter sets the player as mute and second parameter set a default volume for the player. Simply add the below code in the script section. Here in the above example, I am using a pre-defined namespaced variable to check the state of the player if it has started playing. The examples here in this article are just the tip of the iceberg. It shows some basic features on how to embed a YouTube video with its sound muted when the page loads, how to AutoPlay a video, how to set a default volume and how to add and use couple of events that the API provides, which will help customize the player on your website.
Photo courtesy PikiTheYandere. Original poster is using a YouTube playlist not playing from Facebook thumbnails. Plus I'm encountering this issue, playing from YouTube website in Chrome for mobile. I've seen multiple answers on multiple sites, all different. Try this from reddit :.
Apparently YouTube tries to smart remember what it thinks your preferred volume is. To clear that setting, clear your browser cache.
How to Embed YouTube Videos with No Sound
If you slide the volume slider down, it saves your settings. If you click it down it will not. To unmute it on start, slide the slider up instead of clicking it on.
Restart Safari, launch video on browser and play a few videos. Tap to unmute should be disabled. If you play the video from Safari or YouTube directly there is no problem. Sign up to join this community.
Subscribe to RSS
The dark mode beta is finally here. Change your preferences any time. Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information. Use iframe Embeds instead. Turns out player. Initial test in the fiddle didn't work because the player initiation had an error. The following works. All above answers didn't work for me for some reason. The only way of muting the player was to insert the code below into tag. Learn more. How do you mute an embedded Youtube player?
Ask Question. Asked 5 years, 8 months ago. Active 3 years, 7 months ago. Viewed 74k times. I'm experimenting with the Youtube player but I can't get it to mute by default. Jonathan Jonathan 6, 2 2 gold badges 24 24 silver badges 57 57 bronze badges. Hey Jonathan try stackoverflow. Active Oldest Votes. This still doesn't work for me. And your demo plays sound. The jsfiddle doesn't mute the video.
Artem Kiselev Artem Kiselev 1 1 gold badge 6 6 silver badges 6 6 bronze badges. Paul Kane Paul Kane 81 2 2 bronze badges. Anto King Anto King 1, 1 1 gold badge 11 11 silver badges 22 22 bronze badges. Your demo is not muted when I play it. I think it seems to work since it remembers if you muted it by hand, I can't get it to work consistently.In an earlier article, we revealed how to embed YouTube videos applying various tricks.
We discussed about embedding only the audio part of a YouTube videoa video without the YouTube Logovideos starting from a specific time and many more. But what if you wanted to embed a video from YouTube without the audio sound? Say, you want to create a promotional web page having video as its background. Putting the embedding code from YouTube in any web page will play both the video and the audio as well.
So whenever the browser loads the page, both the video and audio start to play. Again, if you decide to put more than one video auto-play enabledtoo many sounds will have been resulting a noisy environment. If you could mute the sound by default for the video sthings would be more acceptable. And here you go.
This article will guide you to embed YouTube videos with no sound. If you have a simple website, you can put the soundless YouTube video directly into the source template of the page.
Pasting the above code directly into the WordPress editing panel prevents the script from working in the right way.
Here is the little trick you can follow. See how! Create a custom key for the YouTube videos with no sound. Say, the key name is YouTubeKey.
Embed a YouTube Video with Mute Sound, Set Default Volume and Call onStateChange Event
Set the video id as the value of that key. Now put the following code at the single. So, if you are getting any problem with the code, make sure to replace them by typing manually from the keyboard.
Is that a common problem known to you or is it just my set-up that is wrong? Captain Nemo :. Codee Boy :. Hii found a solution for embed youtube video sound muted and other youtube properties in same youtube i think its very helpful link : akshyaa. Your email address will not be published. Save my name, email, and website in this browser for the next time I comment.
This site uses Akismet to reduce spam. Learn how your comment data is processed.Keep in touch and stay productive with Teams and Officeeven when you're working remotely. Learn More. Learn how to collaborate with Office After upgrading to Windows 10 on my Dell Venue Pro 11 tablet, the sound is muted by default when I reboot my computer. Has anyone else encountered this problem and, more importantly, found a way to resolve it?
Thank you for posting your query in Microsoft Community. This issue might be due to device driver, I suggest you to run a playing audio trouble shooter and see if it helps:. No sound in Windows suggestions mentioned in the following link are applicable to Windows 10 Technical Preview as well. If the issue persists then I request you to perform a clean boot and check if the third party application that is causing the issue.
Refer the below help article for assistance.Samsung Galaxy S9: How to Enable / Disable Mute All Sounds
How to perform a clean boot in Windows. Disclaimer: Please go through the section: How to reset the computer to start as usual after troubleshooting with clean boot of the Kb article to boot the computer in normal startup after fixing the issue. Hope this helps you. Please do let us know if you need further help. Did this solve your problem? Yes No. Sorry this didn't help. Thank you for your response, but none of these details address the specific issue I am reporting.
Change your preferences any time. Stack Overflow for Teams is a private, secure spot for you and your coworkers to find and share information. I have 6 videos on my site and i've added autoplay and loop to them, but i would like them to play with no audio, how can i do that?
Learn more. Ask Question. Asked 1 year, 10 months ago. Active 11 months ago. Viewed 2k times.
Active Oldest Votes. Zoe 20k 12 12 gold badges 77 77 silver badges bronze badges. LuisM LuisM 31 2 2 bronze badges. Apparently they already play muted, so problem solved. Sign up or log in Sign up using Google. Sign up using Facebook. Sign up using Email and Password. Post as a guest Name. Email Required, but never shown. The Overflow Blog. The Overflow How many jobs can be done at home? Featured on Meta. Community and Moderator guidelines for escalating issues via new response….
It only takes a minute to sign up. YouTube videos have all started playing with the audio slider set to mute. I can slide the volume on for each video to hear the audio, but when opening a new video it's also automatically set to mute.
I'm using Chrome on Windows 7, without any external Flash installed just Chrome's built-in version. It's a YouTube bug. According to Google employee ytKeane, it's is a known issue.
His or her reply in the Google Product forum is as follows:. While this issue is live, please try clearing your browser's cache and cookies, or the workaround:. The mute will keep coming back for each video you watch, but you can get your sound back each time by pausing the video, right clicking the little X by the speaker symbol and then clicking the speaker symbol itself.
Then start the video again. Kind of a pain, but at least you can hear the videos until the problem is fixed. Sign up to join this community. The best answers are voted up and rise to the top. Home Questions Tags Users Unanswered. YouTube videos automatically set to mute Ask Question.
Asked 6 years, 6 months ago. Active 2 years, 3 months ago. Viewed 32k times. How can I get videos to automatically play with volume enabled?
Andrew Lott Andrew Lott 2, 4 4 gold badges 17 17 silver badges 33 33 bronze badges.