SamirHodzic / ngx-embed-video

Get embed code for embedding youtube/vimeo/dailymotion/* video in websites from URL or ID in Angular 6+.
MIT License
56 stars 41 forks source link

How to set autoplay for iframeHtml ? #51

Open BlackProgTime opened 2 years ago

BlackProgTime commented 2 years ago

I use ngx-embed-video/dist for my video section on web page. I try to set autoplay like it is write in documentation but it don't work for me. Who can help me with fixing it ? Here I set iframeHtml

` "<div class="videoPlayer" [innerHTML]="iframeHtml">

"

loadVideo() { if (this.validUrl.transform(this.video.url)) { this.iframeHtml = this.embedService.embed(this.video.url, { query: { autoplay: 1 } }); } } `

BlackProgTime commented 2 years ago

?