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

how do i autoplay ? #33

Open
linkswapnil opened this issue Oct 19, 2019 · 1 comment
Open

how do i autoplay ? #33

linkswapnil opened this issue Oct 19, 2019 · 1 comment

Comments

@linkswapnil
Copy link

No description provided.

@SavageCore
Copy link

It is as simple as setting autoplay to 1 in query parameters of embed src as described on the youtube documentation.

This is how you do it:

this.embedService.embed_youtube(this.youtubeId, {
	query: { autoplay: 1 }
});

It results in code such as:

<iframe src="https://www.youtube.com/embed/dQw4w9WgXcQ?autoplay=1" allowfullscreen="" frameborder="0"></iframe>

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

No branches or pull requests

2 participants