YouTube API - 使用 URN id
我正在使用 Youtube API 检索视频的播放列表内容
在条目列表中,我获取了所有视频,它们的唯一 ID 就是 youtube 所说的“URN id”。
但我找不到使用 URN id 播放这些视频的方法。它与真实的 v=xxXXxXx ID 配合得很好,但 URn id 似乎不同,我在提要中的任何地方都找不到 v=xxXXxXx
有人可以帮忙吗? 面积
i am using the Youtube API to retrieve a playlist content of videos
In of the list of entries, i get all my videos and their unique ID is what youtube call "URN id".
But I can't find a way to play these video using the URN id. It works fine with the real v=xxXXxXx ID but URn id seems to be different and i can't find the v=xxXXxXx anywhere in the feed
Can anyone help please?
Aperage
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
播放列表提要包含
videoid
,您可以使用它来获取v=xxxxxxx
网址。来自 API 的播放列表 Feed 示例,视频的 ID 可以例如,可以在
中找到pPF2H95gEBU
。The playlist feeds contain the
videoid
which you can use to get thev=xxxxxxx
url.Sample playlist feed from the API, the id's of the videos can be found in
<yt:videoid>
, for example<yt:videoid>pPF2H95gEBU</yt:videoid>
.