akoscz / YouTubePlaylist

A sample Android application which demonstrates the use of the YouTube Data v3 API.
Apache License 2.0
153 stars 84 forks source link

viewCount + Likes? #3

Closed haleyngonadi closed 9 years ago

haleyngonadi commented 9 years ago

Hi. This is amazing! I'm wondering if there is a way to get viewCount and/or likes from YouTube? Also, how do I remove the green bar to the right of the image?

akoscz commented 9 years ago

I updated the code so that the caching indicators are now only enabled for debug builds. If you want to complete remove them even from debug builds then remove the following line from YouTubeFragment.onCreateView() Picasso.with(getActivity()).setIndicatorsEnabled(BuildConfig.DEBUG);

As for viewCount and/or likes, that information is available through the 'videos' API https://developers.google.com/youtube/v3/docs/videos See the GetYouTubePlaylistAsyncTask.java for an example of how to invoke a YouTube v3 API.

akoscz commented 9 years ago

Check out the new updates to the code. I added video duration, view count, likes count and dislikes count. There's data available in the Video object for favorite count and comment count also, although I didn't add these numbers to the UI. They are there if you need them though.

haleyngonadi commented 9 years ago

Thank you so much, You're the best.