api-samples icon indicating copy to clipboard operation
api-samples copied to clipboard

Compilation failure on UploadVideo.java

Open Jasper009-So opened this issue 12 years ago • 2 comments

api-samples\java\src\main\java\com\google\api\services\samples\youtube\cmdline\data\UploadVideo.java:[126,41] error: cannot find symbol

MediaHttpUploader uploader = thumbnailSet.getMediaHttpUploader();

where thumbnailSet was not declared yet.

Jasper009-So avatar Jan 20 '14 03:01 Jasper009-So

this is youtube site code sample

/* * The upload command includes: 1. Information we want returned after file is successfully * uploaded. 2. Metadata we want associated with the uploaded video. 3. Video file itself. */ YouTube.Videos.Insert videoInsert = youtube.videos() .insert("snippet,statistics,status", videoObjectDefiningMetadata, mediaContent);

  // Set the upload type and add event listener.
  MediaHttpUploader uploader = videoInsert.getMediaHttpUploader()

thumbnailSet => videoInsert change plz

Park-jihoon avatar Feb 12 '14 04:02 Park-jihoon

Thanks for your fixing it.

Jasper009-So avatar Feb 14 '14 08:02 Jasper009-So