情景:
嗨,我的个人帐户上有YouTube频道(品牌)。我的问题是我无法在我们的组织网站上嵌入我的“品牌频道”。我想在我的网站上嵌入播放器,这将特别显示我的频道活动。
我的频道ID是UCQK3B7dSiwH3F1zg3JOThLw
我试过了:
<iframe src="http://www.youtube.com/embed/?listType=user_uploads&list=UCQK3B7dSiwH3F1zg3JOThLw" width="480" height="400"></iframe>
但是我收到了这个错误:
{
"cpn": "W8El0IDdHj8fczkE",
"vct": "0.000",
"vd": "NaN",
"vpl": "",
"vbu": "",
"vpa": "true",
"vsk": "false",
"ven": "false",
"vpr": "1",
"vrs": "0",
"vns": "0",
"vec": "null",
"vvol": "0.21",
"state": "80",
"debug_error": {
"errorCode": "api.invalidparam",
"errorDetail": "invalidVideodata.1",
"message": "An error occurred. Please try again later.",
"messageKey": "YTP_ERROR_GENERIC_WITHOUT_LINK",
"subreason": ""
},
"relative_loudness": "NaN",
"user_qual": "hd720",
"0sz": false,
"op": "",
"yof": false,
"dis": "",
"gpu": "ANGLE_(Intel(R)_HD_Graphics_4600_Direct3D11_vs_5_0_ps_5_0)",
"cgr": true,
"debug_playbackQuality": "unknown",
"debug_date": "Fri Mar 16 2018 12:07:54 GMT+0800 (Malay Peninsula Standard Time)"
}
我在技术上或法律上错过或误解了什么? 提前致谢! -Gerard
答案 0 :(得分:0)
我不知道是否可以嵌入整个chanel但是为了嵌入播放列表你可以这样做......
示例播放列表,取de&#34; V&#34; requesParam值&#34; uXTsx1FMCcI&#34;
https://www.youtube.com/watch?v=uXTsx1FMCcI&list=UUQK3B7dSiwH3F1zg3JOThLw
嵌入代码,将其传递给src值
`<iframe src="http://www.youtube.com/embed/uXTsx1FMCcI?enablejsapi=1" id="player" type="text/html" width="640" height="390" frameborder="0"></iframe>`
您会收到消息称所有者已禁止在其他网站中播放,但您可以在youtube设置中对其进行配置