-
Notifications
You must be signed in to change notification settings - Fork 36
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
Autoplay not working #105
Comments
I have the same issue |
I also have the same issue please fix this |
It appears the issue lies not with Videogular, but rather with Angular itself. Here's the solution that resolved the problem for me:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
I'm having some trouble autoplaying the video when loading the page.
The video source URL is loaded dinamically so I've wrapped vg-player with a div and a ngIf so it shows only when the source URL is not empty.
If I add the autoplay="true" to the video tag when I recompile the first time it works but on every reload of the page after it doesn't work anymore. The video loads correctly but I have to press the play button manually.
I've also tried to implement APIs using the onPlayerReady event but then the subscribe is not fired.
ngx-videogular version: 6.0.0
Expected Behavior
Expected Behavior: video autoplay when player is loaded
Actual Behavior
Actual Behavior: I have to press play manually, autoplay works only on recompile. APIs not firing
The text was updated successfully, but these errors were encountered: