开发者

How to parse YouTube Playlist into ListView

开发者 https://www.devze.com 2023-04-08 21:36 出处:网络
I have a GD开发者_如何学PythonATA link that contains a playlist from a public YouTube Channel. I need the videos of this playlist to appear in a listview. Is this possible? If os, how can I implement

I have a GD开发者_如何学PythonATA link that contains a playlist from a public YouTube Channel. I need the videos of this playlist to appear in a listview. Is this possible? If os, how can I implement it? Could someone point me towards an example?

EDIT:

Here is the gdata link I need to parse:

http://gdata.youtube.com/feeds/base/users/interactivemedialab1/playlists/42E77F93E83D3FE4


Take a look at my sample Android application for displaying a YouTube playlist in a list view.

https://github.com/akoscz/YouTubePlaylist

Note that you MUST have a valid API key for this sample application to work. You can register your application with the Google Developer Console and enable the YouTube Data API. You need to Register a Web Application NOT an Android application, because the API key that this sample app uses is the "Browser Key".


For creating a list try searching the API Demos, loads of list view example there with code you can use. And as LeiNaD rightly pointed out first parse the XML using XMLPullParser or XMLSAXParser.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号