<?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[Introducing MMM-YouTubeWebView Module]]></title><description><![CDATA[<p dir="auto">I have released the initial version of the MMM-YouTubeWebView MagicMirror module at <a href="https://gitlab.com/doctorfree/MMM-YouTubeWebView" target="_blank" rel="noopener noreferrer nofollow ugc">https://gitlab.com/doctorfree/MMM-YouTubeWebView</a></p>
<p dir="auto">This module allows embedding of YouTube videos, either singly or as a list of YouTube video IDs, or as a public YouTube playlist ID. The module uses the Electron webview tag rather than an iframe in an attempt to avert YouTube blocking the requested video for any of several reasons.</p>
<p dir="auto">The webview tag is used to embed ‘guest’ content in the MagicMirror Electron app. The guest content is contained within the webview container. An embedded page within MagicMirror controls how the guest content is laid out and rendered.</p>
<p dir="auto">Unlike an iframe, the webview runs in a separate process than MagicMirror. It doesn’t have the same permissions and all interactions between MagicMirror and embedded content will be asynchronous. This keeps MagicMirror safe from the embedded content.</p>
<p dir="auto">Under the hood webview is implemented with Out-of-Process iframes (OOPIFs).<br />
The webview tag is essentially a custom element using shadow DOM to wrap an<br />
iframe element inside it. So the behavior of webview is very similar to a<br />
cross-domain iframe. As such, it can be used to safely avoid cross-domain<br />
policy restrictions that may prevent access to web content.</p>
<p dir="auto">This module is based upon both the MMM-WebView module and the MMM-EmbedYoutube module with added functionality. There are some limitations to embedding with webview. These are detailed in the README. There may be a better way to do what I have done here. Possibly I should be using the Electron BrowserView instead. I would be open to suggestion. However, this release does accomplish what I set out to do - I can play my YouTube playlists and lists of YouTube videos without YouTube telling me the video is unavailable which is what I was seeing when using an iframe.</p>
<p dir="auto">This is the initial release so I expect there will be significant changes in the near term. I’ve thoroughly tested it but expect issues will arise. The module is a work-in-progress and in active development.</p>
<p dir="auto">Any feedback will be greatly appreciated.</p>
]]></description><link>https://forum.magicmirror.builders/topic/15738/introducing-mmm-youtubewebview-module</link><generator>RSS for Node</generator><lastBuildDate>Thu, 14 May 2026 00:31:30 GMT</lastBuildDate><atom:link href="https://forum.magicmirror.builders/topic/15738.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 13 Oct 2021 21:51:15 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Introducing MMM-YouTubeWebView Module on Mon, 10 Feb 2025 15:17:15 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kristjanesperanto" aria-label="Profile: KristjanESPERANTO">@<bdi>KristjanESPERANTO</bdi></a> Now that’s a whole new approach. Thanks, it works!</p>
]]></description><link>https://forum.magicmirror.builders/post/123911</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/123911</guid><dc:creator><![CDATA[mmmmh]]></dc:creator><pubDate>Mon, 10 Feb 2025 15:17:15 GMT</pubDate></item><item><title><![CDATA[Reply to Introducing MMM-YouTubeWebView Module on Mon, 10 Feb 2025 14:27:20 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/mmmmh" aria-label="Profile: mmmmh">@<bdi>mmmmh</bdi></a> <a href="https://github.com/KristjanESPERANTO/MMM-ISS-Live" target="_blank" rel="noopener noreferrer nofollow ugc">MMM-ISS-Live</a> has a mute option.</p>
]]></description><link>https://forum.magicmirror.builders/post/123908</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/123908</guid><dc:creator><![CDATA[KristjanESPERANTO]]></dc:creator><pubDate>Mon, 10 Feb 2025 14:27:20 GMT</pubDate></item><item><title><![CDATA[Reply to Introducing MMM-YouTubeWebView Module on Mon, 10 Feb 2025 12:00:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/doctorwhen" aria-label="Profile: doctorwhen">@<bdi>doctorwhen</bdi></a> Is there a way to control a video’s volume? I embedded the ISS’s livestream and I would like to mute it since every once in a while some radio chatter is on the audio channel. When I have the module hidden it is kinda eerie.</p>
]]></description><link>https://forum.magicmirror.builders/post/123898</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/123898</guid><dc:creator><![CDATA[mmmmh]]></dc:creator><pubDate>Mon, 10 Feb 2025 12:00:12 GMT</pubDate></item><item><title><![CDATA[Reply to Introducing MMM-YouTubeWebView Module on Mon, 25 Dec 2023 01:37:42 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto">if you open the developers window console tab view, do you see any errors. this module is all in browser</p>
</blockquote>
<p dir="auto">Unfortunately, I can’t see any errors there.</p>
<pre><code>Initializing MagicMirror².
translator.js:122 Loading core translation file: translations/en.json
VM4 sandbox_bundle:2 Electron Security Warning (Insecure Content-Security-Policy) This renderer process has either no Content Security
  Policy set or a policy with "unsafe-eval" enabled. This exposes users of
  this app to unnecessary security risks.

For more information and help, consult
https://electronjs.org/docs/tutorial/security.
This warning will not show up
once the app is packaged.
warnAboutInsecureCSP @ VM4 sandbox_bundle:2
translator.js:138 Loading core translation fallback file: translations/en.json
loader.js:165 Load script: modules/default/clock/clock.js
module.js:484 Module registered: clock
loader.js:138 Bootstrapping module: clock
loader.js:165 Load script: vendor/node_modules/moment/min/moment-with-locales.js
loader.js:165 Load script: vendor/node_modules/moment-timezone/builds/moment-timezone-with-data.js
loader.js:165 Load script: vendor/node_modules/suncalc/suncalc.js
loader.js:142 Scripts loaded for: clock
loader.js:180 Load stylesheet: modules/default/clock/clock_styles.css
loader.js:145 Styles loaded for: clock
loader.js:148 Translations loaded for: clock
loader.js:165 Load script: modules/MMM-YouTubeWebView/MMM-YouTubeWebView.js
module.js:484 Module registered: MMM-YouTubeWebView
loader.js:138 Bootstrapping module: MMM-YouTubeWebView
loader.js:142 Scripts loaded for: MMM-YouTubeWebView
loader.js:145 Styles loaded for: MMM-YouTubeWebView
loader.js:148 Translations loaded for: MMM-YouTubeWebView
loader.js:180 Load stylesheet: css/custom.css
clock.js:49 Starting module: clock
module.js:45 Starting module: MMM-YouTubeWebView
main.js:608 All modules started!
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/113574</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/113574</guid><dc:creator><![CDATA[KristjanESPERANTO]]></dc:creator><pubDate>Mon, 25 Dec 2023 01:37:42 GMT</pubDate></item><item><title><![CDATA[Reply to Introducing MMM-YouTubeWebView Module on Mon, 25 Dec 2023 01:23:46 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="/user/kristjanesperanto" aria-label="Profile: KristjanESPERANTO">@<bdi>KristjanESPERANTO</bdi></a> if you open the developers window console tab view,<br />
do you see any errors. this module is all in browser</p>
]]></description><link>https://forum.magicmirror.builders/post/113573</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/113573</guid><dc:creator><![CDATA[sdetweil]]></dc:creator><pubDate>Mon, 25 Dec 2023 01:23:46 GMT</pubDate></item><item><title><![CDATA[Reply to Introducing MMM-YouTubeWebView Module on Mon, 25 Dec 2023 00:23:24 GMT]]></title><description><![CDATA[<p dir="auto">Hi <a class="plugin-mentions-user plugin-mentions-a" href="/user/doctorwhen" aria-label="Profile: doctorwhen">@<bdi>doctorwhen</bdi></a>! Thanks for this module! :-)</p>
<p dir="auto">I tried to get it to run, but it just doesn’t. I don’t get an error message, just a black screen. I am using node version 18 and the latest version of MagicMirror.</p>
<p dir="auto">Does the module work for you (or for someone else) with current versions?</p>
<p dir="auto">That’s my config:</p>
<pre><code class="language-js">{
    module: "MMM-YouTubeWebView",
    position: "middle_center", 
    config: {
      video_id: "w3jLJU7DT5E", 
      video_list: [
        "CtVyl402W5s", 
        "wmUVy43tqw4",
        "J_TxPQKcG7w", 
        "avWZsKyuRVE",
        "IpkIGGJMHBA", 
        "B9zgwx6mhrk",
        "6KvTDeHlIfI"
      ],
      autoplay: true,
      controls: true,
      loop: true,
      modestbranding: true,
      width: "800px",
      height: "450px"
    }
  }
</code></pre>
]]></description><link>https://forum.magicmirror.builders/post/113572</link><guid isPermaLink="true">https://forum.magicmirror.builders/post/113572</guid><dc:creator><![CDATA[KristjanESPERANTO]]></dc:creator><pubDate>Mon, 25 Dec 2023 00:23:24 GMT</pubDate></item></channel></rss>