的Youtube API返回的公开的视频 [英] Youtube API returning unlisted videos

查看:291
本文介绍了的Youtube API返回的公开的视频的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序使用YouTube API。我有一个信道资源的上传相关的播放列表,然后列出所有视频。

这一段时间工作的罚款,但现在,这个播放列表将返回不公开,这样的视频:

 状态:{
  privacyStatus:不公开
}

有没有办法来过滤这些视频?我以为他们是隐藏的,但他们确实显示...

修改:它甚至返回私人视频:

 状态:{
  privacyStatus:私有
}


解决方案

既然你是频道的所有者它返回所有可播放的视频。如果你想看看别人的上传,它会显示唯一的公共的。

看<一个href=\"https://github.com/youtube/yt-direct-lite-android/blob/master/src/com/google/ytdl/MainActivity.java#L466\"相对=nofollow>我的开源项目:Android的直接精简版来看看,我怎么只显示那些公

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.

Look at my open source project: Android Direct Lite to see, how I show only public ones.

这篇关于的Youtube API返回的公开的视频的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆