It’s not working since April of 2018 because Google decided to give greater control of playback to users. You just need to add &mute=1 to your URL. Autoplay Policy Changes
<iframe id="existing-iframe-example"
width="640" height="360"
src="https://www.youtube.com/embed/-SFcIUEvNOQ?autoplay=1&mute=1&enablejsapi=1"
frameborder="0"
style="border: solid 4px #37474F"
></iframe>
Update :
Audio/Video Updates in Chrome 73
Google said : Now that Progressive Web Apps (PWAs) are available on all desktop platforms, we are extending the rule that we had on mobile to desktop: autoplay with sound is now allowed for installed PWAs. Note that it only applies to pages in the scope of the web app manifest. https://developers.google.com/web/updates/2019/02/chrome-73-media-updates#autoplay-pwa
Related Posts:
- How do I hide related videos at the end of a YouTube playlist embed code?
- iframe refuses to display
- Failed to load resource: net::ERR_INSECURE_RESPONSE
- Failed to load resource: net::ERR_BLOCKED_BY_RESPONSE
- Load denied by X-Frame-Options: does not permit framing
- How to embed a youtube playlist with a sidebar
- How to embed an autoplaying YouTube video in an iframe?
- Youtube – Embed as IFRAME
- Allow iframes from specific sites?
- Cannot add iframe in a blocktext
- How to get around iframes with WordPress?
- Iframe scrolls to middle of the page on load in Firefox [closed]
- iFrames when using custom shortcode, ACF and Elementor only renders alternate ones
- How to add data behind a login via iframe
- How to change src to data-src for iframe inside WP content?
- Iframe is not working for www.example.com/my-account
- Youtube iframe embed keeps disappearing from page
- Iframe Youtube video doesn’t work
- WordPress Mediaelement – Youtube Videos Embed Options
- Prevent other sites from showing my site via iframe
- iframe works for one C-Panel folder but not another
- How do I get a YouTube video thumbnail from the YouTube API?
- YouTube: How to extract closed caption transcript from YouTube video?
- iframe refuses to display
- Is there a way to get all IP addresses of youtube to block it with Windows Firewall?
- How to center an iframe horizontally?
- Making an iframe responsive
- Difference between document.referrer and window.parent.location.href
- YouTube maxresdefault thumbnails
- How to align iframe always in the center
- Alternative to iFrames with HTML5
- iFrame onload JavaScript event
- Youtube – downloading a playlist – youtube-dl
- Remove border from IFrame
- ‘NoneType’ object has no attribute ‘group’
- SecurityError: Blocked a frame with origin from accessing a cross-origin frame
- Blocked script execution in because the document’s frame is sandboxed – Angular application
- How to apply CSS to iframe?
- How do I get a YouTube video thumbnail from the YouTube API?
- Youtube api – stop video
- Inserting the iframe into react component
- Full-screen iframe with a height of 100%
- Youtube_dl : ERROR : YouTube said: Unable to extract video data
- Make iframe automatically adjust height according to the contents without using scrollbar?
- Play videos with iframe in html
- HTML iframe – disable scroll
- How to do auto-width with HTML IFrame
- Remove scrollbar from iframe
- “Full screen” iframe
- How to disable auto-play for local video in iframe
- difference between iframe, embed and object elements
- Embedding instagram webpage inside an iframe
- Adjust width and height of iframe to fit with content in it
- Proper Format of iframe in PHP?
- Reload an iframe with jQuery
- URL syntax for Youtube video in fullscreen and start at time index
- Disable play/pause/full screen for HTML5
- What’s the best way to reload / refresh an iframe?
- Failed to execute ‘postMessage’ on ‘DOMWindow’: https://www.youtube.com !== http://localhost:9000
- Is there a way to embed an iframe in an email with text that updates?
- Responsive iframe with max width and height
- Iframe’s overflow problem
- Full Page < iframe >
- YouTube: How to present embed video with sound muted
- How to customize an end time for a YouTube video?
- Change background color of iframe issue
- html : iframe not showing content in html
- How to fix facebook sharer button that appears cutted on wordpress
- How can I embed a YouTube video in a WordPress template page?
- Make WordPress WYSIWYG not strip out iframe’s
- Setting a post’s featured image from an embedded YouTube video
- Use [embed] filter in template files
- Do_Shortcode not working for Embed
- How to get SimplePie fetch_feed without stripping iframe code?
- How do I embed youtube videos with https instead of http in the URL?
- Adding iframe Content to Sidebar Widget
- How can I clear oEmbed caches for YouTube on posts as they are loaded
- WordPress Gutenberg Embed Blocks Are Not Responsive
- Make fonts.com font work in TinyMCE (iframe referrer issue)
- How add class youtube and type/html to oembed code?
- Implementing “Video of the Day” Feature?
- How to Replace YouTube Videos with a “Click to Play” Thumbnail?
- Embed iframe or html page into dashboard widget
- Is it possible to enqueue the Youtube API script or does it have to be inline?
- YouTube oEmbed and privacy-enhanced mode
- When switching from html to visual editor the tag gets corrupted
- Modify youtube video size on one page and show another size on different page
- add_filter to youtube embeds?
- Give Author users the right to embed
- Refresh wp.media after ajax call
- Is there a hook to put stylesheet and/or JS inside iframes (thickbox or tinyMCE) in admin area
- Preventing YouTube embeds loading multiple instances of player JS?
- Add post class to the TinyMCE iframe?
- WordPress Editor not getting youtube video preview
- Being notified when some YouTube video in some post becomes unavailable
- How to add editor-style.css styling to wp_editor on front end for comments
- Set wmode attribute to transparent for the embed shortcode to make drop-down menu hover over YouTube embed in Internet Explorer
- how can i embed wordpress backend in iframe
- Load post content into iframe
- How to change thumbnail of embedded Youtube video?