Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

viewCount + Likes? #3

Closed
haleyngonadi opened this issue Jun 4, 2015 · 3 comments
Closed

viewCount + Likes? #3

haleyngonadi opened this issue Jun 4, 2015 · 3 comments

Comments

@haleyngonadi
Copy link

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
Copy link
Owner

akoscz commented Jun 17, 2015

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
Copy link
Owner

akoscz commented Jun 18, 2015

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.

@akoscz akoscz closed this as completed Jun 18, 2015
@haleyngonadi
Copy link
Author

Thank you so much, You're the best.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants