2016-09-28 5 views

答えて

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 
+0

ここではJSON解析を行っていません。私はちょうどビデオのリンクを持って、私は(YouTubeプレーヤーを介して)私のアプリでビデオを再生しています。だから私はあなたのソリューションを私の場合に適用する方法がわかりません。 – akkk

関連する問題