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 返回未列出的视频
基础教程推荐
- AdMob 广告未在模拟器中显示 2022-01-01
- navigator.geolocation.getCurrentPosition 在 Android 浏览器上 2022-01-01
- Cocos2d iPhone 非矩形精灵触摸检测 2022-01-01
- libGDX 从精灵或纹理中获取像素颜色 2022-01-01
- iPhone - 获取给定地点/时区的当前日期和时间并将其与同一地点的另一个日期/时间进行比较的正确方法 2022-01-01
- iOS4 创建后台定时器 2022-01-01
- NSString intValue 不能用于检索电话号码 2022-01-01
- 如何从 logcat 中删除旧数据? 2022-01-01
- 通过重定向链接在 Google Play 中打开应用 2022-01-01
- Android:getLastKnownLocation(LocationManager.NETWORK_PROVIDER 2022-01-01
