You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This happens when the video player is created when entering a component but "destroyed" before onPlayerReady is called.
It can happen in a real app when user will go on a route but immediately click on another link to go on another route, in this scenario, the player would have started to create but will be destroyed directly.
The problems seems to come from vg-overlay-play & vg-controls
Workaround
When you get onPlayerReady event, start to create <vg-overlay-play> & <vg-controls>, i.e:
public isPlayerReady: boolean=false;publiconPlayerReady(api: VgApiService): void{this.api=api;setTimeout((): void=>{this.isPlayerReady=true;});}
I'm guessing the fix is simply to add a if statement somewhere in the overlay and controls component...
Expected Behavior
No exception is raised in this scenario
Actual Behavior
THere were 2 exceptions being thrown
Steps to Reproduce
I created this stackblitz that "fake" the behaviour I described above, there is a ExpressionChangedAfterItHasBeenCheckedError because of the way I "faked" the reproduction but you also see the videogular errrors https://ngx-ui-scroll-3-angular-16-jq9qdj.stackblitz.io
Thanks for this great component
The text was updated successfully, but these errors were encountered:
Also im trying to use [vgMedia] in my project and no matter what i do i get the error: "Can't bind to 'vgMedia' since it isn't a known property of 'vg-player'"
I'm using the version 8.0.0 which is the latest, i have a component with a module, in this module im importing all 4 Modules: VgCoreModule, VgControlsModule, VgOverlayPlayModule, VgBufferingModule
Description
I encountered these 2 errors:
This happens when the video player is created when entering a component but "destroyed" before
onPlayerReady
is called.It can happen in a real app when user will go on a route but immediately click on another link to go on another route, in this scenario, the player would have started to create but will be destroyed directly.
The problems seems to come from
vg-overlay-play
&vg-controls
Workaround
When you get
onPlayerReady
event, start to create<vg-overlay-play>
&<vg-controls>
, i.e:onPlayerReady
:I'm guessing the fix is simply to add a
if
statement somewhere in the overlay and controls component...Expected Behavior
No exception is raised in this scenario
Actual Behavior
THere were 2 exceptions being thrown
Steps to Reproduce
I created this stackblitz that "fake" the behaviour I described above, there is a
ExpressionChangedAfterItHasBeenCheckedError
because of the way I "faked" the reproduction but you also see the videogular errrorshttps://ngx-ui-scroll-3-angular-16-jq9qdj.stackblitz.io
Thanks for this great component
The text was updated successfully, but these errors were encountered: