我如何获得总视频观看次数&喜欢来自youtube播放器api的youtube视频在android?
答案 0 :(得分:1)
When you see the JSON, Under the statistics part you have viewCount.
which gives you the number of views.
"items": [
{
"kind": "youtube#video",
"etag": etag,
"id": string,
"statistics": {
"viewCount": unsigned long,
"likeCount": unsigned long,
"dislikeCount": unsigned long,
"favoriteCount": unsigned long,
"commentCount": unsigned long
}
}
]
Hope it helps