MagicMirror Module - Background YouTube video player. Minimal implemented module to play a YouTube video in the background of your MagicMirror. Provide a YouTube Video ID, and enjoy a fullscreen, looping, and muted background.
# In your MagicMirror directory
git submodule add -f https://github.com/wickes1/MMM-BackgroundYouTube.git modules/MMM-BackgroundYouTube
git submodule update --remote
Option | Description | Default |
---|---|---|
videoID |
The YouTube video ID to play in the background. | "" |
To use this module, add it to the modules array in the config/config.js
file:
modules:[
{
module: "MMM-BackgroundYouTube",
position: "fullscreen_below",
config: {
videoID: "dQw4w9WgXcQ",
},
},
]
The YouTube video ID is the string of characters after v=
in the URL of the video. For example, in the URL https://www.youtube.com/watch?v=dQw4w9WgXcQ
, the video ID is dQw4w9WgXcQ
.
One of the possible reason is the copyrighted music are not allowed to play in the background.
No, it is not possible to autoplay with sound but no interaction with the browser. Modern browsers will block autoplay with sound. You can read more about it here.