YouTube Java API 与 Android REST 客户端实现
我正在尝试制作一个 Android 应用程序,它将从频道中提取上传的视频并将其显示在列表视图中。用户将能够观看视频、订阅频道、评论和喜欢视频。
我考虑过使用 Atom feed 从 YouTube 获取视频信息(我有一个正在运行的应用程序),但今天我遇到了 YouTube 的 Java API,如果我自己实现 REST 客户端代码,它会抽象出所需的所有解析。
我的问题是推荐的解决方案是什么?哪个会表现更好?
I am trying to make an Android app which will pull uploaded videos from a channel and display them in a list view. Users will be able to watch videos, subscribe to the channel, comment, and like videos.
I have looked at using an Atom feed to get the video info from YouTube (I have a working app), but I came across the Java API for YouTube today, which abstracts all the parsing that's needed, if I implement the REST client code myself.
My question is which is the recommended solution for this? And which will perform better?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
当然“不要发明轮子!”
我为 Android 构建了较小的应用程序,并相信使用 YouTube API 比其他任何东西更好 。
如果您想在应用程序中播放视频,请尝试查看 Open-Youtube-player!
此外,您还应该使用该 API 来实现其他功能,并且由于其性能,您不需要向您的应用程序添加更多的泄漏,您需要它快速且轻便。
for sure " DON'T INVENT THE WHEEL ! "
I build smaller application for android and believe me using YouTube API is much better than anything else.
if you are seeking to play videos inside your Application try to see also Open-Youtube-player!
also you should use the API for other features and for its performance you don't need to add more leakage to your application you need it fast and light.