Answered by:
retrieving video feed of youtube playlist

Question
-
User976028085 posted
Hi,
I tried using the Youtube APIs and Tools to retrieve video feed of my playlist on youtube but was not successful, has anyone tried this to show me an example. I was trying to retrieve a playlist and feed it on my website. Thanks.
Sunday, February 14, 2010 6:19 AM
Answers
-
User976028085 posted
this seems to work:
Feed<PlayListMember> list = request.GetPlaylist(p); foreach (PlayListMember v in list.Entries) { ....... }
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Sunday, February 21, 2010 5:32 AM
All replies
-
User-1659704165 posted
Hi,
http://youtube.codeplex.com/
http://www.dotneat.net/2007/12/20/QueryingYoutubeAPIUsingC.aspx
have seen th above linkMonday, February 15, 2010 12:54 AM -
User976028085 posted
here is the code I tried if its any help, and the error I got:
Compiler Error Message: CS0029: Cannot implicitly convert type
'Google.GData.Client.Feed<Google.YouTube.PlayListMember>' to
'Google.GData.Client.Feed<Google.YouTube.Video>'
code:Feed<Playlist> userPlaylists = request.GetPlaylistsFeed("myusername"); foreach (Playlist p in userPlaylists.Entries) { Console.WriteLine("Title: " + p.Title + "<br />"); Console.WriteLine(p.Summary + "<br />"); Console.WriteLine("Number of entries: " + p.CountHint + "<br />"); Feed<Video> list = request.GetPlaylist(p); foreach (Video v in list.Entries) { Console.WriteLine("Video ID: " + v.VideoId + "<br />"); Console.WriteLine("ViewCount: " + v.ViewCount + "<br />"); Console.WriteLine("Summary: " + v.Summary + "<br />"); } }
thanx
Monday, February 15, 2010 4:01 PM -
User-1659704165 posted
http://www.codeproject.com/KB/aspnet/YouTube.aspx
http://www.codeproject.com/KB/web-image/YouTube_API.aspx
OR
Read the documents care full un wil get the solution thereMonday, February 15, 2010 11:37 PM -
User664551031 posted
Were you able to find a solution to this yet? I'm recieving the same error.
Thanks!
Wednesday, February 17, 2010 7:19 PM -
User976028085 posted
no not yet, another option is to use favorite playlist, that seems to work.
Saturday, February 20, 2010 4:33 AM -
User976028085 posted
this seems to work:
Feed<PlayListMember> list = request.GetPlaylist(p); foreach (PlayListMember v in list.Entries) { ....... }
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Sunday, February 21, 2010 5:32 AM