How to select and control Embedded Youtube videos


Hello there,

I’m using Ionic 3 and I have a few Youtube embedded videos on my page.

Everything is fine, but I want to stop the video when I leave the page, otherwise it just keeps going. So my problem is, how can I select the video which is in a frame and how to control such object, is there a method stop(), or pause() ?

My code:


<ion-card *ngFor="let v of videos">
      <iframe width="560" height="315" [src]=" | youtube" frameborder="0" frameborder="0"></iframe>


private videos: any[] = [
     title: 'Ultimate Dog Tease',
     video: ''
     title: 'Neno Halloween',
     video: ''

What I want to do is to stop all videos when I leave the page, so the code should be inside the ionViewWillLeave()

So, any help on how to select the video, which object it should be and what commands can I use?