0
我使用v3 youtube API根据其ID来获取视频数据。“嵌入式”YouTube视频无法嵌入
这里是我当前的搜索:
https://www.googleapis.com/youtube/v3/videos?part=snippet,contentDetails,status&id=QGGyYVsEGGo&key=<my_key>
我包括视频ID是特定的情况下,我很好奇。它返回一个具有以下信息的状态属性:
status: {
uploadStatus: "processed",
privacyStatus: "public",
license: "youtube",
embeddable: true,
publicStatsViewable: true
}
按照documentation的status.embeddable
属性我用自己的iframe ...
" indicates whether the video can be embedded on another website."
如果你看这个的jsfiddle(https://jsfiddle.net/tewj3xco/)播放器显示与上述相同的视频,并表示NFL阻止了它。我想知道是否有不同的或更可靠的属性来检查是否可以嵌入来自YouTube的视频。