使用youtube api 2.0的视频质量

时间:2012-07-18 14:30:31

标签: c# youtube-api videoquality

我希望获得高质量的视频。我看到我可以用yt.playerconfig获得质量,但我使用youtube api 2.0,我无法找到如何获得视频质量..这是我的代码

 List<VideoList> FillVideoInfo(IEnumerable<Video> videos)
    {

        List<VideoList> myV =
         videos.Select(v=> new VideoList {                                             
                                                AuthorName = v.Author,   
                                                Categories = v.Tags[0].Value,
                                                Duration ="yok", // v.Contents[0].Duration
                                                Tags ="tag yok",
                                                Link = v.AtomEntry.AlternateUri.ToString(),
                                                PublishedDate = v.AtomEntry.Published,
                                                RatingAverage = v.RatingAverage,
                                                Title = v.Title,
                                                ViewCount = v.ViewCount,
                                                ThumbNail =  "http://img.youtube.com/vi/"+ v.VideoId +"/default.jpg"

                                                }).ToList<VideoList>();

        return myV;            
    }

VideoList是我自己的类..视频是google.youtube.video 我看到了media.contents。格式..但我不确定是不是真的?

0 个答案:

没有答案