This commit is contained in:
Peter Maquiran
2023-12-13 18:19:08 +01:00
parent 56c5416aac
commit e2cf79352e
8 changed files with 71 additions and 19 deletions
@@ -24,7 +24,7 @@ export class VisibilityDirective {
entries.forEach(entry => {
if (entry.isIntersecting) {
this.appVisibility(true);
// this.stopvideoService.registerVideo(this.elementRef.nativeElement)
this.stopvideoService.registerVideo(this.elementRef.nativeElement)
} else {
this.elementRef.nativeElement.pause()
// Pause video when not visible