Youtube video upload ( API method ) error RRS feed

  • Question

  • I tried to upload video on youtube with this code : 

      Imports Google.YouTube
    Imports Google.GData.Extensions.MediaRss
    Imports Google.GData.YouTube
    Imports Google.GData.Client
    Public class Form1 
    Private settings As YouTubeRequestSettings
        Private request As YouTubeRequest
        Private devkey As String = "AIzaXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
        Private username As String = "XXX@gmail.com"
        Private password As String = "XXX"
        Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
            Dim sFile as string = "C:\Users\MyComputer1\Documents\Visual Studio 2012\Projects\YouBot v.1.0\YouBot v.1.0\bin\Debug\Video\Romeo and Juliet, Mexican style.mp4"
            Dim sFilenameorj as string = "Romeo and Juliet, Mexican style"
            Dim sDesc as string = "Romeo and Juliet, Mexican style"
                settings = New YouTubeRequestSettings("XXXXXX", devkey, username, password)
                request = New YouTubeRequest(settings)
                Dim video As New Video()
                video.Title = sFilenameorj
                video.Tags.Add(New MediaCategory("Comedy", YouTubeNameTable.CategorySchema))
                video.Keywords = "Comedy"
                video.[Private] = False
                video.MediaSource = New MediaFileSource(sFile, "video/MP4")
                MessageBox.Show("Successfully Uploaded")
            Catch ex As Exception
            End Try
    end sub
    End Class


    Execution of request failed. https://uploads.gdata.youtube.com/feeds/api/users/default/uploads

    Thursday, July 3, 2014 9:35 AM