YouTube API最低嵌入大小已更改?

时间:2013-09-12 05:11:35

标签: youtube-api

我见过的所有文档都说最小玩家大小是200x200,但是当我尝试嵌入http://www.youtube.com/watch?feature=player_embedded&v=RByVyVvMpQI时,我在Flash Player日志中收到以下消息:

info Error: player size set to 300x220 which is below minimum dimensions 320x60

是否更改了要求?视频所有者是否可以设置最低限度? WTF?

1 个答案:

答案 0 :(得分:0)

在youtube api文档中,它被称为。

  

为了获得关键玩家功能的空间,玩家必须至少200px乘200px。

但在JavaScript播放器文档中,提到最小播放器大小因视频质量而异。

Quality level small: Player height is 240px, and player dimensions are at least 320px by 240px for 4:3 aspect ratio.
Quality level medium: Player height is 360px, and player dimensions are 640px by 360px (for 16:9 aspect ratio) or 480px by 360px (for 4:3 aspect ratio).
Quality level large: Player height is 480px, and player dimensions are 853px by 480px (for 16:9 aspect ratio) or 640px by 480px (for 4:3 aspect ratio).
Quality level hd720: Player height is 720px, and player dimensions are 1280px by 720px (for 16:9 aspect ratio) or 960px by 720px (for 4:3 aspect ratio).
Quality level hd1080: Player height is 1080px, and player dimensions are 1920px by 1080px (for 16:9 aspect ratio) or 1440px by 1080px (for 4:3 aspect ratio).
Quality level highres: Player height is greater than 1080px, which means that the player's aspect ratio is greater than 1920px by 1080px.

您可能在播放器中播放的视频不符合上述预期。请参阅this(标题播放质量下方)以获取更多信息。