YouTube iFrame API “setPlaybackQuality” or “suggestedQuality” not working
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I'm having some trouble setting the quality settings on a video via the Youtube iFrame API. This is my code: var player; player = new YT.Player('player', { height: '490', width: '725', videoId: yturl, /* setPlaybackQuality: 'hd720', The funny thing is that my call to player.setPlaybackQuality or event.target.setPlaybackQuality doesn't give any errors. It just looks as if the player ignores it. A call to, say, player.setSuggestedQuality (a function that doesn't exist) throws an error as expected. I've tried all the valid string parameters as