问题
Okay, so I have a bit of a predicament. I built an app that basically just is a container for a website that has a curated collection of YouTube videos. It is built in Java for Android. The problem is that when I click play on any of the videos it uses a crappy built in player for WebView and doesn't even have an expand button. It also doesn't have like/dislike buttons which I would very much like to have. My question is, can I use the YouTube API to load the videos with its player without changing the website, as it is supposed to be used on desktop without any API as well.
Thanks in advance...
回答1:
This should rightly match your requirements, this api provides different UI widgets, if you use Proguard then the apk size increase will be minimal from the library, you can find all the info on that website. Plus there is the demo video you can get the usage sample code here.
Happy coding !
来源:https://stackoverflow.com/questions/35801585/using-youtube-api-on-android-app