This a module for the MagicMirror. It helps you easily implement YouTube videos to be played in your MagicMirror by using YouTube's own iFrame API.
To use this module, add it to the modules array in the config/config.js
file:
modules: [
{
module: 'MMM-YouTube-API',
position: 'top_center',
config: {
//Config here
}
}
]
Option | Description |
---|---|
width |
The width of the video. Default value: 640 |
height |
The height of the video. Default value: 360 |
videoID |
The YouTube video ID. Example: Link: https://www.youtube.com/watch?v=Sagg08DrO5U Id: Sagg08DrO5U Default value: Sagg08DrO5U |
playbackRate |
The rate at which the video plays. Valid values: 0.25 , 0.5 , 1 , 1.5 , 2 Default value: 1 |
volume |
The playback volume of the selected video. Valid values: 0 - 100 Default value: 100 |
loop |
Should the video loop? Valid values: true or false Default value: true |
Made in collaboration with my dear friend Alfred