Sunday, January 09, 2011

Manage Youtube using c# and youtube api 1.6

Introduction
This is my first article. So please guide me to correct my mistakes.
This code shows how to access youtube from desktop. Here you can perform same actions that can be done in youtube. Here I used YouTube API 1.6. Please download the same version. In latest version you will get some error when running the code.

Using the Code
This is a client application which intearct youtube using Youtube API 1.6 .Net client library. In this article I will explain about authentication, video feeds, displaying feeds and pagination.

Basic Requirements
.NET 2.0 runtime
Youtube API 1.6 sdk
Developer key (you can get it from here http://code.google.com/apis/youtube/dashboard/)
Video player to play the video. You can use windows media player or flash player. Here i used shockwave player to play the video.

After downloading and installing the Youtube SDK, Go to Installed location and you will find the DLLs that you need to get started in the distribution's Redist sub directory. Then open your IDE and add reference to the DLLs (I.e Google.Gdata.Client.dll, Google.Gdata.Extensions.dll, Google.Gdata.Youtube.dll)

Read more: Codeproject