Youtube API returning unlisted videos(Youtube API 返回未列出的视频)
问题描述
在我的应用中,我使用 YouTube API.我得到一个频道资源的上传"相关播放列表,然后列出所有视频.
In my app I use the YouTube API. I got the "uploads" related playlist of a channel resource, and then list all videos.
这在一段时间内运行良好,但现在,此播放列表正在返回未列出"的视频,如下所示:
This worked fine for some time, but now, this playlist is returning 'unlisted' videos like this:
"status": {
"privacyStatus": "unlisted"
}
有没有办法过滤这些视频?我以为它们是隐藏的",但它们确实出现了......
Is there a way to filter these videos? I thought they were 'hidden', but they do show up...
编辑:它甚至返回私人视频:
Edit: It is even returning private videos:
"status": {
"privacyStatus": "private"
}
推荐答案
由于您是该频道的所有者,它会返回所有可用的视频.如果您试图查看其他人的上传内容,它只会显示公开的内容.
Since you are the owner of that channel it returns all the videos available. IF you were trying to see someone else's uploads, it would show only public ones.
看看 我的开源项目:Android Direct Lite 看看,我如何只显示公共项目.
Look at my open source project: Android Direct Lite to see, how I show only public ones.
这篇关于Youtube API 返回未列出的视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Youtube API 返回未列出的视频
基础教程推荐
- Play 商店的设备兼容性问题 2022-01-01
- 如何比较两个 NSDate:哪个是最近的? 2022-01-01
- iOS - UINavigationController 添加多个正确的项目? 2022-01-01
- navigationItem.backBarButtonItem 不工作?为什么上一个菜单仍然显示为按钮? 2022-01-01
- Xcode UIView.init(frame:) 只能在主线程中使用 2022-01-01
- Android Volley - 如何动画图像加载? 2022-01-01
- UIImage 在开始时不适合 UIScrollView 2022-01-01
- 如何将图像从一项活动发送到另一项活动? 2022-01-01
- SwiftUI-ScrollViewReader的ScrollTo不滚动 2022-01-01
- 为什么姜饼模拟器方向卡在应用程序中? 2022-01-01
