📅  最后修改于: 2022-03-11 15:03:25.209000             🧑  作者: Mango
//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'
},
}