Closed GoogleCodeExporter closed 9 years ago
:body & :media_body shouldn't be inside parameters. Should be something along
the lines of:
media = Google::APIClient::UploadIO.new('test.mov', 'video/mp4')
result = client.execute(
:api_method => youtube.videos.insert,
:body_object => {
:snippet => { :title => 'Test vid',
:description => 'testing upload' },
:status => { :privacyStatus => 'unlisted' }
},
:media_body => media,
:parameters => {
:part => 'snippet,status',
:uploadType => 'resumable'
}
)
Not sure if Youtube supports resumable upload, if not, try 'multipart'
Original comment by sba...@google.com
on 15 Feb 2013 at 10:49
Original issue reported on code.google.com by
george.m...@machinima.com
on 9 Feb 2013 at 1:50