YouTube 数据 API (v3) 搜索过滤器已损坏
YouTube Data API (v3) search filters are broken
注意:我在 Chrome 应用内的网络视图中使用 YouTube Iframe。
YouTube's API 是这么说的:
videoSyndicated
The videoSyndicated parameter lets you to restrict a search to only
videos that can be played outside youtube.com. If you specify a value
for this parameter, you must also set the type parameter's value to
video.
videoLicense
The videoLicense parameter filters search results to only include
videos with a particular license. YouTube lets video uploaders choose
to attach either the Creative Commons license or the standard YouTube
license to each of their videos. If you specify a value for this
parameter, you must also set the type parameter's value to video.
videoEmbeddable
The videoEmbeddable parameter lets you to restrict a search to only
videos that can be embedded into a webpage. If you specify a value for
this parameter, you must also set the type parameter's value to video.
即使我将它们全部打开,我仍然会收到类似
的错误消息
This video contains content from X
示例视频:https://www.youtube.com/watch?v=TMSIR210mRg
问:为什么会这样,如何确保搜索结果只包含可从我的网站播放的视频?
我意识到不是过滤器坏了,而是视频有特定领域的黑名单。例如,某些视频无法从移动设备播放,或者在我的情况下,无法从具有 chrome-extension://
域的 chrome 应用播放。
有单独的版权声明检查。视频中某些内容(通常是音乐)的合法版权所有者有权限制或阻止某些网站上的嵌入。此信息目前无法通过 YouTube API。
注意:我在 Chrome 应用内的网络视图中使用 YouTube Iframe。
YouTube's API 是这么说的:
videoSyndicated
The videoSyndicated parameter lets you to restrict a search to only videos that can be played outside youtube.com. If you specify a value for this parameter, you must also set the type parameter's value to video.
videoLicense
The videoLicense parameter filters search results to only include videos with a particular license. YouTube lets video uploaders choose to attach either the Creative Commons license or the standard YouTube license to each of their videos. If you specify a value for this parameter, you must also set the type parameter's value to video.
videoEmbeddable
The videoEmbeddable parameter lets you to restrict a search to only videos that can be embedded into a webpage. If you specify a value for this parameter, you must also set the type parameter's value to video.
即使我将它们全部打开,我仍然会收到类似
的错误消息This video contains content from X
示例视频:https://www.youtube.com/watch?v=TMSIR210mRg
问:为什么会这样,如何确保搜索结果只包含可从我的网站播放的视频?
我意识到不是过滤器坏了,而是视频有特定领域的黑名单。例如,某些视频无法从移动设备播放,或者在我的情况下,无法从具有 chrome-extension://
域的 chrome 应用播放。
有单独的版权声明检查。视频中某些内容(通常是音乐)的合法版权所有者有权限制或阻止某些网站上的嵌入。此信息目前无法通过 YouTube API。