Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/nitpum/MMM-EmbedYoutube
Embed youtube video for MagicMirror
https://github.com/nitpum/MMM-EmbedYoutube
magicmirror magicmirror2 module youtube youtube-embed-player
Last synced: 3 months ago
JSON representation
Embed youtube video for MagicMirror
- Host: GitHub
- URL: https://github.com/nitpum/MMM-EmbedYoutube
- Owner: nitpum
- License: mit
- Created: 2017-08-13T12:57:58.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-04-13T13:29:16.000Z (over 2 years ago)
- Last Synced: 2024-06-29T08:35:53.964Z (5 months ago)
- Topics: magicmirror, magicmirror2, module, youtube, youtube-embed-player
- Language: JavaScript
- Homepage:
- Size: 21.5 KB
- Stars: 33
- Watchers: 5
- Forks: 13
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: license.txt
Awesome Lists containing this project
- awesome-mmm - **MMM-EmbedYoutube**
README
# Embed Youtube Module for [MagicMirror](https://github.com/MichMich/MagicMirror)
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT) [![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/F1F21LCOB)
v1.4.0
## Using this module
To use this module, add it to the modules array in the config/config.js file:
```js
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' in README.md for more information.
video_id: 'w3jLJU7DT5E',
loop: true,
},
},
]
```## Configuration
The following properties are required for configuration:
| Config | Description |
| ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `video_id` | Youtube video id to display. You can get it from youtube url
**Example:** `https://www.youtube.com/watch?v=dQw4w9WgXcQ`
**video_id:** dQw4w9WgXcQ |## Optional configuration
The following properties can be configured:
| Option | Description | Default Value | Type Data |
| ---------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------- | --------- |
| `autoplay` | Autoplay video when it loaded | `false` | Boolean |
| `cc_load_policy` | Subtitles/Closed captions enabled automatically | `false` | Boolean |
| `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` | `"red"` | String |
| `controls` | Show youtube video controls bar | `true` | Boolean |
| `disablekb` | Disable keyboard control | `false` | Boolean |
| `fs` | Displaying fullscreen button in player | `true` | Boolean |
| `loop` | Auto-play video again | `false` | Boolean |
| `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. | `false` | Boolean |
| `rel` | Show related video at the end of video | `false` | Boolean |
| `showinfo` | Show video title and uploader | `false` | Boolean |
| `video_list` | Play video from list by video id. Youtube will play `video_id` first then play video from `video_list`. See [Example in Wiki](https://github.com/nitpum/MMM-EmbedYoutube/wiki/Custom-Playlist) | [] | Array |
| `playlist` | Play video from playlist by playlist id. **\*Note** It will neither play video from `video_id` nor `video_list` | "" | String |
| `width` | Video width | `560` | Integer |
| `height` | Video height | `315` | Integer |## Support
[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/F1F21LCOB)
## License
MIT Copyright (c) 2017 Nitipoom Unrrom (aka nitpum)