0

我已经在 asp.net 4.0 应用程序中实现了 YouTube API。我可以访问除类别之外的所有其他参数。

YouTubeRequestSettings settings = new YouTubeRequestSettings(ApplicationName,developerKey,myUserName,myPassword);
YouTubeRequest request = new YouTubeRequest(settings);
Uri videoEntryUrl = new Uri("http://gdata.youtube.com/feeds/api/videos/" + YouTubeID + "");
Video objVideo = request.Retrieve<Video>(videoEntryUrl);
var desc= objVideo.Description;
var title= objVideo.Title;
var category= ? ;

我怎样才能获得类别?

谢谢

4

1 回答 1

0

好的,就是这样。

我在路上找到了解决方案。

var catValue = objVideo.Tags.ToList<MediaCategory>().FirstOrDefault<MediaCategory>().Value
于 2012-06-30T05:56:21.703 回答