Using YouTube API on Android App

拟墨画扇 提交于 2019-12-25 07:00:56

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!