<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Autoplaying videos with MMM-iFrame-Ping]]></title><description><![CDATA[<p dir="auto">I’ve heard that MagicMirror stopped autoplaying videos in the browser since about version 2.10. I would like to use the MMM-iFrame-Ping module to play news videos in the mornings at my MagicMirror. I also noticed that a lot of websites like CBSNews, NBCNews, CNN, and <a href="http://Haystack.tv" target="_blank" rel="noopener noreferrer nofollow ugc">Haystack.tv</a> stopped autoplaying videos when you go to their websites.</p>
<p dir="auto">I don’t want to use a keyboard or mouse with my MM. Can anyone think of a way to script these sites to play their videos when the iFrame opens?</p>
]]></description><link>https://forum.magicmirror.builders/topic/15417/autoplaying-videos-with-mmm-iframe-ping</link><generator>RSS for Node</generator><lastBuildDate>Sat, 18 Apr 2026 04:37:13 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/15417.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 26 Aug 2021 21:43:45 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Autoplaying videos with MMM-iFrame-Ping on Sun, 29 Aug 2021 02:11:28 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/joeronimo" aria-label="Profile: joeronimo">@<bdi>joeronimo</bdi></a> i do not know… they have been increasing the  controls here to stop autoplay, cause customers are screaming…</p>
<p dir="auto">i still yell at my phone browser every day cause it plays something I don’t think it should.</p>
]]></description><link>https://forum.magicmirror.builders/post/93997</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/93997</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Sun, 29 Aug 2021 02:11:28 GMT</pubDate></item><item><title><![CDATA[Reply to Autoplaying videos with MMM-iFrame-Ping on Sun, 29 Aug 2021 01:38:32 GMT]]></title><description><![CDATA[<p dir="auto">Thank you for answering <a class="plugin-mentions-user plugin-mentions-a" href="/user/sdetweil" aria-label="Profile: sdetweil">@<bdi>sdetweil</bdi></a> , unfortunately, that didn’t work. I tried it with several sites that have a video at the top of their page, but none of them autoplayed if they even loaded at all into the iFrame.</p>
<p dir="auto">Anyway, this is what I put into my electron.js:</p>
<pre><code>	darkTheme: true,
	webPreferences: {
		autoplayPolicy: 'no-user-gesture-required',
                contextIsolation: true,
		nodeIntegration: false,
		zoomFactor: config.zoom
	},
</code></pre>
<p dir="auto">Is there something else that I need to do? With so many websites turning autoplay off, do you think we can simulate a mouse-click event in the middle of the iFrame after the page loads by modifying the MMM-iFrame-Ping.js file?</p>
]]></description><link>https://forum.magicmirror.builders/post/93996</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/93996</guid><dc:creator><![CDATA[JoeRonimo]]></dc:creator><pubDate>Sun, 29 Aug 2021 01:38:32 GMT</pubDate></item><item><title><![CDATA[Reply to Autoplaying videos with MMM-iFrame-Ping on Thu, 26 Aug 2021 22:06:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/joeronimo" aria-label="Profile: joeronimo">@<bdi>joeronimo</bdi></a> yes, in 2,10 I added the setting to electron to allow auto play</p>
<p dir="auto">electron changed the setting again ,</p>
<p dir="auto">from <a href="https://www.electronjs.org/docs/api/browser-window" target="_blank" rel="noopener noreferrer nofollow ugc">https://www.electronjs.org/docs/api/browser-window</a></p>
<p dir="auto">u will have to edit the code</p>
<p dir="auto">MagicMirror/js/electron.js</p>
<p dir="auto">add to the webPreferences</p>
<pre><code>		darkTheme: true,
		webPreferences: {
			contextIsolation: true,
			nodeIntegration: false,
			zoomFactor: config.zoom
		},
</code></pre>
<pre><code>autoplayPolicy: 'no-user-gesture-required',
</code></pre>
<p dir="auto">but</p>
<pre><code>autoplayPolicy String (optional) - Autoplay policy to apply to content in the window, can be no-user-gesture-required, user-gesture-required, document-user-activation-required. 


Defaults to no-user-gesture-required.  &lt;-------
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/93935</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/93935</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Thu, 26 Aug 2021 22:06:48 GMT</pubDate></item></channel></rss>