Skip to content

Added mute functionality to module#27

Open
lkoren21 wants to merge 4 commits intonitpum:masterfrom
lkoren21:master
Open

Added mute functionality to module#27
lkoren21 wants to merge 4 commits intonitpum:masterfrom
lkoren21:master

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
}
}
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