1

我正在尝试确定通过 YouTube 的 JavaScript API 播放的视频是否因侵犯版权而被静音。YouTube的播放器愉快地播放视频,没有抛出错误,所以我想知道元数据中是否有一些标志。我在文档中看不到任何内容。有人知道吗?

这是一个静音的视频:https ://www.youtube.com/watch?v=1poQE-mItpc

这是我对 API Explorer 的查询:https ://developers.google.com/apis-explorer/#p/youtube/v3/youtube.videos.list?part=id%252C+snippet%252C+contentDetails%252C+liveStreamingDetails %252C+播放器%252C+录音详情%252C+状态&id=1poQE-mItpc&_h=9&

它的回应:

200 OK

- Show headers -

{
 "kind": "youtube#videoListResponse",
 "etag": "\"_Ao29TLrEE22AhzAvL5Tljx-d60/A5Vud3OI5QeD0pFgKANC76SsTQY\"",
 "pageInfo": {
  "totalResults": 1,
  "resultsPerPage": 1
 },
 "items": [
  {

   "kind": "youtube#video",
   "etag": "\"_Ao29TLrEE22AhzAvL5Tljx-d60/do1XMt-hqrCVUBNaQDjiNU9IwZM\"",
   "id": "1poQE-mItpc",
   "snippet": {
    "publishedAt": "2014-01-14T11:54:53.000Z",
    "channelId": "UCdX5ZAvFi9G5fZz3vGyGemw",
    "title": "魔奇少年 magi Season 2 ED 2/Ending 2 TVsize",
    "description": "",
    "thumbnails": {
     "default": {
      "url": "https://i1.ytimg.com/vi/1poQE-mItpc/default.jpg"
     },
     "medium": {
      "url": "https://i1.ytimg.com/vi/1poQE-mItpc/mqdefault.jpg"
     },
     "high": {
      "url": "https://i1.ytimg.com/vi/1poQE-mItpc/hqdefault.jpg"
     },
     "standard": {
      "url": "https://i1.ytimg.com/vi/1poQE-mItpc/sddefault.jpg"
     },
     "maxres": {
      "url": "https://i1.ytimg.com/vi/1poQE-mItpc/maxresdefault.jpg"
     }
    },
    "channelTitle": "弒夜雪",
    "categoryId": "10",
    "liveBroadcastContent": "none"
   },
   "contentDetails": {
    "duration": "PT1M30S",
    "dimension": "2d",
    "definition": "hd",
    "caption": "false",
    "licensedContent": false
   },
   "status": {
    "uploadStatus": "processed",
    "privacyStatus": "public",
    "license": "youtube",
    "embeddable": true,
    "publicStatsViewable": true
   },
   "player": {
    "embedHtml": "<iframe type='text/html' src='http://www.youtube.com/embed/1poQE-mItpc' width='640' height='360' frameborder='0' allowfullscreen='true'/>"
   }
  }
 ]
}
4

0 回答 0