Last post Oct 24, 2011 02:16 AM by ashvinero
Oct 22, 2011 07:44 AM|ashvinero|LINK
I am able to upload video to youtube successfully.I do this with Google API.Here is the code to upload the Video
Dim request As New YouTubeRequest(settings)
Dim newVideo As New Video()
newVideo.Title = "ashvinero video"
newVideo.Tags.Add(New MediaCategory("Autos", YouTubeNameTable.CategorySchema))
newVideo.Keywords = "ashvinero"
newVideo.Description = "Water Taxi"
newVideo.YouTubeEntry.[Private] = False
newVideo.Tags.Add(New MediaCategory("mydevtag, anotherdevtag", YouTubeNameTable.DeveloperTagSchema))
newVideo.YouTubeEntry.MediaSource = New MediaFileSource("C:\Documents and Settings\Desktop\youtube SDK\sample videos\Splash Toursnew.wmv", "video/x-ms-wmv")
Dim createdVideo As Video = Request.Upload(newVideo)
I want to obtain the Video ID after the video is uploaded.Is there a way how i can achieve this in VB.net
Thanks and Regards
Oct 24, 2011 02:16 AM|ashvinero|LINK
I solved it by myself.
All we need to do is that get the VideoID by this way
Dim videoID As String = createdVideo.VideoId