YouTube API - 使用 URN id

发布于 2024-11-16 05:28:53 字数 210 浏览 7 评论 0原文

我正在使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

芯好空 2024-11-23 05:28:53

播放列表提要包含 videoid,您可以使用它来获取 v=xxxxxxx 网址。

来自 API 的播放列表 Feed 示例,视频的 ID 可以例如,可以在 中找到pPF2H95gEBU

The playlist feeds contain the videoid which you can use to get the v=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>.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文