Compilation failure on UploadVideo.java
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.
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
Thanks for your fixing it.