我正在尝试使用Youtube 的 oEmbed 功能来嵌入 960x580 的视频,但由于某种原因,它似乎达到了 740 的最大值。请参见下文:
要求:
http://www.youtube.com/oembed?url=http%3A//www.youtube.com/watch%3Fv%3DbDOYN-6gdRE&format=json&maxwidth=960&maxheight=580
回复:
{
"provider_url": "http:\/\/www.youtube.com\/",
"title": "1 of 4 Dr. Bill Lands on Cardiovascular Disease: Omega-6 displaces Omega-3",
"html": "\u003cobject width=\"740\" height=\"580\"\u003e\u003cparam name=\"movie\" value=\"http:\/\/www.youtube.com\/v\/dgU3cNppzO0?version=3\"\u003e\u003c\/param\u003e\u003cparam name=\"allowFullScreen\" value=\"true\"\u003e\u003c\/param\u003e\u003cparam name=\"allowscriptaccess\" value=\"always\"\u003e\u003c\/param\u003e\u003cembed src=\"http:\/\/www.youtube.com\/v\/dgU3cNppzO0?version=3\" type=\"application\/x-shockwave-flash\" width=\"740\" height=\"580\" allowscriptaccess=\"always\" allowfullscreen=\"true\"\u003e\u003c\/embed\u003e\u003c\/object\u003e",
"author_name": "LatestNutrition",
"height": 580,
"thumbnail_width": 480,
"width": 740,
"version": "1.0",
"author_url": "http:\/\/www.youtube.com\/user\/LatestNutrition",
"provider_name": "YouTube",
"thumbnail_url": "http:\/\/i1.ytimg.com\/vi\/dgU3cNppzO0\/hqdefault.jpg",
"type": "video",
"thumbnail_height": 360
}
除了and之外,我什至尝试使用width
andheight
参数代替 / ,但我似乎仍然无法让它大于 740。maxwidth
maxheight
有什么办法可以解决这个问题,这样我就可以获得所需尺寸的嵌入式视频?