While trying to show a youtube video, It worked well but when i take a look on my console I found those errors :
Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
static.doubleclick.net/instream/ad_status.js
Failed to load resource: net::ERR_BLOCKED_BY_CLIENT
VM1427 www-embed-player.js:302
GET https://googleads.g.doubleclick.net/pagead/id net::ERR_BLOCKED_BY_CLIENT
GET https://googleads.g.doubleclick.net/pagead/id net::ERR_BLOCKED_BY_CLIENT
This is my class :
import { Component } from '@angular/core';
import { NavController } from 'ionic-angular';
@Component({
selector: 'page-youtube',
template: `
<ion-header>
<ion-navbar>
<ion-title>Vidéo Youtube</ion-title>
</ion-navbar>
</ion-header>
<ion-content>
<iframe width="560" height="315" src="https://www.youtube.com/embed/xxxxxxxxxx" frameborder="0" gesture="media" allow="encrypted-media" allowfullscreen></iframe>
</ion-content>
`,
})
export class YoutubeVideo{
constructor(public navCtrl: NavController){}
}
Another problem is my video take only the half of the screen not all the screen.