如何为新的 (Google +) Youtube 频道 ID 嵌入 Youtube user_uploads? [英] How to embed Youtube user_uploads for new (Google +) Youtube channel id's?
问题描述
一直在寻找 API 以嵌入 Youtube 频道的 user_uploads
以用于具有新 channel_id
(以 UC 开头)而不是用户名的频道,但没有找到任何工作解决方案.根据 API,只能将播放器嵌入user_uploads
用于 USER ID
.是否有任何(未记录的?)参数来实现这一目标?
Been searching for the API to embed a Youtube channel's user_uploads
for channels which have the new channel_id
(starting with UC) instead of a user name but did not find any working solution. According to the API, there is only the possibility to embed a player with user_uploads
for a USER ID
. Are there any (undocumented?) parameters to achieve this?
嵌入 user_id
的工作 iframe 示例:
Example of working iframe embed with user_id
:
http://www.youtube.com/listType=user_uploads&list=USERNAME
http:// www.youtube.com / listType=user_uploads&list=USERNAME
不工作:
http://www.youtube.com/embed?listType=user_uploads&list=UC....xxxxx(Google + 样式频道 ID)
http:// www.youtube.com / embed?listType=user_uploads&list=UC....xxxxx (Google + style channel id)
推荐答案
发布的答案不再有效.
现在你应该使用:
http://www.youtube.com/embed/videoseries?list=USERID
USERID 是您的 youtube 用户 ID,并附加了UU".
And the USERID is your youtube user id with 'UU' appended.
例如,如果您的用户 ID 是 TlQ5niAIDsLdEHpQKQsupg
,那么您应该输入 UUTlQ5niAIDsLdEHpQKQsupg
.如果您只有频道 ID(您可以在频道 URL 中找到),那么只需将前两个字符 (UC
) 替换为 UU
.
For example, if your user id is TlQ5niAIDsLdEHpQKQsupg
then you should put UUTlQ5niAIDsLdEHpQKQsupg
.
If you only have the channel id (which you can find in your channel URL) then just replace the first two characters (UC
) with UU
.
所以最后你会有一个像这样的 URL:<代码>http://www.youtube.com/embed/videoseries?list=UCTlQ5niAIDsLdEHpQKQsupg
So in the end you would have an URL like this:
http://www.youtube.com/embed/videoseries?list=UCTlQ5niAIDsLdEHpQKQsupg
顺便说一句.您可以附加 &index=1
来指定应该播放哪个视频.
BTW. you can append &index=1
to specify which video should be played.
查看关于重复
这篇关于如何为新的 (Google +) Youtube 频道 ID 嵌入 Youtube user_uploads?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!