This commit is contained in:
Peter Maquiran
2023-12-13 17:24:26 +01:00
parent 08ec477adf
commit 56c5416aac
2 changed files with 2 additions and 2 deletions
@@ -25,7 +25,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
@@ -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