I want to play a YouTube video in my WPF application. I use the Google API and get information about the video successfully, but I donβt understand how to play the video. Here is my code that I used to get the information.
YouTubeRequestSettings setting = new YouTubeRequestSettings("MyAPP", "ID");
YouTubeRequest request = new YouTubeRequest(setting);
YouTubeQuery myQuery = new YouTubeQuery(YouTubeQuery.MostPopular);
myQuery.OrderBy = "viewCount";
Feed<Video> videoFeed = request.Get<Video>(myQuery);
foreach (Video item in videoFeed.Entries)
{
listBox1.Items.Add(item.Title);
}
thank`s
source
share