Open linkswapnil opened 4 years ago
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>
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:
It results in code such as: