gpt4 book ai didi

java - youtube api 显示 channel 视频 android

转载 作者:行者123 更新时间:2023-12-01 11:15:06 25 4
gpt4 key购买 nike

我查遍了,但找不到如何将视频列表调入 Android 应用程序。到目前为止,我正在使用该示例,但如果我上传视频,这不会有任何好处,因为那样我每次都必须发送更新。部分示例代码:

  `   List<VideoEntry> list = new ArrayList<VideoEntry>();
list.add(new VideoEntry("KitPvP(Where I die alot(lol))", "Ji0yzF8boGg"));
list.add(new VideoEntry("GMail Tap", "1KhZKNZO8mQ"));
list.add(new VideoEntry("Chrome Multitask", "UiLSiqyDf4Y"));
list.add(new VideoEntry("Google Fiber", "re0VRK6ouwI"));
list.add(new VideoEntry("Autocompleter", "blB_X38YSxQ"));
list.add(new VideoEntry("GMail Motion", "Bu927_ul_X0"));
list.add(new VideoEntry("exampleA", "exampleB"));`

需要一种方法来获取示例A和B

最佳答案

要与 YouTube 互动,您必须使用 YouTube 数据 API。据我了解,目前您仅使用 YouTube Player API 来播放视频。

为了从 YouTube 获取新的视频 ID(以及其他所有内容),您必须使用:https://developers.google.com/youtube/v3/docs/

关于java - youtube api 显示 channel 视频 android,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31930907/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com