Loading src/app/modules/media/components/video/video.component.html +0 −1 Original line number Original line Diff line number Diff line Loading @@ -29,7 +29,6 @@ <i *ngIf="!playerRef.isPlaying() && !playerRef.isLoading()" <i *ngIf="!playerRef.isPlaying() && !playerRef.isLoading()" class="material-icons minds-video-play-icon" class="material-icons minds-video-play-icon" (click)="playerRef.play()" (click)="playerRef.play()" #playButton >play_circle_outline</i> >play_circle_outline</i> <ng-content></ng-content> <ng-content></ng-content> Loading src/app/modules/media/components/video/video.component.ts +2 −3 Original line number Original line Diff line number Diff line Loading @@ -27,12 +27,11 @@ export class MindsVideoComponent { @ViewChild('progressBar', { static: false }) progressBar: MindsVideoProgressBar; @ViewChild('progressBar', { static: false }) progressBar: MindsVideoProgressBar; @ViewChild('volumeSlider', { static: false }) volumeSlider: MindsVideoVolumeSlider; @ViewChild('volumeSlider', { static: false }) volumeSlider: MindsVideoVolumeSlider; @ViewChild('player', { static: false }) playerRef: MindsPlayerInterface; @ViewChild('player', { static: false }) playerRef: any; @ViewChild('playButton', { static: false }) playButton: ElementRef; @HostListener('window:scroll') @HostListener('window:scroll') checkScroll() { checkScroll() { if (!this.isInView(this.playButton.nativeElement) && this.playerRef.isPlaying()) { if (!this.isInView(this.playerRef.nativeElement) && this.playerRef.isPlaying()) { this.playerRef.pause(); this.playerRef.pause(); } } } } Loading Loading
src/app/modules/media/components/video/video.component.html +0 −1 Original line number Original line Diff line number Diff line Loading @@ -29,7 +29,6 @@ <i *ngIf="!playerRef.isPlaying() && !playerRef.isLoading()" <i *ngIf="!playerRef.isPlaying() && !playerRef.isLoading()" class="material-icons minds-video-play-icon" class="material-icons minds-video-play-icon" (click)="playerRef.play()" (click)="playerRef.play()" #playButton >play_circle_outline</i> >play_circle_outline</i> <ng-content></ng-content> <ng-content></ng-content> Loading
src/app/modules/media/components/video/video.component.ts +2 −3 Original line number Original line Diff line number Diff line Loading @@ -27,12 +27,11 @@ export class MindsVideoComponent { @ViewChild('progressBar', { static: false }) progressBar: MindsVideoProgressBar; @ViewChild('progressBar', { static: false }) progressBar: MindsVideoProgressBar; @ViewChild('volumeSlider', { static: false }) volumeSlider: MindsVideoVolumeSlider; @ViewChild('volumeSlider', { static: false }) volumeSlider: MindsVideoVolumeSlider; @ViewChild('player', { static: false }) playerRef: MindsPlayerInterface; @ViewChild('player', { static: false }) playerRef: any; @ViewChild('playButton', { static: false }) playButton: ElementRef; @HostListener('window:scroll') @HostListener('window:scroll') checkScroll() { checkScroll() { if (!this.isInView(this.playButton.nativeElement) && this.playerRef.isPlaying()) { if (!this.isInView(this.playerRef.nativeElement) && this.playerRef.isPlaying()) { this.playerRef.pause(); this.playerRef.pause(); } } } } Loading