Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added mute functionality to module #27

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

lkoren21
Copy link

When running on chromium video won't autoplay when is not muted. To patch this mute option is added.

When running on chromium or chrome if video is not muted autoplay won't work. Added mute option to enable autoplay when sound is not important.
Added mute config option
Added mute option to readme
@@ -41,6 +42,7 @@ Module.register("MMM-EmbedYoutube", {
}
}
params += (this.config.autoplay) ? "autoplay=1" : "autoplay=0";
params += (this.config.mute) ? "&mute=1" : "&mute=0";
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Where did you get mute? I can't find this parameters from Youtube IFrame API docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants