Closed GoogleCodeExporter closed 8 years ago
I am getting the exact same problem using VB.net - PLS HELP! - thanks - P
Dim settings As YouTubeRequestSettings = New YouTubeRequestSettings(applicationName, developerKey, username, password)
Dim request As YouTubeRequest = New YouTubeRequest(settings)
request.Settings.Timeout = Timeout.Infinite
Dim newVideo As Video = New Video()
newVideo.Title = "My Test Movie"
newVideo.Tags.Add(New MediaCategory("Autos", YouTubeNameTable.CategorySchema))
newVideo.Keywords = "cars, funny"
newVideo.Description = "My description"
newVideo.YouTubeEntry.Private = False
newVideo.Tags.Add(New MediaCategory("mydevtag, anotherdevtag", YouTubeNameTable.DeveloperTagSchema))
newVideo.YouTubeEntry.setYouTubeExtension("location", "Mountain View, CA")
Dim vidFile As String = "C:\Software\VIDorini 2.1\MPG\2010-Dodge-Challenger-2B3CJ7DW7AH111130.mpg"
Dim vidMIME As String = "video/mpeg"
If File.Exists(vidFile) Then
newVideo.YouTubeEntry.MediaSource = New MediaFileSource(vidFile, vidMIME)
Dim createdVideo As Video = request.Upload(newVideo)
currVideo = createdVideo
MsgBox("Video uploaded...", MsgBoxStyle.Information, String.Empty)
Dim videoFeed As Feed(Of Video) = request.Get(Of Video)(uri)
lstYouTubeQuery.Items.Clear()
printVideoFeed(videoFeed)
End If
Original comment by reedmant...@yahoo.com
on 29 Nov 2010 at 10:03
[deleted comment]
You should use the ResumableUploader class defined at:
http://code.google.com/p/google-gdata/source/browse/trunk/clients/cs/src/core/re
sumableupload.cs
Original comment by ccherub...@google.com
on 18 Mar 2011 at 1:31
Original issue reported on code.google.com by
Bakerz.j...@gmail.com
on 21 Nov 2010 at 6:05