Embed Youtube Module for MagicMirror
v1.2.1
To use this module, add it to the modules array in the config/config.js file:
modules: [
{
module: "MMM-EmbedYoutube", // Path to youtube module from modules folder Exmaple: MagicMirror/modules/custom/MMM-EmbedYoutube/ so it's custom/MMM-EmbedYoutube
position: "bottom_bar", // This can be any of the regions.
config: {
// See 'Configuration options' for more information.
video_id: "w3jLJU7DT5E"
}
}
]
The following properties are require for configured:
Config | Description |
---|---|
video_id |
Youtube video id to display. You can get it from youtube url Example: https://www.youtube.com/watch?v=w3jLJU7DT5E video_id: w3jLJU7DT5E |
The following properties can be configured:
Option | Description |
---|---|
autoplay |
Autoplay video when it loaded Default: false |
color |
Player's video progress bar to highlight the amount of the video that the viewer has already seen but color can be only red or white Default: "red" |
controls |
Show youtube video controls bar Default: true |
disablekb |
Disable keyboard control Default: false |
fs |
Displaying fullscreen button in player Default: true |
loop |
Auto-play video again Default: false |
modestbranding |
Prevent the Youtube logo displaying in the controlbar. But Youtube text label still display in the upper-right cornner of a paused video when the user's mouse pointer hovers over the player. Default: false |
rel |
Show related video at the end of video Default: false |
showinfo |
Show video title and uploader Default: false |
width |
Video width Default: 560 |
height |
Video height Default: 315 |
MIT Copyright (c) 2017 Nitipoom Unrrom (aka nitpum)