The target origin provided ('https://www.youtube.com') does not match the recipient window's origin ('http://localhost')
//Add the parameter "origin" with the URL of your site in the paramVars attribute of the player
this.player = new window['YT'].Player('player', {
videoId: this.mediaid,
width: '100%',
playerVars: {
'autoplay': 1,
'controls': 0,
'autohide': 1,
'wmode': 'opaque',
'origin': 'http://localhost:8100'
},
}