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 to set autoplay for iframeHtml ? #51

Open
BlackProgTime opened this issue Apr 1, 2022 · 1 comment
Open

How to set autoplay for iframeHtml ? #51

BlackProgTime opened this issue Apr 1, 2022 · 1 comment

Comments

@BlackProgTime
Copy link

BlackProgTime commented Apr 1, 2022

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
Copy link
Author

?

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

1 participant